Package Search
 
Members: 353 | Topics: 767 | Posts: 3211
We welcome our newest member: ClintBarton
Info
» You aren't logged in, login or registerOnline: No members and 6 guests | Time: 21:59
Polkit and PowerManager Bug
paldo Support Forum    paldo    General Support
Reply Reply   Subscribe Topic Subscribe Topic
3 posts found.
 Polkit and PowerManager Bug
Senior Mitglied
 
 
 
Posts: 216
Registered: 2008-07-04
Hi everyone, so almost everything works fine on my paldo but there is one problem, the case is that paldo passed through a transaction to the world of policykit and yet it's not well implemented, the default installation forgets to add the user to simple polkit authorizations and so the default user can't even set a system connection configuration for networkmanager through GUI

But it can be easily fixed through sudo polkit-auth --user $YOUR_USER --grant $ACTION_ID

But I've got a bigger problem, On my paldo 1.18+ I can suspend and hibernate with no problems at all through hal
* sudo pm-suspend
* sudo pm-hibernate

Now I've got gnome-do (docky) on my paldo and it works amazingly good as a dock, later I'll post the specs I've created and I do advise people to get it installed, it makes gui works in another dimension, back to the problem: So instead of doing ALT+F2 sudo pm-suspend to suspend -i tried META+space Suspend on docky and it didn't work and gave me an error on gnome-power-manager so I went to the terminal and tried to use the gnome-power-manager to suspend:

Code[In neuem Fenster öffnen]
[diogo@hp-laptop:~]$ gnome-power-cmd.sh suspend
Suspending
Error org.freedesktop.DBus.GLib.UnmappedError.GTypePrivateGTypeFlags.Code0: not authorized
Failed
[diogo@hp-laptop:~]$


So I found out that I couldn't suspend because of polkit authorization

the code behind /usr/bin/gnome-power-cmd.sh provides the information where it tries to suspend, hibernate with the polkit action_id org.freedesktop.PowerManagement.$ACTION

The problem is " THERE ISN'T THIS ACTION_ID IN HERE "

This way I couldn't allow me through : sudo polkit-auth --user diogo --grant org.freedesktop.PowerManagement.suspend

So how to fix it? I tried to create a /usr/shace/PolicyKit/policy/org.freedesktop.PowerManagement.policy but it kept failing for no reason

The weird is that gnome should use the same action_id to do shutdown and reboot, but these are working after I allowed me to use the action_id org.freedesktop.consolekit.system.stop and org.freedesktop.consolekit.system.restart
 
..............................
OSs: Paldo-testing x86_64 :: HP Pavilion dv9680ez
Profile   Private Message   E-Mail
Created: 2009-07-29 12:41
Highlight selected Text   Edit   Delete   Quote Reply
 Re: Polkit and PowerManager Bug
Senior Mitglied
 
 
 
Posts: 216
Registered: 2008-07-04
It get fixed on paldo unstable, but I'm going back to testing because of metacity compositing on 2.27 is not good enough on 2.26 is smoother.

Now I don't know what is the difference on unstable to testing but the script the policies are the same, this seams to be a bug on something but don't know what package is bugged yet
 
..............................
OSs: Paldo-testing x86_64 :: HP Pavilion dv9680ez
Profile   Private Message   E-Mail
Created: 2009-07-29 23:00
Highlight selected Text   Edit   Delete   Quote Reply
 Re: Polkit and PowerManager Bug
Senior Mitglied
 
 
 
Posts: 216
Registered: 2008-07-04
I downgraded to paldo stable 1.18 and it works as well so the problem is only on paldo testing
 
..............................
OSs: Paldo-testing x86_64 :: HP Pavilion dv9680ez
Profile   Private Message   E-Mail
Created: 2009-07-30 12:50
Highlight selected Text   Edit   Delete   Quote Reply
Subscribe Topic Subscribe Topic
powered by bitron board 1.23a