You are not logged in.
Pages: 1
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
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
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
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
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
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
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
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
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
Pages: 1