LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Can't control policyKit (https://www.linuxquestions.org/questions/linux-desktop-74/cant-control-policykit-749346/)

ohadbasan 08-21-2009 01:00 PM

Can't control policyKit
 
Hey fellas.

I'm using arch64bit. kde 4.3
Kde's powerdevil won't let me change the screen brightness (the bar doesn't do anything) and it can not control the system's powersaving options (again, doesn't change anything altough the "cpufreq" daemon runs and all the modules are loaded)
I think that it's somehow related to policykit.
I can not change any value, the "modify" button is grey including the values in "policykit project". even logging to kde as root doesn't help. what do I do?

thanks!

jschiwal 08-21-2009 06:46 PM

Open up the console and enter "ps -e | grep dbus". There should be two instances. One running as root, and the other as your username. If you have installed updates, you may need to reboot. I had a problem connecting to my sansa-p2 player in amarok. Trying mtp-detect manually, there was an error message dealing with dbus. KDE and Gnome communicate with HAL via the dbus.

While in the console, enter:
polkit-auth --user <username> --show-obtainable

This will show the policies that can be granted. IIRC, you can gain permission with
sudo polkit-auth --user <username> --grant <the policy>

I hadn't noticed a policy editor for kde but have noticed gnome-polkit-editor or something similar.

ohadbasan 08-22-2009 05:32 AM

Hey dude
Thanks for the answer
polkit-auth --user <username> --show-obtainable return me nothing.
Like there are no policies I can grant to my user.
something's odd and I'm not well familiar with polickit (and I didn't find any good documentation online)

anon099 08-22-2009 11:12 PM

apt-get purge policykit

ohadbasan 08-24-2009 01:23 PM

this is arch linux so apt-get won't work here
solved by adding this to policykit.conf
although I do presume that purging the package completely will fix it up also

<match user="USERNAME">
<return result="yes"/>
</match>


All times are GMT -5. The time now is 02:19 AM.