Use pm-utils when suspending/hibernating
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
acpi-support (Ubuntu) |
Fix Released
|
Medium
|
Steve Langasek | ||
anacron (Ubuntu) |
Fix Released
|
Low
|
Martin Pitt | ||
wicd (Ubuntu) |
Fix Released
|
Undecided
|
Colin Watson |
Bug Description
Binary package hint: acpi-support
I ran into an issue with my HP Mini 1000 (which uses a customized version of Hardy) where if I was at the GDM screen and pressed Fn+F1 (the suspend button), the computer would suspend, but the screen would stay black on resume. This seemed like a classic video quirk issue.
Looking into it (not being very familiar with acpi-support), I discovered that acpi-support tries to do some very manual 'write to /sys/power/state' logic all by itself. It also has its own hook system in /etc/acpi/suspend.d (which surely isn't news to you, dear reader). Of course, it only uses this if something better isn't already running (g-p-m or kpowersave), like at the GDM screen where I was.
I thought, "Don't we have HAL for this, with its own, larger set of quirks?". And indeed, replacing sleep.sh's logic with a dbus call to HAL fixed the bug for me.
So I thought that it would make sense for acpi-support to prefer a call to HAL (or pm-utils) over its own hacked-up system. I believe HAL and friends are more actively maintaining quirks? HAL is certainly the path more frequently used since the user commonly goes through g-p-m. Seems odd to have two separate paths with their own quirks.
Is it true that in an ideal world, acpi-support would just depend on dbus/HAL or pm-utils and not have its own quirks? Or do they serve a valuable purpose? I know there's a Karmic blueprint that might talk about some of these issues (https:/
But this bug is about the more conservative approach of just preferring HAL/pm-utils for suspend and hibernate. I'm attaching a debdiff that does this (and falls back to the current code if neither dbus/HAL or pm-utils is available).
summary: |
- Prefer HAL when suspending/hibernating ourselves + Use pm-utils when suspending/hibernating |
Changed in wicd (Ubuntu): | |
assignee: | nobody → Colin Watson (cjwatson) |
Here's a debdiff and a bzr branch: lp:~mterry/acpi-support/prefer-hal-366119