[Bug 246053] Re: pm-utils doesn't detect uswsusp in hardy

hyperair hyperair at gmail.com
Thu Sep 4 12:35:40 BST 2008


** Description changed:

  Binary package hint: pm-utils
  
- pm-utils does not detect the presence of uswsusp (it looks for s2disk 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.
+ 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-support.patch and 30-comment-defaults-
- file.patch were obsoleted in 1.1.0-1.
+ with them, i.e. 10-uswsusp-support.patch, 30-comment-defaults-file.patch
+ and 60-suspend-hybrid.patch were obsoleted in 1.1.0-1.
  
  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:
- Modify /usr/lib/pm-utils/defaults in the pm-utils package to add the proper path where Ubuntu installs uswsusp's utilities:
- 
- # where is the s2disk binary located? Defaults to "/usr/sbin/s2disk"
- # (do not change unless you kow what you are doing)
- #
- # Set the path so the script autodetects s2disk in the location 
- # Ubuntu's uswsusp package installs it. 
- S2DISK_BIN="/sbin/s2disk"
- 
- -Until the repositories fix this, the workaround is to copy /usr/lib/pm-
- utils/defaults to /etc/pm/config.d/config and make the change above in
- /etc/pm/config.d/config
+ - Replace all instances of /usr/sbin/s2{disk,both,ram} with /sbin/s2{disk,both,ram}:
+ sudo find /usr/lib/pm-utils/ -type f -exec sed -R -i -e 's|/usr/sbin/s2|/sbin/s2|g' '{}' \;

-- 
pm-utils doesn't detect uswsusp in hardy
https://bugs.launchpad.net/bugs/246053
You received this bug notification because you are a member of Ubuntu
Sponsors for main, which is a direct subscriber.



More information about the Ubuntu-main-sponsors mailing list