FS#27411 - [acpid] sleep button suspends twice in a row
Attached to Project:
Community Packages
Opened by Clemens Buchacher (drizzd) - Friday, 02 December 2011, 19:04 GMT
Last edited by Sébastien Luttringer (seblu) - Tuesday, 13 March 2012, 20:51 GMT
Opened by Clemens Buchacher (drizzd) - Friday, 02 December 2011, 19:04 GMT
Last edited by Sébastien Luttringer (seblu) - Tuesday, 13 March 2012, 20:51 GMT
|
Details
Description:
I recently installed acpid, and now whenever I suspend using the sleep button, as soon as the machine resumes, it immediately goes back to sleep again, once. Seems to me that the sleep button event is handled twice now, by both acpid and something else. Easily fixed by uninstalling acpid. But should acpid maybe conflict with pm-utils or something? Additional info: * package version(s) $ pacman -Q pm-utils acpid pm-utils 1.4.1-3 acpid 2.0.12-1 * config and/or log files etc. Steps to reproduce: Install and start acpid, press sleep button, resume machine, wait for 1 second until the machine suspends again. |
This task depends upon
Closed by Sébastien Luttringer (seblu)
Tuesday, 13 March 2012, 20:51 GMT
Reason for closing: Not a bug
Tuesday, 13 March 2012, 20:51 GMT
Reason for closing: Not a bug
As far as I am concerned, we can close this as "don't care" or something. Unless someone can be convinced to remove acpid entirely, since it does not seem to do anything besides break stuff that would be working without it.
/var/lock/acpid.
It's needed, for example for suspend: when the power button pressed, the file is created, and the machine goes to S3. On return the file must be deleted.
If there were no file created, the acpid would execute the script on the wake up too, because the power button sends the event on the wake up too.
>As far as I am concerned, we can close this as "don't care" or something. Unless someone can be convinced to remove acpid entirely, since it does not seem to do anything besides break stuff that would be working without it.
I find acpid very useful.
If I understand correctly suspend is runned twice. First by acpid (its default config do that in handler.sh) and a second time by something else.
What is this something else? gnome-power-manager?
You probably have setup 2 softwares which do the same thing on your host with their default config. We cannot conflict by example gnome-power-manager and acpid, because we can use the both, if they are well configured.
I see how this is not easy to solve within Arch Linux. But if acpid is supposed to be installed manually anyways, maybe the default should be changed to not trigger suspend.
I don't know if its to acpid to change its default behaviour or to gnome-power-manager to do it.
anyway, acpid is not started automatically and you must check if configuration fit to your needs before starting daemon or add it to rc.conf.