Wiki: How to disable email notification LED

asked 2014-06-12 21:26:40 +0200

this post is marked as community wiki

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

updated 2019-08-05 12:44:02 +0200

Tanghus gravatar image

Method 1 is simplest and safest, and it does not require devel-su privileges.

To install mcetool in terminal window run:

pkcon refresh
pkcon install mce-tools

For methods 2 and 3 you need developer mode enabled. See: https://together.jolla.com/question/32459/howto-access-command-line-with-root-privileges/


Method 1

SailfishOS >= 1.1.7:

mcetool --disable-led-pattern=PatternCommunicationEmail

Older OS versions:

    dbus-send --system --print-reply --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.set_config string:/system/osso/dsm/leds/PatternCommunicationEmail variant:boolean:false

Method 2

Configuration file handling email LED notifications:

/usr/share/ngfd/events.d/email_exists.ini

Before editing the file, you should make a backup of it to a directory outside of system file structure so that the copy won't be triggered automatically (/home/nemo/ is ok).

As devel-su, remove this line from the email_exists.ini:

mce.led_pattern = PatternCommunicationEmail

Save the changes and reboot the phone.


Method 3

Warning! With Jolla's historical predecessor, Nokia N900, any bad edits to the equivalent of Jolla's 20hybris-led.ini led to a bootloop. Such bootloop can be recovered only with recovery mode.

Configuration file containing LED events and colors:

/etc/mce/20hybris-led.ini

  1. Backup 20hybris-led.ini to some other directory (for example under /home/nemo/)

  2. To disable LED email notifications scroll down to the line containing variable LEDPatternsDisabled in 20hybris-led.ini. This is usually the last line of the file.

  3. Add PatternCommunicationEmail to the list of disabled patterns. Use semicolon ; as a separator.

    Example of edited line: LEDPatternsDisabled=PatternDeviceOn;PatternCommunicationEmail

  4. Save the chances and reboot.


Notes:

  • To disable email notification force feedback effect see this wiki article.
  • To edit LED colors see this wiki article.
edit retag flag offensive close delete

Comments

@spiiroin Thanks for the mcetool method. :)

Manatus ( 2015-09-10 14:00:56 +0200 )edit

Changed the mcetool method as number 1 and preferred one because it does not require devel-su and is safer in general.

Manatus ( 2015-09-10 14:09:06 +0200 )edit