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

RGB led configuration [answered]

asked 2014-02-12 20:20:33 +0300

XiliX gravatar image

What file is used for the RGB led patterns? I found configs for it in /etc/mce/10mce.ini and in 20hybris-led.ini. And, how dangerous is it to tinker with these settings? I remember the N900 locking up if mce.ini got corrupted.

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by XiliX
close date 2014-02-13 20:35:45.082931

3 Answers

Sort by » oldest newest most voted

answered 2014-02-13 10:29:26 +0300

spiiroin gravatar image

The mce config files are processed in alnum order. The idea is roughly to use 00 ... 89 for defaults/plaform/device specific configs, and 90-99 range is reserved for custom stuff. Settings in "later" files can override "earlier" ones and in general there should be no need to modify existing files.

So, to have custom led settings that survive upgrades, you can (as root):

cd /etc/mce/

cp 20hybris-led.ini 90custom-led.ini

vi 90custom-led.ini

systemctl restart mce.service


  • The configured values are written more or less as specified to sysfs control files. So, if you want to be sure that no harm is done, you can 1st try echoing to blink_delay_off, blink_delay_on and brightness entries under /sys/class/leds/led\:rgb_*/

  • The led configs in "10mce.ini" are used with N9, N900 etc and do not apply for Jolla phone.

edit flag offensive delete publish link more



I'm wondering: is the LED pwm ready? Would be nice to tweak it for fading/pulsing.

spidernik84 ( 2015-03-05 22:32:22 +0300 )edit

answered 2014-02-12 21:29:00 +0300

ssahla gravatar image

updated 2014-02-12 21:30:34 +0300

Here is a small howto:


I customized the led patterns (edited 20hybris-led.ini) and it worked. Some time later the led stopped working completely – no notifications, no charging indicator, nothing. I only got it back working with a factory reset. But that issue may be unrelated, as someone has had the same problem without tinkering with the patterns. (https://together.jolla.com/question/14430/notification-led-not-turning-on-and-fails-test/)

edit flag offensive delete publish link more


I modified mine a few weeks ago and haven't had any problems (well, at least none that I could directly link to the LED tweaks).

typo ( 2014-02-12 21:35:56 +0300 )edit

@typo, I guess the led malfunction really is unrelated, as many seem to have successfully edited the led patterns without any problems... I haven't redone my modifications yet because I thought the problem was caused by my tinkering, but maybe I'll do it now :)

ssahla ( 2014-02-12 21:52:12 +0300 )edit

One small thing I noticed is that the LED doesn't seem to support 1ms blink despite claiming it's a valid time value - it simply does nothing. 2ms and up start to produce visible results.

typo ( 2014-02-12 22:13:25 +0300 )edit

answered 2014-02-12 20:46:19 +0300

Andy Branson gravatar image

I edited the hybris one to n900 colours and no blinking when charging. Works fine.

edit flag offensive delete publish link more

Question tools



Asked: 2014-02-12 20:20:33 +0300

Seen: 553 times

Last updated: Feb 13 '14