Comment 21 for bug 389857

Revision history for this message
Scott Howard (showard314) wrote : Re: [Bug 389857] Re: [karmic] inhibit applet not working

Thanks for testing this so much. This bug has been a moving target
since gnome-session, xorg (which keeps track of IDLE), and GPM have
been changing how they keep track of IDLE sessions quite a bit (see
bug #397839).

I have a new version at
https://launchpad.net/~showard314/+archive/ppa, which also inhibits
the xorg IDLE. That can be tested too, but we need to make a uniform
test case to forward this bug upstream (please fill in the answers
here from your testing so far so we can have a complete set of tests):

With inhibit enabled (using the unpatched GPM 2.27.91-0ubuntu1):
1) does the screen blank when power preferences is set to blank it?
2) does it suspend at the time set in power preferences?
3) can you manually shutdown? (no)
4) can you manually suspend? (yes)
5) can you manually switch users, log off, hibernate?
6) on lid close, can you suspend? (yes)
7) on lid close, can you shutdown?

All of the above should be "no"

And finally:
With inhibit enabled (using the patched GPM 2.27.91-0ubuntu2~ppa1 from
the above linked ppa):
1) does the screen blank when power preferences is set to blank it? (no)
2) does it suspend at the time set in power preferences? (no)
3) can you manually shutdown? (no)
4) can you manually suspend? (yes)
5) can you manually switch users, log off, hibernate? (yes, no, yes)
6) on lid close, can you suspend?
7) on lid close, can you shutdown?

Once we have this complete, we can send it upstream.

Thanks again.

On Sun, Aug 30, 2009 at 11:45 PM, Launchpad Bug
Tracker<email address hidden> wrote:
> ** Branch linked: lp:~showard314/gnome-power/bug389857
>
> --
> [karmic] inhibit applet not working
> https://bugs.launchpad.net/bugs/389857
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Gnome Powermanager: In Progress
> Status in “gnome-power-manager” package in Ubuntu: In Progress
>
> Bug description:
> Binary package hint: gnome-power-manager
>
> The inhibit applet does not work in Karmic (both as a jaunty upgrade and in a Live CD environment, on a desktop and a laptop).
>
> test case:
> After adding the applet to the gnome panel, the applet icon appears normal, and the tooltip says "Automatic sleep enabled".
> Click on the applet.
>
> Result:
> Clicking on the applet icon produces no effect. The inhibit applet's icon and tooltip does not change, and gnome-power is not inhibited (the screen will still blank/suspend as per power profile).
>
> Expected result:
> clicking on the applet changes the tool tip and icon to display "automatic sleep disabled" (or something similar), and the applet should prevent the screen from blanking or suspending.
>
>
> Also, from the terminal:
>
> yelo3@yelo3-laptop:~/bin$ /usr/bin/gnome-power-manager-inhibit test
> Traceback (most recent call last):
>  File "/usr/bin/gnome-power-manager-inhibit", line 34, in <module>
>    cookie = gpm.Inhibit("Command Line: " + sys.argv[1], "Long Execution")
>  File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 68, in __call__
>    return self._proxy_method(*args, **keywords)
>  File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 140, in __call__
>    **keywords)
>  File "/usr/lib/pymodules/python2.6/dbus/connection.py", line 620, in call_blocking
>    message, timeout)
> dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod: Method "Inhibit" with signature "ss" on interface "(null)" doesn't exist
>