Re: [gpm] AC Power button power management preferences

On Fri, Jun 25, 2010 at 10:01 AM, Richard Hughes <hughsient gmail com> wrote:
> On 25 June 2010 14:45, Patrick Doyle <wpdster gmail com> wrote:
>> Can anybody tell me why the options listed for "When the power button
>> is pressed" in gnome-power-preferences don't include "shut down".
> The only reason for it not appearing is because it's been disallowed
> in ConsoleKit. gnome-power-manager checks with consolekit if the
> current user is able to perform this type of operation, and if
> forbidden, it's hidden from the UI.
> The output of ck-list-sessions might be useful in this case.
> Richard.

Hi Richard,
Thank you for the response.  Pasted below is the output from
ck-list-sessions.  Session19 is my VNC session; Session1 is the
console login session.  I'm not sure what this tells you (and it
certainly doesn't tell me much at all and "man ck-list-sessions"
doesn't help).  I am 99.9% certain that the "Shutdown" option doesn't
show up when I'm logged in at the console, but I can double check that
(somewhat awkwardly), if you think that is what is needed.


$ ck-list-sessions
        unix-user = '1000'
        realname = 'Patrick Doyle'
        seat = 'Seat19'
        session-type = ''
        active = FALSE
        x11-display = ''
        x11-display-device = ''
        display-device = '/dev/ssh'
        remote-host-name = ''
        is-local = FALSE
        on-since = '2010-06-25T14:20:33.198174Z'
        login-session-id = ''
        unix-user = '116'
        realname = 'Gnome Display Manager'
        seat = 'Seat1'
        session-type = 'LoginWindow'
        active = TRUE
        x11-display = ':0'
        x11-display-device = '/dev/tty7'
        display-device = ''
        remote-host-name = ''
        is-local = TRUE
        on-since = '2010-06-23T18:33:28.570526Z'
        login-session-id = ''
        idle-since-hint = '2010-06-23T18:38:23.763466Z'

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]