sleep sends my laptop into a suspend/resume loop
Bug #35108 reported by
Bas Zoetekouw
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
acpi-support (Ubuntu) |
Fix Released
|
Medium
|
Paul Sladen |
Bug Description
The default sleep.sh/resume.sh scripts put my laptop into a sleep/resume loop as soon as I suspend for the first time. After that, it'll resume nicely, but go into suspend mode right away, with no time for me to kill acpid or so.
It seems it is a race issue with the 5 seconds timeout before /var/lock/acpisleep is removed. If I increase the timeout to 10s, it works fine, but I guess that doesn't fix the real problem: acpid processes some phantom powerbutton event as soon as the resume.sh script exists. Isn't there some way perhaps to clear the acpi event queue during suspend/resume script processing? Maybe acpid itself should be stopped/restarted by the scripts?
Changed in acpid: | |
assignee: | nobody → dsilvers |
To post a comment you must log in.
first you should tell us what is your laptop...