You are not logged in.

#1 2009-12-17 19:33:18

namelessone
Member
Registered: 2009-12-17
Posts: 39

shutdown from gnome

I recently switched from using gdm to qingy for logins. Ever since then, I have been unable to shout down my computer directly from inside gnome. I have to log out and type "sudo halt" from the command line.

How do I make it so I can run the shutdown commands from inside gnome again?

Offline

#2 2009-12-17 19:37:28

lagagnon
Member
From: an Island in the Pacific...
Registered: 2009-12-10
Posts: 1,087
Website

Re: shutdown from gnome

I seem to remember that the gnome command is "gnome-power-cmd shutdown", but it has been a couple of years since I've run Gnome...


Philosophy is looking for a black cat in a dark room. Metaphysics is looking for a black cat in a dark room that isn't there. Religion is looking for a black cat in a dark room that isn't there and shouting "I found it!". Science is looking for a black cat in a dark room with a flashlight.

Offline

#3 2009-12-18 00:16:22

PirateJonno
Forum Fellow
From: New Zealand
Registered: 2009-04-13
Posts: 372

Re: shutdown from gnome

looks like a consolekit issue to me. make sure qingy runs ck-launch-session before it starts gnome


"You can watch for your administrator to install the latest kernel with watch uname -r" - From the watch man page

Offline

#4 2009-12-18 16:29:40

namelessone
Member
Registered: 2009-12-17
Posts: 39

Re: shutdown from gnome

PirateJonno wrote:

looks like a consolekit issue to me. make sure qingy runs ck-launch-session before it starts gnome

Yes, I am already using ck-launch-session to start gnome.

When I open up the shutdown menu in gnome, there is no option for shutdown. Just for suspend, hibernate. When I use gdm, the shutdown button is there.

Offline

#5 2009-12-19 00:28:47

PirateJonno
Forum Fellow
From: New Zealand
Registered: 2009-04-13
Posts: 372

Re: shutdown from gnome

ok, well maybe you dont have the right permissions. can you post the output of:

$ ck-list-sessions
$ cat /usr/share/polkit-1/actions/org.freedesktop.consolekit.policy

"You can watch for your administrator to install the latest kernel with watch uname -r" - From the watch man page

Offline

#6 2009-12-19 15:01:24

namelessone
Member
Registered: 2009-12-17
Posts: 39

Re: shutdown from gnome

You are probably right about the permissions: I recently discovered that I do not have the permission to mount devices since switching to qingy as well.

I noted that in /etc/group I am a member of power, storage, and optical.

ck-list-sessions:

unix-user = '1000'
    realname = '(null)'
    seat = 'Seat2'
    session-type = ''
    active = FALSE
    x11-display = ':1'
    x11-display-device = ''
    display-device = '/dev/tty1'
    remote-host-name = ''
    is-local = TRUE
    on-since = '2009-12-19T14:41:57.123859Z'
    login-session-id = ''

/usr/share/polkit-1/actions/org.freedesktop.consolekit.policy:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
 "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">

<!--
Policy definitions for ConsoleKit
-->

<policyconfig>

  <action id="org.freedesktop.consolekit.system.stop">
    <description>Stop the system</description>
    <message>System policy prevents stopping the system</message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.consolekit.system.stop-multiple-users">
    <description>Stop the system when multiple users are logged in</description>
    <message>System policy prevents stopping the system when other users are logged in</message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.consolekit.system.restart">
    <description>Restart the system</description>
    <message>System policy prevents restarting the system</message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.consolekit.system.restart-multiple-users">
    <description>Restart the system when multiple users are logged in</description>
    <message>System policy prevents restarting the system when other users are logged in</message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep</allow_active>
    </defaults>
  </action>

</policyconfig>

Offline

#7 2009-12-19 16:34:45

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: shutdown from gnome

There is lots of good reference material in here: http://bbs.archlinux.org/viewtopic.php?id=65070
This post is referenced in the hal wiki which is always a good source for mounting  and permission problems.


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#8 2009-12-19 22:17:16

namelessone
Member
Registered: 2009-12-17
Posts: 39

Re: shutdown from gnome

bgc1954 wrote:

There is lots of good reference material in here: http://bbs.archlinux.org/viewtopic.php?id=65070
This post is referenced in the hal wiki which is always a good source for mounting  and permission problems.

An interesting thread, but the suggestions in it do not seem to help. My problem persists. I really don't know how to go about debugging policykit issues.

EDIT:
I noticed that ck-list-sessions displays active = "TRUE" when I am using gdm (and shutdown, mounting works). What does gdm do to make a session active that login managers like qingy and slim do not?

Last edited by namelessone (2009-12-19 23:12:45)

Offline

#9 2009-12-20 03:18:41

PirateJonno
Forum Fellow
From: New Zealand
Registered: 2009-04-13
Posts: 372

Re: shutdown from gnome

yup, the active=FALSE is the cause of it. another guy has the same problem here: http://bbs.archlinux.org/viewtopic.php?id=86832


"You can watch for your administrator to install the latest kernel with watch uname -r" - From the watch man page

Offline

Board footer

Powered by FluxBB