You are not logged in.
After studying the wiki and searching the forums I'm breaking down and asking for help. I'm new to Linux and even newer to Arch but I have managed to get most everything running on my laptop ok, however for some reason gnome-power-manager doesn't let me select anything other than "do nothing." On ac or battery, closing lid or battery running critically low, no option but "do nothing" (and sometimes blank screen) is presented. when pressing the power button my only option is "ask me," and when I do press the power button no dialog box comes up, but gnome-power-manager mysteriously terminates. I have pm-utils installed and I added myself to the "power" group, but the problem seems a bit bigger than that anyways. I'm pretty much lost as to what could be causing this, so any direction would be greatly appreciated.
Offline
Seeing as I use openbox and I don't really care if it's the gnome applet that controls my power, I decided to go straight to /etc/acpi/handler.sh. Even though I read on the forums that adding editing it thus:
button/lid)
#echo "LID switched!">/dev/tty5
/usr/bin/pm-hibernate
;;
should cause my laptop to hibernate when the lid closes, it doesn't (and yes, pm-utils is indeed installed). I also realized that even without gnome-power-manager running, and even though it doesnt appear to be configured in /etc/acpi/handler.sh, my screen dims when ac is unplugged, and turns off when the lid is closed. So what then is controlling these events?
Offline
Have you added yourself to the "power" group?
Offline
Yes I have my self in the power group, I had all these options prior to the upgrade (2.24)
Maybe this is a different issue than the OP? OP what version of gnome-power-manger are you running?
Offline
I'm running version 2.24.1, but I just installed Arch a week or so ago and I can't comment on how it was working before. For what it's worth, these functions were working in Ubuntu, just to rule out any strange linux-incompatibility issues (whether they would exist or not I wouldn't know). Nice to know I'm not having unique issues, at any rate.
Offline
same problem here. any ideas?
% whereis whatis whence which whoami whois who
Offline
Same here, since gnome 2.24 - afaik we have to add the permission under policykit "gnome/system/preferences/authorizations", but the gran-button is always grayed out and it doesn't ask me for the root-password.
Why is Gnome not using simple POSIX-Standard? We have Groups for adding permissions since 30 years and it is simple&efficent&sophisticated.
Offline
I am having the same issue as hoschi, I why is it impossible to hit the grant button?
Offline
Well, I'm going to give this tread a big old bump because I am trying to figure this out too...
Adding:
<match action="org.freedesktop.hal.power-management.suspend">
<return result="yes"/>
</match>
<match action="org.freedesktop.hal.power-management.hibernate">
<return result="yes"/>
</match>
to /etc/PolicyKit/PolicyKit.conf gets the options back in the g-p-m menus and that gets suspend to work if I click on the sys tray icon and click suspend.
Does not work when I shut my lid on my laptop yet but works fine if I set it to suspend when I press the power button... Must be something else I need to add.
Edit: Even stranger. g-p-m detects the lid close and open. It is just not acting on it.
Edit2: I'm an idiot... there are options on the "On AC Power" and "On Battery Power" tabs for what to do when the lid is closed...
Offline
I am having a similar problem.
The options are there, but they don't work.
Although I can suspend/hibernate when I click the gnome-power-manager icon and choose hibernate/suspend, when I close the lid it does not suspend/hibernate.
Anyone with the same issue? This was working a few weeks ago!
SM
Offline
PolicyKit does seem to be the problem but I am not clear. Prior to today (11/30) I had policykit version 0.9-5 and g-p-m gave me options to suspend/hibernate (I use pm-utils) and all worked well. Today, many updates/upgrades occured: kernel, various gnome packages, etc. This included taking policykit to 0.9-7 and gnome-power-manager to 2.24.2-1. Suspend/hibernate choices disappeared from g-p-m (but still worked via command line). I tried modifing policykit.conf as in Allan's post to no avail. The only thing that worked was downgrading policykit back to 0.9-5.
Any other experiences before I file a bug???
Last edited by merlin (2008-12-01 02:06:56)
Offline
Well, here is the differences in the PKGBUILDs:
http://repos.archlinux.org/viewvc.cgi/p … 7&r2=14740
This bit has gone...
install -m644 ${srcdir}/org.freedesktop.hal.power-management.policy ${pkgdir}/usr/share/PolicyKit/policy/
hal in [testing] now provides that file.
Offline
Well, here is the differences in the PKGBUILDs:
http://repos.archlinux.org/viewvc.cgi/p … 7&r2=14740This bit has gone...
install -m644 ${srcdir}/org.freedesktop.hal.power-management.policy ${pkgdir}/usr/share/PolicyKit/policy/hal in [testing] now provides that file.
Why in the world was that removed in the first place? My only way of suspending now is to do it with pm-suspend as root from a terminal or the console. This is frustrating...
EDIT: enh, nevermind. Didn't catch that last bit of yours. So the question now is, why was the new version of PolicyKit allowed to go out without hal (now with the needed file) being ready?
Last edited by rcorder (2008-12-01 03:08:08)
Offline
allan's tip doesn't work for me, in fact, i can't even reboot\turn off the pc in a "graphic way", i've to "sudo reboot" or "sudo halt" to do so. suspend\hibernation buttons don't appear in the "stop the system" window.
Last edited by Berseker (2008-12-01 11:33:51)
Offline
I have same issue. The suspend button disappears for my stop the system window.
Edit:
The allan's tip works for me.
Last edited by alessandro_ufms (2008-12-01 17:29:13)
Offline
I have same issue. The suspend button disappears for my stop the system window.
The same here, but the hibernate button is missing too.
EDIT:
Allan's workaround did the trick for me. For anyone who may have the same doubt I did, the xml provided by Allan goes inside the config tag.
Last edited by alexmatos (2008-12-01 12:50:13)
Offline
alessandro_ufms wrote:I have same issue. The suspend button disappears for my stop the system window.
The same here, but the hibernate button is missing too.
EDIT:
Allan's workaround did the trick for me. For anyone who may have the same doubt I did, the xml provided by Allan goes inside the config tag.
thank you.
it was my fault, I simply pasted the xml settings just under that section. Now everything works.
Offline
Now I feel like an idiot. I knew that the code Allan suggested went before the </config> but put it after. It does indeed fix things after upgrading policykit to 0.9-7. So where is the bug here: is it in policykit? or in hal?
Offline
Now I feel like an idiot. I knew that the code Allan suggested went before the </config> but put it after. It does indeed fix things after upgrading policykit to 0.9-7. So where is the bug here: is it in policykit? or in hal?
Neither, technically. It's just that the needed file has moved from one package to the another. The package that it was removed from (policykit, in this case) was released before the package it moved to (hal) was. Ideally, this should have been caught and the release of policykit held-up until hal 0.9-7 is ready.
Offline
The lines from Allan work fine for me. But I didn't find the policy in any of those packages, or I just didn't look right.
Offline
Allan's XML works for me
Consider adding also this code (for example to shut down laptop when battery is critically low):
<match action="org.freedesktop.hal.power-management.shutdown">
<return result="yes"/>
</match>
Offline
How about coping the missing file ?
Copy paste following to a file called /usr/share/PolicyKit/policy/org.freedesktop.hal.power-management.policy
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
"http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
<policyconfig>
<action id="org.freedesktop.hal.power-management.suspend">
<description>Suspend the system</description>
<message>System policy prevents suspending the system</message>
<defaults>
<allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
</action>
<action id="org.freedesktop.hal.power-management.hibernate">
<description>Hibernate the system</description>
<message>System policy prevents hibernating the system</message>
<defaults>
<allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
</action>
</policyconfig>
Offline
Thanks kesara10. your solution worked in my case. Why such polices are not implemented by default, just a clarification :-)
Offline