We have moved to a new Sailfish OS Forum. Please start new discussions there.
7

(Idea) Controlling Led notification time for email and sms

asked 2014-09-06 10:56:15 +0300

N9Sailfish gravatar image

updated 2014-09-09 09:17:03 +0300

jiit gravatar image

I have not seen the following matter on led notification time for emails and sms ... So:

After received email or sms, could it be possible to set the blinking time of the LED light? The alternatives could be (1) not Limited or (2) at maximum three hours.

Eg. if you received the message in the morning (8 am or so) and you can read the message just in the early evening (5 pm or so), thus the LED has blinked 7 hours continuously. I have notice some power consumption for that. At least the previous Nokia phones had this. How about with Jolla then?

edit retag flag offensive close delete

Comments

2

Neither the N9 nor the N900 had that feature out of the box....

XiliX ( 2014-09-07 14:17:49 +0300 )edit

1 Answer

Sort by » oldest newest most voted
4

answered 2014-09-11 23:04:37 +0300

spiiroin gravatar image

updated 2017-09-27 08:30:08 +0300

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:

  1. printf "[LEDPatternHybris]\nPatternBatteryCharging=50;4;5;0;0;7f7f7f\n" > /etc/mce/90custom-led.ini
  2. systemctl restart mce.service

To restore default behavior:

  1. rm /etc/mce/90custom-led.ini
  2. 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.

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
4 followers

Stats

Asked: 2014-09-06 10:56:15 +0300

Seen: 464 times

Last updated: Sep 27 '17