suspend2 control file moved to /proc/software_suspend

Bug #41926 reported by Dan
10
Affects Status Importance Assigned to Milestone
kdeutils (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

klaptopdaemon has /proc/software_suspend hardcoded when checking to see if a system has suspend2 enabled, this has changed to /proc/suspend2 in recent versions of suspend2. As a result, even though I have /usr/sbin/hibernate on my system (which it also checks for), it fails to detect suspend2. Suspend2 if often the only choice for hibernation for those of us where acpi methods fail (like my sony VGN-T350P)

Revision history for this message
Dan (dan-digitaldan) wrote :

This patch adds suport for newer versions of suspend2, could the maintainer send this upstream to KDE? Thanks for you time.

Dan-

--- kdeutils-3.5.2/klaptopdaemon/portable.cpp 2006-05-01 08:14:39.000000000 -0600
+++ orig/kdeutils-3.5.2/klaptopdaemon/portable.cpp 2006-01-19 09:49:17.000000000 -0700
@@ -578,8 +578,7 @@
                known = last_seed;
                available = 0;
                present = (((::access("/proc/sys/kernel/swsusp", F_OK) == 0) ||
- (::access("/proc/software_suspend", F_OK) == 0) ||
- (::access("/proc/suspend2", F_OK) == 0)) &&
+ (::access("/proc/software_suspend", F_OK) == 0)) &&
                           ::access("/usr/sbin/hibernate", F_OK) == 0);
                if (present) {
                        if (::getuid() == 0) { // running as root

Revision history for this message
Paul Sladen (sladen) wrote :

Hi Dan, this patch (bar being reversed) looks fine; but only coming into being for those people that have patched with kernels with suspend2.

We'd like to have the Sony hibernation working out of the box using the standard cross-platform support in the kernel; could you please file a bug against 'linux-source-2.6.15' so that it can be debugged there and a workaround found.

Although I appreciate that using suspend2 is a work around that works for you, the aim would be to have it working out of the box so that other uses don'thave to worry about hibernation issues.

Revision history for this message
Jonathan Riddell (jr) wrote :

Uploaded thanks.
Also added to KDE's SVN.

Changed in kdeutils:
status: Unconfirmed → Fix Released
Revision history for this message
Dan (dan-digitaldan) wrote :

Thanks, I have actually had bug #22907 opened for a while, this has been my temporary work around unitl I can track down whats causing the hang and report something that will help fix the issue.

D-

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.