pm-utils doesn't detect uswsusp in hardy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pm-utils (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Hardy |
Won't Fix
|
Undecided
|
Chow Loong Jin | ||
Intrepid |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: pm-utils
pm-utils does not detect the presence of uswsusp (it looks for uswsusp binaries (s2disk, s2ram, s2both) in /usr/sbin instead of /sbin), resulting in Suspend and Hibernate using pm-utils's default method. For some users (those whose systems cannot suspend/hibernate without uswsusp), this means that Suspend/Hibernate is completely broken for them. For other users, uswsusp just isn't used, which leads to a longer hibernate/resume time.
In the development branch, pm-utils had been upgraded to 1.1.2.4-1ubuntu1, i.e. new release. The relevant patches that had errors with them, i.e. 10-uswsusp-
A debdiff fixing the patches mentioned above, and the corresponding build log has been attached, see comments 2 and 4.
TEST CASE: Install uswsusp, then hibernate the system. Upon resuming, run the command "dmesg | grep swsusp". That should tell whether or not uswsusp was used when hibernating, i.e. no output means uswsusp wasn't used.
Regression potential: since the pm-utils bug prevented uswsusp from receiving widespread testing, it's possible that bugs in uswsusp will cause suspend failures now for users who have it installed where no such failures occurred before.
Current workaround:
- Replace all instances of /usr/sbin/
sudo find /usr/lib/pm-utils/ -type f -exec sed -R -i -e 's|/usr/
Changed in pm-utils: | |
status: | New → Confirmed |
Changed in pm-utils: | |
assignee: | nobody → ubuntu-sru |
assignee: | ubuntu-sru → hyperair |
status: | New → Confirmed |
description: | updated |
description: | updated |
The above workaround worked, and I've created a debdiff for a new package of pm-utils which will fix this issue (sets the default S2DISK_BIN to /sbin/s2disk. I'd appreciate it if someone could test it for me.
Also, while my Lenovo Y410 can hibernate without the help of uswsusp, it takes a long time to resume (~60 seconds). With uswsusp installed (and enabled), it only takes ~20 seconds.