Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 481136 - =gnome-base/gnome-2* doesn't allow shutdown/reboot with sys-auth/consolekit-0.4.6 (?)
Summary: =gnome-base/gnome-2* doesn't allow shutdown/reboot with sys-auth/consolekit-0...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-15 08:42 UTC by Quasimodo
Modified: 2013-08-22 07:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Quasimodo 2013-08-15 08:42:24 UTC
After upgrading to consolekit-0.4.6, shutdown (and reboot) is not possible from gnome 2 desktop. The shutdown and reboot entries in system menu are missing.

Downgrading to consolekit-0.4.5_p20120320-r1 restores expected behaviour.

Reproducible: Always
Comment 1 Pacho Ramos gentoo-dev 2013-08-20 08:05:43 UTC
Are you running openrc or systemd?
Comment 2 Quasimodo 2013-08-20 08:21:08 UTC
I'm running openrc and gnome 2. Mostly stable packages. Also, I've noticed, that using consolekit-0.4.6 will not only stop shutdown under gnome but also all acpi functions including ctrl-alt-del on console and power button.

Also, there was a problem mounting an usb pen drive.

I suspect that consolekit doesn't get started at all despite the service is running.
Comment 3 Pacho Ramos gentoo-dev 2013-08-20 08:40:33 UTC
Could you try with 0.4.5_p20120320-r2? (to help to find when did it break exactly)
Comment 4 Jacek 2013-08-20 19:17:02 UTC
hi,
after upgrade consolekit to 0.4.6 the same in my system. 
gnome2
3.9.11-aufs-r1
openrc
tested with 0.4.5_p20120320-r2 - same as 0.4.6
downgrade to 0.4.5_p20120320-r1 solves the issue

after upgrade consolekit I also noticed different user soring in gdm (case insensitive).
Downgrade to 0.4.5_p20120320-r1 solves soring issue too.

regards
j
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2013-08-21 05:47:11 UTC
$ grep with.*consolekit *.ebuild
gdm-2.20.11-r1.ebuild:		$(use_with consolekit console-kit)
gdm-3.6.2-r1.ebuild:		--with-consolekit-directory=${EPREFIX}/usr/lib/ConsoleKit
gdm-3.6.2-r1.ebuild:		$(use_with consolekit console-kit)

Looks like gdm2 doesn't have --with-consolekit-directory= set and propably can't find it's helpers from the package libexec directory (/usr/lib/ConsoleKit)
Comment 6 Jacek 2013-08-21 06:26:09 UTC
I use specific build of gdm (2.32.1-r1) so it is not important. sorry.
Most important are missing shutdown in system menu and not working suspend (fn-f4) in my thinkpad.
manual pm-suspend is working.

Maybe gnome-power-manager has problem with new consolekit, becasue there is missing actions in general tab .
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2013-08-21 09:57:51 UTC
unlikely to have anything to do with ConsoleKit based on the given information, more likely the gdm you are using is trying to access ConsoleKit helpers from wrong directory
gdm-3.6 was fixed for this, anything below that remains broken
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2013-08-21 10:01:58 UTC
(In reply to Jacek from comment #6)
> I use specific build of gdm (2.32.1-r1) so it is not important. sorry.

No such version of GDM in Portage as per
http://packages.gentoo.org/package/gnome-base/gdm
That would make this bug even INVALID

But someone should still look if 2.20.11-r1 needs the ./configure flag from 3.6.2-r1 backported as per Comment #5
Comment 9 Quasimodo 2013-08-21 10:21:19 UTC
Before you guys forget it: It also, as mentioned, kills the acpi shutdown on the console and the power button. And that's something, that has nothing to do with gdm or gnome.

Also, automounting usb drives failed - which could be a result of a gnome / consolekit missmatch.

I'm not sure what consolekit is responsible for, but I'm quite sure that gnome or gdm has nothing to do with my consoles.
Comment 10 Pacho Ramos gentoo-dev 2013-08-21 11:40:51 UTC
I would try to go step by step. At first, please test with gdm-2.20.11-r1 and, if still failing, try appending the configure switch to it. If you look at changes between 0.4.5*-r1 and -r2, it only changes the libexec location
Comment 11 Samuli Suominen (RETIRED) gentoo-dev 2013-08-21 12:13:36 UTC
`ck-list-sessions` returns 'active = TRUE' on my Xfce with ConsoleKit 0.4.6 like it should
which is enough for polkit, and then apps query polkit if everything is allowed:

$ xfce4-power-manager --dump
[ ... ]
Authorized to suspend: True
Authorized to hibernate: True
Authorized to shutdown: True
Authorized to spin down hard disks: True

(Sorry, I don't have GNOME 2.x installation available, I hope one of the GNOME devs do)
Comment 12 Samuli Suominen (RETIRED) gentoo-dev 2013-08-21 12:15:18 UTC
Working output of ConsoleKit below. Notice the 2 lines I've marked there:

$ ck-list-sessions 
Session1:
	unix-user = '1000'
	realname = '(null)'
	seat = 'Seat1'
	session-type = ''
	active = FALSE
	x11-display = ''
	x11-display-device = ''
	display-device = '/dev/tty1'
	remote-host-name = ''
	is-local = TRUE
	on-since = '2013-08-11T14:51:00.173821Z'
	login-session-id = '2'
	idle-since-hint = '2013-08-11T17:51:17.068574Z'
Session2:
	unix-user = '1000'
	realname = '(null)'
	seat = 'Seat1'
	session-type = ''
	active = TRUE                   <- VERY IMPORTANT
	x11-display = ':0'
	x11-display-device = '/dev/tty7'
	display-device = '/dev/tty1'
	remote-host-name = ''
	is-local = TRUE                 <- VERY IMPORTANT
	on-since = '2013-08-11T14:52:42.366964Z'
	login-session-id = '2'
Comment 13 Jacek 2013-08-21 21:10:31 UTC
I tested gdm-2.20.11-r1 and it working well with new consolekit, but I prefer gdm2.32.1-r1. It looks more attractive. So I stay on older console kit.
Comment 14 Pacho Ramos gentoo-dev 2013-08-22 07:59:09 UTC
you will need to handle it yourself then