[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 118291] klaptopdaemon is not prepared for suspend2 via
From:       Stephan Wezel <s.wezel () web ! de>
Date:       2007-09-30 15:11:13
Message-ID: 20070930151113.19407.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
         
http://bugs.kde.org/show_bug.cgi?id=118291         




------- Additional Comments From s.wezel web de  2007-09-30 17:11 -------
suspend2 has been renamed to tuxonice.Starting with version 2.2.10.3 
/sys/power/suspend2 has also been renamed to /sys/power/tuxonice
here is a slightly modified patch based on the patch from Manfred Paul which adds /sys/power/tuxonice 
to the check if software suspend is present.

 --- ./klaptopdaemon/portable.cpp.org    2007-09-30 16:14:48.000000000 +0200
+++ ./klaptopdaemon/portable.cpp        2007-09-30 16:21:56.000000000 +0200
 @ -577,7 +577,9  @
                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/suspend2", F_OK) == 0) ||
+                           (::access("/sys/power/suspend2", F_OK) == 0) ||
+                           (::access("/sys/power/tuxonice", F_OK) == 0)) &&
                           ::access("/usr/sbin/hibernate", F_OK) == 0);
                if (present) {
                        if (::getuid() == 0) {  // running as root
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic