[pkg-kde-bugs-fwd] KDE, klaptop
Manfred Paul
manne.paul at web.de
Tue Dec 13 15:54:54 UTC 2005
Hi,
i am using KDE 3.5 from alioth with Kernel 2.6.14.3 and software suspend2.
Klaptop doesn`t allow hibernating with /proc/suspend2 access.
So here is my little patch:
--- kdeutils-3.5.0.orig/klaptopdaemon/portable.cpp
+++ kdeutils-3.5.0/klaptopdaemon/portable.cpp
@@ -577,9 +577,10 @@
if (known != last_seed) {
known = last_seed;
available = 0;
- present = (((::access("/proc/sys/kernel/swsusp", F_OK) == 0) ||
- (::access("/proc/software_suspend", F_OK) == 0)) &&
- ::access("/usr/sbin/hibernate", F_OK) == 0);
+ present = (((::access("/proc/sys/kernel/swsusp", F_OK) == 0) ||
+ (::access("/proc/software_suspend", F_OK) == 0) ||
+ (::access("/proc/suspend2", F_OK) == 0)) &&
+ ::access("/usr/sbin/hibernate", F_OK) == 0);
if (present) {
if (::getuid() == 0) { // running as root
available = ::access("/usr/sbin/hibernate", X_OK) == 0 && acpi_helper_ok(1);
------------------
It would be nice to see this in the deb as soon as possible.
mfg
manne
______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
More information about the pkg-kde-bugs-fwd
mailing list