You are not logged in.

#1 2009-05-17 16:16:42

nemp
Member
Registered: 2009-01-30
Posts: 17

kpowersave doesn't work properly [SOLVED]

Hello and first of all, sorry about my english!

When I run kpowersave as a regular user, CPU Frequency Policy and Suspend to RAM/Disk options are disabled (right click on tray icon).
But when I run kpowersave as root options are available.

How can I make those options available when I run kpowersave as a regular user?

My DE is KDE3.5 and I have my user in 'power' group.

Last edited by nemp (2009-05-22 14:08:50)

Offline

#2 2009-05-17 18:26:48

Zariel
Member
Registered: 2008-10-07
Posts: 446

Re: kpowersave doesn't work properly [SOLVED]

Do you have hal and acpid?

Offline

#3 2009-05-17 21:58:53

nemp
Member
Registered: 2009-01-30
Posts: 17

Re: kpowersave doesn't work properly [SOLVED]

Zariel wrote:

Do you have hal and acpid?

Yes, those daemons are started.

Last edited by nemp (2009-05-17 22:00:22)

Offline

#4 2009-05-22 01:18:04

nemp
Member
Registered: 2009-01-30
Posts: 17

Re: kpowersave doesn't work properly [SOLVED]

I also tried to add user in wheel group and then uncomment %wheel ALL=NOPASSWD : ALL in /etc/sudoers, but still no luck.
Anyone else have idea?

Offline

#5 2009-05-22 06:50:50

Mr.Cat
Member
Registered: 2008-09-27
Posts: 79

Re: kpowersave doesn't work properly [SOLVED]

Try adding yourself to "power" group.

Offline

#6 2009-05-22 10:57:34

nemp
Member
Registered: 2009-01-30
Posts: 17

Re: kpowersave doesn't work properly [SOLVED]

As I said, I have my user in power group.

Last edited by nemp (2009-05-22 10:58:14)

Offline

#7 2009-05-22 11:15:04

Mr.Cat
Member
Registered: 2008-09-27
Posts: 79

Re: kpowersave doesn't work properly [SOLVED]

Sorry, didn't notice that.
Then, this may be a policykit issue. Try adding something like that in your /etc/PolicyKit/PolicyKit.conf (that should be inside "config" section) and see whether it enables suspend and hibernate (I don't remember action names for cpu scaling - even not sure there are those):

<match action="org.freedesktop.hal.power-management.suspend">
    <match group="power">
        <return result="yes"/>
    </match>
</match>
<match action="org.freedesktop.hal.power-management.hibernate">
    <match group="power">
        <return result="yes"/>
    </match>
</match>

Last edited by Mr.Cat (2009-05-22 11:49:09)

Offline

#8 2009-05-22 14:08:28

nemp
Member
Registered: 2009-01-30
Posts: 17

Re: kpowersave doesn't work properly [SOLVED]

Solved!
Thanks Mr.Cat!

This was a policykit issue. I added those lines to my /etc/PolicyKit/PolicyKit.conf but instead of <match group="power"> i added <match user="USERNAME"> and I also added two more <match> tags for cpufreq and lcd-panel

<match action="org.freedesktop.hal.power-management.suspend">
    <match user="nemp">
        <return result="yes"/>
    </match>
</match>

<match action="org.freedesktop.hal.power-management.hibernate">
    <match user="nemp">
        <return result="yes"/>
    </match>
</match>

<match action="org.freedesktop.hal.power-management.cpufreq">
    <match user="nemp">
        <return result="yes"/>
    </match>
</match>

<match action="org.freedesktop.hal.power-management.lcd-panel">
  <match user="nemp">
    <return result="yes"/>
  </match>
</match>

Last edited by nemp (2009-05-22 14:12:19)

Offline

#9 2009-05-22 16:00:45

Mr.Cat
Member
Registered: 2008-09-27
Posts: 79

Re: kpowersave doesn't work properly [SOLVED]

Glad it helped.
Still, I'm quite confused with what is going on with policykit and not sure, whether hacking PolicyKit.conf is a proper way to fix the issues. I think, I'll start a new topic for that.

Offline

Board footer

Powered by FluxBB