
Hi,
Thank you very much for your reply. It seems that the latest version of
Gnome (v3) doesn't including
gnome-power-manager as a standalone service. I guess they folded into
something else.
I looked up some instructions on how to set up acpi (
http://www.thinkwiki.org/wiki/How_to_configure_acpid).
I ended up modifying /etc/acpi/events/lidbtn. I changed the "action" from
/etc/acpi/lid.sh to /etc/acpi/sleep.sh.
That seemed to have solved the issue.
Now, I need to figure out how to hibernate.
Thank you for your help.
On Tue, Jan 3, 2012 at 10:32, Ramon Diaz-Uriarte
Dear Eyal,
On Mon, 2 Jan 2012 11:03:44 -0500,Eyal Erez
wrote: [1
] [1.1 ] Hi, I'm using xmonad 0.10 with Ubuntu 11.10. I've switched to using SLiM and starting xmonad from my .xsession file.
The problem is that I can't get power management to work. Meaning, that when I close my laptop lid, I would like the laptop to suspend, but not if it is plugged in. I would also like to have a command (or key) to suspend and hibernate my laptop.
I am no expert in this, but I understand that if acpi is working properly, the daemon is running, etc, when you close the lid, for instance, the appropriate behavior should be triggered. There are scripts under /etc/acpi which might already do what you want (though I always end up making changes to lid.sh).
Commands/keys: there might be specific keys in your laptop already, and these might be working. For instance, they work just fine in my Asus eeepc and my HP ProBook. Again, you can modify the appropriate scripts under /etc/acpi to suit your needs.
Of course, if that does not work for you, you can always bind a specific key combination to run a given script.
In previous versions I would use the gnome-power-manager. However, that has seemed to disappear from the latest version of Ubuntu. Is there some way to get this back or some other power manager I need to use?
But, then, is the problem that you used to use gnome-power-manager, and that is not working anymore? I have a vague recollection of having tried to use that unsuccessfully a few years ago; using the support provided by acpi et al. (for instance, packages acpi, acpi-support, acpi-fakekey in Debian) directly seemed a lot simpler and more reliable.
Best,
R.
Thank you,
-- *Eyal Erez <**oneself@gmail.com*
*>* There are 10 types of people, those who know binary and those who don't. [1.2
] [2
] _______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad -- Ramon Diaz-Uriarte Department of Biochemistry, Lab B-25. Facultad de Medicina (UAM) Arzobispo Morcillo, 4 28029 Madrid Spain Phone: +34-91-497-2412
Email: rdiaz02@gmail.com ramon.diaz@iib.uam.es
--
*Eyal Erez <**oneself@gmail.com*