answered
2014-09-11 23:04:37 +0200
It has been possible since maemo days to configure led patterns to stop automatically after N seconds and this legacy logic still exists in Jolla phone too. However, it has never been used by default and might not work fully as expected. And it was never updated to take suspend into account - which basically means the timer advances only when the device is active and thus then configured limit is just lower bound for disabling.
Still, even without any sw modifications it should be possible to use auto stop for charging & battery full notifications (the device will not suspend while connected to a charger). Also - by opting to use sw breathing also when charger is not connected - any breathing led pattern can be made to stop automatically (breathing blocks suspend too).
For example: To make charging pattern stop after 5 seconds, do as root:
- printf "[LEDPatternHybris]\nPatternBatteryCharging=50;4;5;0;0;7f7f7f\n" > /etc/mce/90custom-led.ini
- systemctl restart mce.service
To restore default behavior:
- rm /etc/mce/90custom-led.ini
- systemctl restart mce.service
EDIT:
Just a note: Nowadays the led pattern timeout uses suspend aware timer. So it should be usable for all led patterns.
Neither the N9 nor the N900 had that feature out of the box....
XiliX ( 2014-09-07 14:17:49 +0200 )edit