Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Powerdevil not working well : policykit problem ?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
earendilion
Tux's lil' helper
Tux's lil' helper


Joined: 26 Nov 2007
Posts: 115
Location: Meudon (92), France

PostPosted: Sat Jun 13, 2009 5:19 pm    Post subject: Powerdevil not working well : policykit problem ? Reply with quote

Hi all,

since KDE 4.2.2 I've got a problem with Powerdevil... in fact, nothing works

Everything is ok in the kernel. I installed polyckit. I'm in plugdev group.

But :

- I cannot even suspend
- I cannot manage the screen brightness
- etc...

Did I forget something ? I don't know...

As anyone an idea ?

Thank you by advance
Back to top
View user's profile Send private message
vaxbrat
l33t
l33t


Joined: 05 Oct 2005
Posts: 731
Location: DC Burbs

PostPosted: Sun Jun 14, 2009 12:23 am    Post subject: I just redid my laptop Reply with quote

I went through the gentoo power management handbook and set up acpid, hibernate-script, laptop-mode-tools and cpufreqd. I didn't bother with the kde power management stuff other than for the monitor.
Back to top
View user's profile Send private message
Richard Morris
n00b
n00b


Joined: 18 Feb 2004
Posts: 9

PostPosted: Sun Jun 14, 2009 10:26 pm    Post subject: I've similar problems. Reply with quote

I've just installed a new laptop and I've got similar issues to the first poster with powerdevil and KDE4.2.4.

I've configured the kernel for allowing suspend to disk, suspend to ram, and associated acpi options however powerdevil doesn't detect any options enabled for power management and also the battery isn't shown as being present either.

I know I've probably missed something that is required between KDE and the kernel, but I can't find any documentation on how powerdevil works and what it's looking for and where.

Could anyone point me at the technical documentation for powerdevil as google has failed me?
Back to top
View user's profile Send private message
appofice
n00b
n00b


Joined: 13 Jun 2007
Posts: 54

PostPosted: Mon Jun 15, 2009 8:12 pm    Post subject: Reply with quote

I have the same problem but it appear after a update. I can suspend to ram or a X appear in the battery monitor
Back to top
View user's profile Send private message
evlich
Tux's lil' helper
Tux's lil' helper


Joined: 17 Oct 2007
Posts: 107

PostPosted: Tue Jun 16, 2009 4:10 pm    Post subject: Reply with quote

This probably won't solve everything, but you need to make sure that both hald and dbus are running in order for the power monitor to work.

Code:
/etc/init.d/hald start
/etc/init.d/dbus start


Hope this helps.
Back to top
View user's profile Send private message
Richard Morris
n00b
n00b


Joined: 18 Feb 2004
Posts: 9

PostPosted: Tue Jun 16, 2009 8:26 pm    Post subject: Reply with quote

I've got both hald and dbus running.

I tried logging in as root rather than as a user and was surprised to find that both suspend/hibernate and the battery monitor worked under the root user.

It's almost certainly a problem with permissions and user accounts. I just need to find out where now.
Back to top
View user's profile Send private message
evlich
Tux's lil' helper
Tux's lil' helper


Joined: 17 Oct 2007
Posts: 107

PostPosted: Tue Jun 16, 2009 9:15 pm    Post subject: Reply with quote

This is probably a shot in the dark, but what are the permissions for the files in /proc/acpi?
Back to top
View user's profile Send private message
Richard Morris
n00b
n00b


Joined: 18 Feb 2004
Posts: 9

PostPosted: Tue Jun 16, 2009 9:52 pm    Post subject: Reply with quote

It wasn't completely related to the file permissions on the /proc/acpi directory they are

Code:
ls -la /proc/acpi
total 0
dr-xr-xr-x  11 root root      0 Jun 16 22:27 .
dr-xr-xr-x 119 root root      0 Jun 16 22:27 ..
dr-xr-xr-x   3 root root      0 Jun 16 22:37 ac_adapter
dr-xr-xr-x   3 root root      0 Jun 16 22:37 battery
dr-xr-xr-x   5 root root      0 Jun 16 22:37 button
-r--------   1 root root      0 Jun 16 22:37 dsdt
dr-xr-xr-x   3 root root      0 Jun 16 22:37 embedded_controller
-r--r-----   1 root haldaemon 0 Jun 16 22:27 event
-r--------   1 root root      0 Jun 16 22:37 fadt
dr-xr-xr-x   3 root root      0 Jun 16 22:37 fan
-r--r--r--   1 root root      0 Jun 16 22:37 info
dr-xr-xr-x   3 root root      0 Jun 16 22:37 power_resource
dr-xr-xr-x   4 root root      0 Jun 16 22:37 processor
-rw-r--r--   1 root root      0 Jun 16 22:37 sleep
dr-xr-xr-x   3 root root      0 Jun 16 22:37 thermal_zone
dr-xr-xr-x   3 root root      0 Jun 16 22:37 video
-rw-r--r--   1 root root      0 Jun 16 22:37 wakeup


I've recompiled the computer after setting the USE flags for policykit and consolekit. The battery now appears as do options to suspend and hibernate, however whilst the battery monitor shows the state of the battery, suspend and hibernate don't work.

I think I need to find some more stuff to read about how permissions propagate between hal, dbus, policykit, consolekit and powerdevil. The problem that I'm finding at the moment is that it does not appear to be too well documented anywhere though.
Back to top
View user's profile Send private message
appofice
n00b
n00b


Joined: 13 Jun 2007
Posts: 54

PostPosted: Sun Jun 21, 2009 5:04 pm    Post subject: Reply with quote

I rebuilld all my system. Firt i reinstall hal with policykit and consolekit use flags and after i rebuild my system with emerge -uDNev world now i working fine
Back to top
View user's profile Send private message
kanutron
n00b
n00b


Joined: 31 Aug 2004
Posts: 4
Location: Barcelona

PostPosted: Mon Jun 22, 2009 1:31 pm    Post subject: Sovled Reply with quote

Hi, I was in the same trouble and putting "consolekit" + "policykit" uses in make.conf and then do a "emerge -uDNav world" it fixed the problem. The significant rebuilded package was "hald".

Now I can monitor my battery and suspend my laptop.

Thanks.

PN: This tread can be tagged as SOLVED. Isn't?
_________________
kanutron

"las opiniones son como los culos,
toto el mundo tiene uno"
- Harry Callahan -
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2066
Location: San Jose, CA

PostPosted: Tue Jun 23, 2009 6:29 am    Post subject: Reply with quote

Works for me too! Thanks.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
Snake
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jul 2005
Posts: 146

PostPosted: Tue Jun 23, 2009 6:13 pm    Post subject: Reply with quote

Can you adjust screen brightness? I can see battery status and also I can set screen brightness with fn+up/down keys, but setting brightness with powerdevil doesn't work. Also dimming in power management doesn't work, on the other hand cpu clock scaling is ok. Actually nothing regarding screen in powerdevil profiles doesn't work, neither standby/suspend after x time.
What is pretty weird to me is that options which I set in Display -> Power control work, but settings in profiles have no effect.
Any idea?
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2066
Location: San Jose, CA

PostPosted: Wed Jun 24, 2009 4:08 am    Post subject: Reply with quote

Snake wrote:
Can you adjust screen brightness? I can see battery status and also I can set screen brightness with fn+up/down keys, but setting brightness with powerdevil doesn't work. Also dimming in power management doesn't work, on the other hand cpu clock scaling is ok. Actually nothing regarding screen in powerdevil profiles doesn't work, neither standby/suspend after x time.
What is pretty weird to me is that options which I set in Display -> Power control work, but settings in profiles have no effect.
Any idea?


My LCD brightness works. You have to have it enabled in your kernel. Have you set these?

Code:
CONFIG_BACKLIGHT_LCD_SUPPORT=y
CONFIG_LCD_CLASS_DEVICE=y
ACPI_VIDEO [=y]


There might be some more dependencies, you'll have to check it out.

BTW: FN brightness keys are a bios function.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
Snake
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jul 2005
Posts: 146

PostPosted: Wed Jun 24, 2009 11:12 pm    Post subject: Reply with quote

I've enabled all the options in kernel, but it didn't change anything.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum