LED use, customization ? - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120) +--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121) +---- Forum: Arch Linux on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=159) +---- Thread: LED use, customization ? (/showthread.php?tid=12478) |
LED use, customization ? - lat - 12-12-2020 Is there a way to use LEDs? Ideally, would be nice to customize them for various uses. As a minimum, I'd like to have a LED notification whenever I have a missed call or a new message (sms, email). Also a LED battery charging indicator is useful. Would be great if a user can specify in settings or some config file color, duration, pattern of the LED notification. At present, my LEDs are off all the time - am I missing something? Megi's LED info is interesting, but not for layman's practical use. BTW, it was pleasant to experience use of LEDs by sxmo. RE: LED use, customization ? - dukla2000 - 12-12-2020 (12-12-2020, 08:05 AM)lat Wrote: Is there a way to use LEDs? Ideally, would be nice to customize them for various uses. As a minimum, I'd like to have a LED notification whenever I have a missed call or a new message (sms, email). Also a LED battery charging indicator is useful. Would be great if a user can specify in settings or some config file color, duration, pattern of the LED notification. At present, my LEDs are off all the time - am I missing something? Cheers for the link, hadn't found that on Megi's site. Yup on Arch there are none activated by default but pretty easy to activate - I am not that good with permissions so just do a sudo su to get enough power. Seems with the 5.9.11 kernel the /sys/class/leds layout has changed slightly - I now have Code: # echo mmc2 > '/sys/class/leds/blue:indicator/trigger' For sure there must be some way to trigger on email etc notification as Mobian was doing it last time I looked, but not obvious to me from the 5.9.11 options: Code: $ cat '/sys/class/leds/blue:indicator/trigger' RE: LED use, customization ? - Lousy Fisherman - 12-13-2020 (12-12-2020, 12:13 PM)dukla2000 Wrote:Thanks to both of you. I was not looking for this information yet, but I knew I needed it.(12-12-2020, 08:05 AM)lat Wrote: Is there a way to use LEDs? Ideally, would be nice to customize them for various uses. As a minimum, I'd like to have a LED notification whenever I have a missed call or a new message (sms, email). Also a LED battery charging indicator is useful. Would be great if a user can specify in settings or some config file color, duration, pattern of the LED notification. At present, my LEDs are off all the time - am I missing something? LF RE: LED use, customization ? - lat - 12-16-2020 BTW, I wasn't able to make any LED work at all RE: LED use, customization ? - dukla2000 - 12-17-2020 (12-16-2020, 10:33 PM)lat Wrote: BTW, I wasn't able to make any LED work at all OK, open a terminal and first check what you are running, e.g.: Code: $ uname -a Then grab superuser permissions: Code: $ sudo su Then, to e.g. set blue LED to flash when eMMC is used: Code: # echo mmc2 > '/sys/class/leds/blue:indicator/trigger' and exit, first from superuser then from terminal: Code: # exit RE: LED use, customization ? - lat - 12-17-2020 Oh, thank you @dukla2000! I've tried exactly that, but didn't realize that those LED flashes were very brief, so I simply did not see them! Now it would be nice to figure out how to use the full range of LED signals (solid, flashing with different frequencies, two/three LEDs simultaneously) for any user-specified device state (missed call, new sms/email, no_network_connection, etc, etc). I recall that Maemo on the good old nokia N900 had those highly customizable options in user Settings. It's successor Maemo Leste (which is easily accessible from Megi's multi-distro image) lists these options in Settings -> Notification Light
Code: root@devuan-pinephone:/# find / -name leds RE: LED use, customization ? - kqlnut - 12-17-2020 (12-17-2020, 08:54 AM)lat Wrote: I don't know how these connect with the user applications like email, sms, etc. Maybe someone more knowlegeable can pick up and take this further... Come on, Prometeus, bring us some LED light!I am not knowledgeable on this topic, but found it interesting and stumbled across some stuff: It seems LED notifications for Phosh are handled by feedbackd, so to a certain extent you could probably modify the settings there or dig deeper into the source code to make more adjustments. Maybe it's also possible to hook into the notifications manually and script something for the LEDs with the pattern trigger. More details on that can be found here. And here is some more general info on LED handling in Linux. Hope you get somewhere with that! RE: LED use, customization ? - moodroid - 12-23-2020 Hi, I'd like to try the above to to make the LED light up on SMS notification. My problem is, I don't even get a notification when I receive an SMS, although all the SMS's seem to be arriving. Any ideas? Thanks EDIT: I do get a notification most times - just occasionally not. But I've managed to turn on the green LED on im.pidgin.purple.PurpleInterface -> ReceivedImMsg, so now my LED lights up when I get a text regardless of whether I get a notification. |