Thanks! I'd love to do some more colourful things but simple works for now.@pimaster It looks beautiful! (judged by watching @matzesu 's screenshots). Thanks for that code. Will bookmark your post for later.
I did not know that. Important lesson to learn sooner than later. Thanks for helping out with instructions.To edit the file using pluma, you will need to use
It might not work if your DISPLAY variable is not set automatically under root. (on my Debian I have kate, and it dies with "Executing Kate with sudo is not possible due to unfixable security vulnerabilities.")Bash:sudo pluma /lib/udev/rules.d/pyra-charge-led.rules
to activate, use "sudo udevadm control --reload" or just reboot.
note of warning: You should put all custom stuff in /etc not in /lib (disclaimer: I don't have a Pyra in my hands to verify this, but if it's Debian, then this rule should apply)
* make sure the files ends with .rules and not .rules.txt
* there is this udevadm test command, but I'm too noob to give instructions on how to use/test.
The original colours are red. I did include a summary of what the colours would be after the script was working.I don’t even know if this was just the normal colors or it was because of the scrippt
Summary. Bottom logo will be red discharging, yellow charging.
Discharging, top goes green (99%-50%), yellow (49%-20%) then red.
Charging, top goes red (0-49%), yellow (50%-79%) then green.
You could just turn the table.I would need a mirror to be able to look at the backside of the screen though.
It’s now looks so when I have the os running, the lid closed and the charging cable in:
I wonder: If something goes wrong, is there a Official Pyra LED Rules File available Online, so i just have to copy the text to the File in my Pyra to rewind the changes? Or would this need a complete New Installation of Debian?..
I made a Picture of the File bevor i changed the Rules, so i know that the Original Rules are only till row 25
I wantet to recharge today but the Pyra is still at 62 %, so i think i will wait till 20 % or something around, to have the full Charging Experience..