Solved: Where is the ACT led file?
|
29th Nov, 2014, 08:35 AM
Post: #1
|
|||
|
|||
Where is the ACT led file?
I wanted for the ACT led to flash when a button was pressed. While I was following a tutorial, it said to change files in /sys/class/leds/led0. The files are brightness which holds a 1 or a 0 and trigger and others also. Where would that file be in xbian?
|
|||
29th Nov, 2014, 09:14 AM
Post: #2
|
|||
|
|||
RE: Where is the ACT led file?
If you are looking for missing functionality (especially in sysfs), look for modules first. I honestly didn't know about this functionality so i did as well:
Code: root@pi ~ # find /lib -name led* Code: root@pi ~ # modprobe leds-gpio And tadaa: Code: root@pi ~ # ls /sys/class/leds/led0/ pilight - modular domotica solution
|
|||
30th Nov, 2014, 01:20 AM
Post: #3
|
|||
|
|||
RE: Where is the ACT led file?
(29th Nov, 2014 09:14 AM)CurlyMo Wrote: If you are looking for missing functionality (especially in sysfs), look for modules first. I honestly didn't know about this functionality so i did as well: Thanks, you learn something new every day! One comment, to anybody else doing this: I had to run modprobe from /sbin |
|||
30th Nov, 2014, 02:16 AM
(This post was last modified: 30th Nov, 2014 02:16 AM by rikardo1979.)
Post: #4
|
|||
|
|||
RE: Where is the ACT led file?
(30th Nov, 2014 01:20 AM)kusti8 Wrote:nice one, so all sorted now? if yes, can you please edit prefix of the thread to [Solved]? thanks(29th Nov, 2014 09:14 AM)CurlyMo Wrote: If you are looking for missing functionality (especially in sysfs), look for modules first. I honestly didn't know about this functionality so i did as well: ~~~~>>>Please always follow rules and read before you post<<<~~~~ |
|||
« Next Oldest | Next Newest »
|