Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 252196 - sys-auth/policykit-0.9: PolicyKit not working on initial bootup, after reset of X everything is fine
Summary: sys-auth/policykit-0.9: PolicyKit not working on initial bootup, after reset ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High minor
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-22 18:31 UTC by Martin Alexander Neumann
Modified: 2008-12-23 14:18 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 Martin Alexander Neumann 2008-12-22 18:31:01 UTC
I am running Gentoo with Gnome and PolicyKit. When I boot my machine up, the shutdown or restart buttons of Gnome do not do anything and applications like time-admin (that have an unlock-button with PolicyKit) have just greyed-out unlock-buttons. "polkit-auth" returns nothing for my user.

When restarting X, all of the mentioned issues are fine and polkit-auth also shows all relevant rights.

Reproducible: Always

Steps to Reproduce:
1. Boot Gentoo with Gnome
2. Klick on Shutdown-Button in Gnome-Panel or launch apps like time-admin
3. Reset X, e.g. via CTRL+ALT+BACKSPACE

Actual Results:  
After first boot up I have to restart X to be able to work satisfactory.

Expected Results:  
When Gnome is coming up, the mentioned issues should be working immediatly without any reset of X.

After some trouble, I found the following way to fix this. But I am not sure if it is a good fix (or maybe breaks something) and therefore I open up this bug report.

I just added dbus as a dependency of the xdm initscript:

--- xdm.old	2008-12-22 19:08:42.000000000 +0100
+++ /etc/runlevels/default/xdm	2008-12-22 19:01:25.000000000 +0100
@@ -51,7 +51,7 @@
 	before alsasound
 
 	# Start before X
-	use acpid consolekit hald xfs
+	use acpid consolekit hald dbus xfs
 }
 
 setup_dm() {
Comment 1 Jory A. Pratt gentoo-dev 2008-12-23 03:30:59 UTC
as you are using xdm the gnome-session script should be using dbus by default. Would you please provide `emerge info` so we can  see what useflags you have things compiled with.
Comment 2 Martin Alexander Neumann 2008-12-23 12:44:57 UTC
(In reply to comment #1)
> as you are using xdm the gnome-session script should be using dbus by default.
> Would you please provide `emerge info` so we can  see what useflags you have
> things compiled with.
> 

Hi Gentoobugsie,

today I booted my system and was kind of shocked when I saw that my buttons were gone again. :)

I spent some time on this and recognized that console-kit-daemon was not running. I reverted /etc/runlevels/default/xdm and rc-update add console-kit-daemon default.

So this was my fault, sorry for this mistake. Do you still need my emerge --info?
Comment 3 Jory A. Pratt gentoo-dev 2008-12-23 14:17:36 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > as you are using xdm the gnome-session script should be using dbus by default.
> > Would you please provide `emerge info` so we can  see what useflags you have
> > things compiled with.
> > 
> 
> Hi Gentoobugsie,
> 
> today I booted my system and was kind of shocked when I saw that my buttons
> were gone again. :)
> 
> I spent some time on this and recognized that console-kit-daemon was not
> running. I reverted /etc/runlevels/default/xdm and rc-update add
> console-kit-daemon default.
> 
> So this was my fault, sorry for this mistake. Do you still need my emerge
> --info?
> 

No if it is working fine, go ahead and close this bug report.