Version: 3.5.7 (using KDE KDE 3.5.7) Installed from: Gentoo Packages Compiler: gcc-4.1.2 gcc version 4.1.2 (Gentoo 4.1.2) OS: Linux There is a problem with klaptopdaemon and 2.6.22 (and probably higher) Linux kernels. There are no "Hibernate" and "Lock&Hibernate" menu items even if those are enabled at "ACPI Config" page and helper application is set up correctly. This is due to the fact that /sys/power/state file format have changed (\n appended) and has_acpi_sleep() function is unable to handle it properly. This bug was already filed here: http://bugs.gentoo.org/show_bug.cgi?id=188760
Created attachment 21420 [details] patch to resolve the bug I've changed has_acpi_sleep() function so that it can handle both old and new format as well (tested with gentoo-sources-2.6.22-r2 and 2.6.21-r4). I've also removed /proc/acpi/sleep checks due to deprecation of it in the mainline kernel and scheduled ACPI procfs interface removal.
FYI - this patch worked for me. "Hibernate" and "Lock & Hibernate" now appear on the laptop daemon menu again. (This is on Arch Linux w/kdeutils 3.5.7 and kernel 2.6.22.5) Woo hoo!!! Thanks much for the fix! Any idea when this might make it into the official KDE release?
Works for me as well, I have locally patched the Debian packages.
Looks like maybe this is fixed in KDE 3.5.8. Can anyone else confirm?
NAK, klaptopdaemon 3.5.8-1 from Debian unstable does not show the menu entries.
This is also Debian Bug #444500, http://bugs.debian.org/444500
Created attachment 23387 [details] another patch
SVN commit 770083 by fabo: Fix "Hibernate" and "Lock & Hibernate" missing menu in kernel >= 2.6.22 BUG: 148928 M +4 -2 portable.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=770083