laasonen
|
2011-04-10
, 07:47
|
|
Posts: 565 |
Thanked: 618 times |
Joined on Jun 2010
@ Finland
|
#1
|
|
2011-04-10
, 09:35
|
Posts: 235 |
Thanked: 339 times |
Joined on Nov 2010
|
#2
|
import dbus bus = dbus.bus.BusConnection("unix:path=/var/run/dbus/system_bus_socket") object = bus.get_object('com.nokia.mce', '/com/nokia/mce/request', introspect=False) interface = dbus.Interface(object, dbus_interface='com.nokia.mce.request') try: interface.devlock_callback(dbus.Int32("2"), timeout = 0) except dbus.exceptions.DBusException: pass
The Following User Says Thank You to jstokes For This Useful Post: | ||
|
2011-04-10
, 14:28
|
|
Posts: 565 |
Thanked: 618 times |
Joined on Jun 2010
@ Finland
|
#3
|
Apparently you're supposed to set error_handler and reply_handler to None. When I did that, though, it didn't send the message.
I worked around it like this:
Code:import dbus bus = dbus.bus.BusConnection("unix:path=/var/run/dbus/system_bus_socket") object = bus.get_object('com.nokia.mce', '/com/nokia/mce/request', introspect=False) interface = dbus.Interface(object, dbus_interface='com.nokia.mce.request') try: interface.devlock_callback(dbus.Int32("2"), timeout = 0) except dbus.exceptions.DBusException: pass
The Following User Says Thank You to laasonen For This Useful Post: | ||
|
2011-04-11
, 05:31
|
Posts: 875 |
Thanked: 918 times |
Joined on Sep 2010
|
#4
|