Hi all
I see the LED's trigger file is a text file:
$ file trigger
trigger: ASCII text
But why can not edit it with vi?
Why must do "echo none > trigger "?
A normal flat text file with operation "echo none > file",
we should get the string "none" in it.
But why I get "
[none] mmc0 timer heartbeat backlight gpio default-on
"
in it ?
I guess your are talking about sysfs file.
These are something like sockets: you can write (echo) and read (cat) from those but you cannot seek through them (edit). They are here to provide easy and practical access to system settings.