You are not logged in.

#1 2009-05-11 11:47:50

Painless
Member
Registered: 2006-02-06
Posts: 233

gnome-power-manager woes

Hi all.  I've been having a few problems with gnome-power-manager on my Dell Vostro since upgrading to Gnome 2.26.  I was just wondering if anyone else has been experiencing the same issues:

- When unplugging my laptop, I no longer get any notifications.  Gconf is correctly configured.
- When plugging my laptop into the mains, I (usually) get a notification which says words to the effect of: you have unplugged your laptop and it is now discharging.  The icon is is correct.
- Closing the lid won't suspend the laptop, unless the laptop has been suspended at least once since coming up using the suspend options from the g-p-m menu or the system->shutdown menu.

I've tried a new gconf setup (removing ~/.gconf* and ~/.gnome*).

Any ideas?

Offline

#2 2009-05-13 05:01:25

kesara10
Member
Registered: 2008-06-11
Posts: 13

Re: gnome-power-manager woes

This is probably a permissions/policy issue. Poke around /usr/share/hal/fdi/information/10freedesktop/ directory and  /etc/hal/fdi/policy/ to see whether you have appropriate permissions to do power management.

Offline

#3 2009-05-13 05:02:28

kesara10
Member
Registered: 2008-06-11
Posts: 13

Re: gnome-power-manager woes

Try reinstalling "hal" package also I forget what those settings should be exactly

Offline

#4 2009-05-13 14:01:19

Painless
Member
Registered: 2006-02-06
Posts: 233

Re: gnome-power-manager woes

I've tried re-installing hal, but no luck I'm afraid.

It's not a show-stopper, so I'll keep trying different things when I get the opportunity.

Thanks for the feedback.

Offline

#5 2009-05-18 20:33:37

Painless
Member
Registered: 2006-02-06
Posts: 233

Re: gnome-power-manager woes

Update: Suspend now works first time when closing the laptop lid.  There have been a couple of gconf updates, maybe they're responsible?

The other problems remain.

Offline

#6 2009-06-01 07:06:11

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

Re: gnome-power-manager woes

I'm not knocking gnome-power-manager but I always had problems with it: some setting just didn't work, updates would introduce new problems, or create incompatibilities.  Take a look at the gnome-power-manager bugs page and look at all the bugs.  The guy that develops it is earnest though but I'm thinking eventually it's going to have to be re written.


Setting Up a Scripting Environment | Proud donor to wikipedia - link

Offline

#7 2009-06-02 02:49:44

CursedMonkey
Member
Registered: 2008-08-30
Posts: 45

Re: gnome-power-manager woes

I have the exact same problems described by the OP.

Offline

#8 2009-06-02 21:17:38

Greenek
Member
Registered: 2008-10-09
Posts: 12

Re: gnome-power-manager woes

Yep, the same sad

Offline

#9 2009-06-06 13:05:06

Hohoho
Member
Registered: 2007-06-23
Posts: 222

Re: gnome-power-manager woes

So has this been resolved, because this is a real pain in the buttocks?

Offline

#10 2009-06-09 15:03:08

gofree
Member
From: Slovakia
Registered: 2008-07-26
Posts: 51

Re: gnome-power-manager woes

not sure about it because it works well in ubuntu 9.04 and fedora 11 on my laptop HP 6720s, crappy on arch sad this is the second thing that is really anoying after the intel graphic driver....maybe somebody should look in to it

Offline

#11 2009-06-09 16:21:04

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: gnome-power-manager woes

gofree wrote:

not sure about it because it works well in ubuntu 9.04 and fedora 11 on my laptop HP 6720s, crappy on arch sad this is the second thing that is really anoying after the intel graphic driver....maybe somebody should look in to it

is pretty clear why on those is working. if you have seen on ubuntu gnom-power-manager is on 2.24 version and on fedora 11 gmp 2.26.1 is patched. http://cvs.fedoraproject.org/viewvc/rpm … iew=markup

i've seen that on the new version 2.26.2 they removed the patches becase are commited upstream. on arch updating to 2.26.2 will solve your problem


Give what you have. To someone, it may be better than you dare to think.

Offline

#12 2009-06-09 19:42:00

gofree
Member
From: Slovakia
Registered: 2008-07-26
Posts: 51

Re: gnome-power-manager woes

Thank you wonder, i've built gpm 2.26.2 ( modified pkgbuild from 2.26.1 ) and everything works smile happy man

If you cross Slovakia sometimes let me know, I owe you a beer.

Offline

#13 2009-06-12 15:08:15

Painless
Member
Registered: 2006-02-06
Posts: 233

Re: gnome-power-manager woes

I've also built and installed gpm 2.26.2.  Unfortunately it doesn't seem to be much better.  I have closing the laptop lid triggered to suspend the system, but it only works randomly now.

Offline

#14 2009-06-12 15:20:19

gofree
Member
From: Slovakia
Registered: 2008-07-26
Posts: 51

Re: gnome-power-manager woes

For me it worked only after first reboot, after that the same as 2.26.1. I've compiled 2.24.4, working like a charm, together with new kernel 2.6.30/testing and intel drivers 2.8.0 rc1/AUR I'm the happiest man right now. Two more thing to do - improve battery life and get SPSS working.

Sadly I did lost some time for studying on my exam big_smile sad

Last edited by gofree (2009-06-12 15:21:32)

Offline

#15 2009-06-14 12:39:00

Painless
Member
Registered: 2006-02-06
Posts: 233

Re: gnome-power-manager woes

The latest gconf (2.26.2-2), gnome-power-manager (2.26.2-1) and devicekit-power (008-1) packages do not appear to have helped.  In fact, when I unplugged my laptop last night, g-p-m said I was still plugged in after 20 minutes.  sad

Offline

#16 2009-06-15 20:09:56

Painless
Member
Registered: 2006-02-06
Posts: 233

Re: gnome-power-manager woes

It's been a bad day.  Random screen blackouts, one spontaneous suspend.  g-p-m still tells me I have unplugged the laptop when the power is connected.

I've rebuilt and installed gnome-power-manager 2.24.4.  Some sanity has been restored.

Offline

#17 2009-06-25 18:05:29

Void_Walker
Member
Registered: 2009-06-17
Posts: 53

Re: gnome-power-manager woes

Another problem: I have a sony vaio notebook and almost everything works, except of this:
-I have set my gpm following:
                                              -if the AC is plugged in and i close the laptop lid the screen goes blank (works fine)
                                              -if  the AC isn't plugged in and i cose the lid, it supeds the laptop (works fine)

but now, if i unplug the laptop from AC, after i closed (and opened) the lid at least once, while it was on AC, it suspeds. My question is: Has anyone the same problem as i have? Or, can anyone help me?

EDIT

http://library.gnome.org/users/gnome-po … e-confused

it seems to be related with ACPI and HAL problems.... this is the worst thig ever >_< i hate when the problem is ACPI/HAL related cause i never can solve em... lets see sad

Last edited by Void_Walker (2009-06-25 18:21:14)

Offline

#18 2009-06-25 18:43:17

Nepherte
Member
From: Singapore
Registered: 2008-09-09
Posts: 427

Re: gnome-power-manager woes

Void_Walker wrote:

Another problem: I have a sony vaio notebook and almost everything works, except of this:
-I have set my gpm following:
                                              -if the AC is plugged in and i close the laptop lid the screen goes blank (works fine)
                                              -if  the AC isn't plugged in and i cose the lid, it supeds the laptop (works fine)

That's already more than I can say from my sony vaio. Mine always blanks the screen, no matter what action I put in gnome-power-manager. What vaio do you have?

Offline

#19 2009-06-25 19:04:16

Void_Walker
Member
Registered: 2009-06-17
Posts: 53

Re: gnome-power-manager woes

I have FE21B...

It seems that my ACPI work just fine cause it correctly detects if the lid is open or closed.... so it will be probably HAL related hmm

Even downgrade of hal is impossible because of the dependencies.... damn.

Last edited by Void_Walker (2009-06-25 19:23:59)

Offline

#20 2009-06-26 13:53:09

gofree
Member
From: Slovakia
Registered: 2008-07-26
Posts: 51

Re: gnome-power-manager woes

acpi/hal...it was so annoying that i had to switch to xp at the moment sad

Offline

#21 2009-06-26 17:41:35

Void_Walker
Member
Registered: 2009-06-17
Posts: 53

Re: gnome-power-manager woes

Yeah, but that is something i don't want to do. I've been working on this system to make it work for a while now (like 4 months) and now this appeard. I'll try to recompile the hal/gnome-power-manager package and see if i can make it work (because it looks like g-p-m doesn't use HAL anymore (since 2.26.*)) hmm

But, after downgrading g-p-m to 2.24.* i learned that it does not solve this problem.... so this really seems to be HAL related sad(

Last edited by Void_Walker (2009-06-26 18:41:32)

Offline

#22 2009-06-27 10:51:27

Void_Walker
Member
Registered: 2009-06-17
Posts: 53

Re: gnome-power-manager woes

I would like to know if there is anyone who has the same problem as me.... or if it's just me.

Offline

#23 2009-06-28 21:05:10

Void_Walker
Member
Registered: 2009-06-17
Posts: 53

Re: gnome-power-manager woes

ACPI is seeing if the lid is closed or opened.... HAL does not, (if i use lshal -m it works 1 time but it does not recognize if open or close it again) where coud the problem be? (running on acpi 1.4 and hal 0.5.12) plz help, this sh*t is killing me sad

Offline

#24 2009-06-29 21:20:45

Void_Walker
Member
Registered: 2009-06-17
Posts: 53

Re: gnome-power-manager woes

Here is my semi solution:

lid_open.sh

#!/bin/sh

if cat < /proc/acpi/button/lid/LID0/state | grep -q closed

then

        sudo hal-set-property --udi /org/freedesktop/Hal/devices/computer_logicaldev_input_3 --key button.state.value --bool false
                #lid has been opened
else


        sudo hal-set-property --udi /org/freedesktop/Hal/devices/computer_logicaldev_input_3 --key button.state.value --bool true
                #lid has been closed

fi

lid_closed.sh

#!/bin/sh
sleep 3

if cat < /proc/acpi/button/lid/LID0/state | grep -q open

then

        sudo hal-set-property --udi /org/freedesktop/Hal/devices/computer_logicaldev_input_3 --key button.state.value --bool false
                #lid has been opened
else


        sudo hal-set-property --udi /org/freedesktop/Hal/devices/computer_logicaldev_input_3 --key button.state.value --bool true
                #lid has been closed

fi

Does the job... but still
I would be very thankful if anyone would be able to post a better solution, or, at least, how to make this work automaticaly.

Last edited by Void_Walker (2009-06-29 23:27:36)

Offline

#25 2009-06-30 02:24:36

DevoidOfWindows
Member
Registered: 2009-05-24
Posts: 133

Re: gnome-power-manager woes

Maybe you can replace GNOME's power manager with Xfce's power manager.  It is much better. IMO, anyway, and even lets you control the speed of your CPU on actions (the GNOME developers used to have this, too, hidden away in GConf settings, then decided it was too useful of a feature and removed it).

Offline

Board footer

Powered by FluxBB