Reply
Thread Tools
Posts: 53 | Thanked: 20 times | Joined on Jan 2010
#1
Is it possible to cancel the notification light from the command line (dbus or whatever) or from Python? I want the ability to cancel an SMS notification in particular.

I don't want to permanently switch the notification light off -- just acknowledge the current SMS notification so it stops flashing, such that it will start flashing again if another message arrives.

Any ideas?
 
Posts: 346 | Thanked: 271 times | Joined on Jan 2010
#2
dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_led_pattern_deactivate string:"PatternCommunicationSMS"
 

The Following 2 Users Say Thank You to Megaltariak For This Useful Post:
Posts: 53 | Thanked: 20 times | Joined on Jan 2010
#3
Thanks very much!

I've just ported that to Python and it looks like this, in case anyone else is looking for it:

Code:
import dbus
bus = dbus.SystemBus()
proxy = bus.get_object("com.nokia.mce", "/com/nokia/mce/request")
proxy.req_led_pattern_deactivate("PatternCommunicationSMS")
 

The Following User Says Thank You to tremby For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 18:14.