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

HowTo: Change notification LED pattern

asked 2014-01-06 23:27:26 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2014-02-25 12:25:32 +0200

jgr gravatar image

The blinking when fully charged might irritate or the color choices by Jolla might be wrong. Feel free to fill in your favorite LED patterns to the answer below.

This is a community wiki, so no-one will get Karma points for this.

edit retag flag offensive close delete

Comments

GUI in settings for this would be nice... but thanks, I wanted to change indication for SMS to green and Calls to red

Bobsikus ( 2014-04-13 10:16:07 +0200 )edit

1 Answer

Sort by » oldest newest most voted
49

answered 2014-01-06 23:27:37 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2014-03-09 11:26:13 +0200

jgr gravatar image

HowTo: Personalize LED combinations

Reference for patterns is available at the top of the file you will be editing.

DISCLAIMER Use developer mode and edit system files at own risk. Wrong characters in the file below has been reported to put Jolla in an endless boot loop

Open settings and select Developer mode and enable it. Set a password. Reboot to apply. Then open a terminal and install your favorite editor, I prefer nano for basic editing (vi isn't referenced, since those that know about it will use it and others shouldn't bother to learn it for basic edits):

pkcon install nano

switch to superuser mode

devel-su

make a backup copy of /etc/mce/20hybris-led.ini

cp /etc/mce/20hybris-led.ini /etc/mce/20hybris-led.ini.bak

then open it with the editor of choice.

nano /etc/mce/20hybris-led.ini

At the top of the file is a reference on the pattern applied to this file. Comments start with '#'.


For those of you disturbed by blinking LED when full battery, at the end of the file add PatternBatteryFull to LEDPatternsDisabled

LEDPatternsDisabled=PatternDeviceOn;PatternBatteryFull

Instead, LED will stay white and on until you plug off charger. Any pattern can be disabled by being added to this line.

If inspired by N900 suits you change PatternBatteryCharging and PatternBatteryFull to the following:

PatternBatteryCharging=50;1;0;0;0;7f7f00
# 7f7f00 = Amber

PatternBatteryFull=40;1;0;0;0;008b00
# 008b00 = DarkGreen

Or use an online color chooser, like http://www.colorpicker.com/, to pick colors that suits you.

When done save your changes with ctrl-o and exit nano with ctrl-x

Reboot your Jolla (or type systemctl restart mce.service) and enjoy your new patterns.

edit flag offensive delete publish link more

Comments

What is the meaning of the numbers for the pattern? So I could create my own :) Is there any listing of the available "events" (like "PatternBatteryFull")?

CsTom ( 2014-01-07 10:43:02 +0200 )edit

Yes, there's a meaning and you can create an own (just mind the disclaimer). The meaning is at the top of the file you'll be editing. You can set blinking pattern or steady light at any color.

Mohjive ( 2014-01-07 10:56:00 +0200 )edit
6

Okay, got it :) One addition to your guide: instead of rebooting, just type

systemctl restart mce.service

CsTom ( 2014-01-07 13:23:51 +0200 )edit

@CsTom: I made the answer a wiki, so it's ok to add contents as you wish. Though I used that command and screen blankout went crazy until I locked and unlocked my Jolla, but I guess one can live with that. :)

Mohjive ( 2014-01-07 13:26:48 +0200 )edit
2

I found this link, I see it as a complement to this wiki, to see how things will be before trying to change. Could help...

https://github.com/nemomobile/mce/blob/master/inifiles/hybris-led.ini

lunatix ( 2014-01-09 12:44:03 +0200 )edit
Login/Signup to Answer

Question tools

Follow
40 followers

Stats

Asked: 2014-01-06 23:27:26 +0200

Seen: 4,712 times

Last updated: Mar 09 '14