suspend2 control file moved to /proc/software_suspend
Bug #41926 reported by
Dan
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kdeutils (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
klaptopdaemon has /proc/software_
To post a comment you must log in.
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/klaptopda emon/portable. cpp 2006-05-01 08:14:39.000000000 -0600 3.5.2/klaptopda emon/portable. cpp 2006-01-19 09:49:17.000000000 -0700
known = last_seed;
available = 0;
present = (((::access( "/proc/ sys/kernel/ swsusp" , F_OK) == 0) || "/proc/ software_ suspend" , F_OK) == 0) || "/proc/ suspend2" , F_OK) == 0)) && "/proc/ software_ suspend" , F_OK) == 0)) &&
: :access( "/usr/sbin/ hibernate" , F_OK) == 0);
if (::getuid() == 0) { // running as root
+++ orig/kdeutils-
@@ -578,8 +578,7 @@
- (::access(
- (::access(
+ (::access(
if (present) {