1 1
sgjava

Nanopi Duo non-root /sys/class/leds

Recommended Posts

what do you want to read?

Or what can be read as usre if you know the trigger? = here heartbeat

 

root@npi-k1-plus(192.168.6.70):~# more /sys/class/leds/nanopi:green:status/trigger
none usb-gadget usb-host kbd-scrolllock kbd-numlock kbd-capslock kbd-kanalock kbd-shiftlock kbd-altgrlock kbd-ctrl
lock kbd-altlock kbd-shiftllock kbd-shiftrlock kbd-ctrlllock kbd-ctrlrlock usbport mmc0 mmc1 mmc2 disk-activity di
sk-read disk-write ide-disk mtd nand-disk [heartbeat] cpu cpu0 cpu1 cpu2 cpu3 activity default-on panic rfkill-any
 rfkill-none rc-feedback rfkill0 0.2:00:link 0.2:00:1Gbps 0.2:00:100Mbps 0.2:00:10Mbps

 

Share this post


Link to post
Share on other sites

Actually I want to update brightness, but I may want to update trigger as well (sudo works):

 

echo 0 > /sys/class/leds/nanopi\:green\:pwr/brightness
/sys/class/leds/nanopi:green:pwr/brightness: Permission denied

 

Share this post


Link to post
Share on other sites

Here's my working rc.local (usio is the group I want to give access to):

chown -R root:usio /sys/devices/platform/leds/leds
chmod -R ug+rw /sys/devices/platform/leds/leds

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
1 1