pm-utils looks for s2disk in the wrong place

Bug #207002 reported by Greg Michalec on 2008-03-26
8
Affects Status Importance Assigned to Milestone
nautilus (Ubuntu)
Undecided
Unassigned
pm-utils (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: pm-utils

In /usr/lib/pm-utils/functions, there is a line specifying "S2DISK_BIN=/usr/sbin/s2disk". However, the uswsusp package install s2disk to '/sbin/s2disk'. Thus, under the current configuration, it's impossible to use uswsusp. I've tested this out - if I leave /usr/lib/pm-utils/functions alone, selecting hibernate from the gnome menu uses the normal hibernate method, which fails on my laptop. However, if I change the path to s2disk in /usr/lib/pm-utils/functions, hibernation uses uswsusp, which works correctly.
I'm using latest hardy (pm-utils_0.99.2-3ubuntu and uswsusp_0.6~cvs2007061)

Greg Michalec (greg-primate) wrote :

This patch fixes the problem - it just adjusts the path of s2disk in debian/patches/10-uswsusp-support.patch. I can't imagine how it could break anything.

Changed in pm-utils:
status: New → Confirmed

A simple workaround :
Add a file in /etc/pm/config.d/ containing :
S2DISK_BIN=/sbin/s2disk

But the patch should be added to the package.

Christoph Shipley (champro) wrote :

Oops... can't figure out how to revert to past standing.

Abraham Smith (adsmith) wrote :

Note. The S2DISK_BIN trick is not sufficient, because the paths to s2ram and s2both are also hardcoded into all of the /usr/lib/pm-utils scripts.

Either a config variable should be introduced, or pm-utils should be fixed, or uswsusp should install in /usr/sbin.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers