I tried the following python script called from resume, but it gnome-
power-manager simply waits for the inhibited time and then the system
will sleep:
==
#!/usr/bin/env python
import dbus
import time
session_bus = dbus.SessionBus()
proxy = session_bus.get_object('org.gnome.SessionManager',
'/org/gnome/SessionManager')
proxy.Inhibit("torsten", dbus.UInt32(0), "Just a test", dbus.UInt32(15))
# Nasty way to remove the inhibt, we just exit after 120 seconds
time.sleep(120)
==
The same happens when calling kill -STOP and kill -CONT after a period
of time on gnome-power-manager. The signal seems to be already in the
queue and will be processed whenever g-p-m continues to run.
--
Two suspends when opening lid
https://bugs.launchpad.net/bugs/595985
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs