
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.
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?
Thank you,
--
*Eyal Erez <**oneself@gmail.com*

Dear Eyal,
On Mon, 2 Jan 2012 11:03:44 -0500,Eyal Erez
[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 http://ligarto.org/rdiaz

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*

On Tue, 3 Jan 2012 11:50:17 -0500,Eyal Erez
[1
] 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.
I guess same thing. I use one of the pm-* (pm-suspend, pm-hybrid, etc) or, else, s2* directly (s2disk, s2ram, s2both). Best, R.
Thank you for your help.
On Tue, Jan 3, 2012 at 10:32, Ramon Diaz-Uriarte
wrote:
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*
*>*
There are 10 types of people, those who know binary and those who don't. [2
]
-- 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 http://ligarto.org/rdiaz

Hi,
I managed to get the lid to work by updating /etc/acpi/events/lidbtn,
and changing:
action=/etc/acpi/lid.sh
to
action=/etc/acpi/sleep.sh
This works fine when I close the lid. I would also like to have the
laptop suspend if there is no activity for some time (let's say 10
minutes).
Is there any way to use an acpi even, or something else to do that?
Thank you,
On Tue, Jan 3, 2012 at 12:10, Ramon Diaz-Uriarte
On Tue, 3 Jan 2012 11:50:17 -0500,Eyal Erez
wrote: [1
] 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.
I guess same thing. I use one of the pm-* (pm-suspend, pm-hybrid, etc) or, else, s2* directly (s2disk, s2ram, s2both).
Best,
R.
Thank you for your help.
On Tue, Jan 3, 2012 at 10:32, Ramon Diaz-Uriarte
wrote: 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*
*>* There are 10 types of people, those who know binary and those who don't. [2
] -- 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

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On Mon, Jan 23, 2012 at 16:30:29 GMT, Eyal Erez wrote:
This works fine when I close the lid. I would also like to have the laptop suspend if there is no activity for some time (let's say 10 minutes).
Is there any way to use an acpi even, or something else to do that?
You could use a screen locker (I use xautolock) to call out to a shell script to sleep the machine. - --Ben -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBCgAGBQJPHg5vAAoJEKaxavVX4C1XhmoP/RmOeBTrZlJ+RDeZ2pfa0NYX 2U+YA7oT6hgxldC3iNykhJwW5wS/eubdbDO9UV+tWfIEFM6uLnKObmAhoET3x3DS 4fpI8oBDzhlvgi8Fi8o92xbczvwzI1wdP/PceFqyOryCLyo/3GV3nOVppD/KQxzE 28vAhjrjjujvkFhJ4QA6b5cOQ7AEGi6Bp7S3Inxiu6iHnrcINvYSzLYH8FeopHCD hr5+NMy0KgcEWFQy6QxItNRz3IaxENqMPfk5MWVw9IjvUQ1WAQLV/jiTsxxCFBqt ruXfwgXdwPqMbOWbTS4RZEh1hWzUAZCzb34eDEHBp3HNFz+lXEwwoflTUqTLVdMx 8nCvLzLN7hid5TwCrb2YEdOsGKGtr2O1Wli6fN8U4KxLIF78e0ABmtLw3sG91R4R k1M2mvjkaAH5xOpxocXjVRhlyiR+bKYuQJ6CRZWwHt9inX4s7OkIDfSUnvl4I9X0 PMxgKgF/W+/ZwhGzE57wVDfCt4IJddnMWs81KhZJDEGRf2hRlDPKyMn7Dv290QHS zpjZx2cNKUMLUvkrC854UOfcQuhePOuiG/T9DQf+vW9QmV40NpNhA3KHMW+IaBjt uZKF6RvxwR5AqVORZkveAV5CWyH3faqltItpwFgg6Lplee5dfqHKpf7mT1reSRm8 yN605raX4JzVAabB3cRA =ASuw -----END PGP SIGNATURE-----

Works great. Thank you.
I added the following to my .xinitrc:
## Suspend after 10 minutes of idleness
xautolock -time 10 -locker "pmi action suspend" &
On Mon, Jan 23, 2012 at 20:49, Ben Boeckel
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512
On Mon, Jan 23, 2012 at 16:30:29 GMT, Eyal Erez wrote:
This works fine when I close the lid. I would also like to have the laptop suspend if there is no activity for some time (let's say 10 minutes).
Is there any way to use an acpi even, or something else to do that?
You could use a screen locker (I use xautolock) to call out to a shell script to sleep the machine.
- --Ben
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux)
iQIcBAEBCgAGBQJPHg5vAAoJEKaxavVX4C1XhmoP/RmOeBTrZlJ+RDeZ2pfa0NYX 2U+YA7oT6hgxldC3iNykhJwW5wS/eubdbDO9UV+tWfIEFM6uLnKObmAhoET3x3DS 4fpI8oBDzhlvgi8Fi8o92xbczvwzI1wdP/PceFqyOryCLyo/3GV3nOVppD/KQxzE 28vAhjrjjujvkFhJ4QA6b5cOQ7AEGi6Bp7S3Inxiu6iHnrcINvYSzLYH8FeopHCD hr5+NMy0KgcEWFQy6QxItNRz3IaxENqMPfk5MWVw9IjvUQ1WAQLV/jiTsxxCFBqt ruXfwgXdwPqMbOWbTS4RZEh1hWzUAZCzb34eDEHBp3HNFz+lXEwwoflTUqTLVdMx 8nCvLzLN7hid5TwCrb2YEdOsGKGtr2O1Wli6fN8U4KxLIF78e0ABmtLw3sG91R4R k1M2mvjkaAH5xOpxocXjVRhlyiR+bKYuQJ6CRZWwHt9inX4s7OkIDfSUnvl4I9X0 PMxgKgF/W+/ZwhGzE57wVDfCt4IJddnMWs81KhZJDEGRf2hRlDPKyMn7Dv290QHS zpjZx2cNKUMLUvkrC854UOfcQuhePOuiG/T9DQf+vW9QmV40NpNhA3KHMW+IaBjt uZKF6RvxwR5AqVORZkveAV5CWyH3faqltItpwFgg6Lplee5dfqHKpf7mT1reSRm8 yN605raX4JzVAabB3cRA =ASuw -----END PGP SIGNATURE-----
_______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad
--
Eyal Erez
participants (3)
-
Ben Boeckel
-
Eyal Erez
-
Ramon Diaz-Uriarte