I made that hand edit, and laptop_mode now looks at line 495 ff. like this:
Code:
case "$KLEVEL" in
"2.4" ) ;;
"2.6" ) ;;
3.[0-9]*) ;;
*)
log "ERR" "Unhandled kernel version: $KLEVEL ('uname -r' = '$(uname -r)')" >&2
exit 1
;;
esac
But it does not seem this easy, suspend to disk did not work and I -- fortunately -- got KDE back:
Code:
Jul 20 19:01:47 linux-yg22 laptop-mode: On AC power: Deactivating, because ENABLE_LAPTOP_MODE_ON_AC is not set.
Jul 20 19:01:47 linux-yg22 laptop-mode: Laptop mode
Jul 20 19:01:47 linux-yg22 laptop-mode: Checking if desired state is different from current state.
Jul 20 19:01:47 linux-yg22 laptop-mode: enabled, not active
Jul 20 19:01:47 linux-yg22 laptop-mode: Invoking module /usr/share/laptop-mode-tools/modules/ac97-powersave.
Jul 20 19:01:48 linux-yg22 laptop-mode: AC97 audio power setting is disabled.
Jul 20 19:01:48 linux-yg22 laptop-mode: Invoking module /usr/share/laptop-mode-tools/modules/battery-level-polling.
Jul 20 19:01:48 linux-yg22 laptop-mode: Battery level polling is disabled.
Jul 20 19:01:48 linux-yg22 laptop-mode: Invoking module /usr/share/laptop-mode-tools/modules/bluetooth.
Jul 20 19:01:48 linux-yg22 laptop-mode: Invoking module /usr/share/laptop-mode-tools/modules/configuration-file-control.
Jul 20 19:01:48 linux-yg22 laptop-mode: Invoking module /usr/share/laptop-mode-tools/modules/cpufreq.
Jul 20 19:01:48 linux-yg22 laptop-mode: Invoking module /usr/share/laptop-mode-tools/modules/dpms-standby.
Jul 20 19:01:48 linux-yg22 laptop-mode: CONTROL_DPMS_STANDBY is disabled, skipping...
Jul 20 19:01:48 linux-yg22 laptop-mode: Invoking module /usr/share/laptop-mode-tools/modules/eee-superhe.
Jul 20 19:01:48 linux-yg22 laptop-mode: Control file is /sys/devices/platform/eeepc/cpufv
Jul 20 19:01:48 linux-yg22 laptop-mode: Invoking module /usr/share/laptop-mode-tools/modules/ethernet.
Jul 20 19:01:48 linux-yg22 laptop-mode: Ethernet module is disabled.
Jul 20 19:01:48 linux-yg22 laptop-mode: Invoking module /usr/share/laptop-mode-tools/modules/hal-polling.
Jul 20 19:01:48 linux-yg22 laptop-mode: Invoking module /usr/share/laptop-mode-tools/modules/hdparm.
Jul 20 19:01:48 linux-yg22 laptop-mode: Invoking module /usr/share/laptop-mode-tools/modules/intel-hda-powersave.
Jul 20 19:01:48 linux-yg22 laptop-mode: Intel HDA power save mode enabled with timeout 10.
Jul 20 19:01:49 linux-yg22 laptop-mode: Initialize timer change by close/open /dev/dsp
Jul 20 19:01:49 linux-yg22 laptop-mode: Intel HDA Controller power save set to N.
Jul 20 19:01:49 linux-yg22 laptop-mode: Invoking module /usr/share/laptop-mode-tools/modules/intel-sata-powermgmt.
Jul 20 19:01:49 linux-yg22 laptop-mode: Intel SATA link power saving disabled.
Jul 20 19:01:49 linux-yg22 laptop-mode: Invoking module /usr/share/laptop-mode-tools/modules/laptop-mode.
Jul 20 19:01:49 linux-yg22 laptop-mode: Executing: echo 0 > /proc/sys/vm/laptop_mode
Jul 20 19:01:49 linux-yg22 laptop-mode: Remounting filesystems.
Jul 20 19:01:49 linux-yg22 laptop-mode: rootfs not found in PARTITIONS.
Jul 20 19:01:49 linux-yg22 laptop-mode: / not found in PARTITIONS.
Jul 20 19:01:49 linux-yg22 laptop-mode: Checking rootfs against HD because PARTITIONS contains "auto".
Jul 20 19:01:49 linux-yg22 laptop-mode: Considering /dev/sda.
Jul 20 19:01:49 linux-yg22 laptop-mode: devtmpfs not found in PARTITIONS.
Jul 20 19:01:49 linux-yg22 laptop-mode: /dev not found in PARTITIONS.
Jul 20 19:01:49 linux-yg22 laptop-mode: Checking devtmpfs against HD because PARTITIONS contains "auto".
Jul 20 19:01:49 linux-yg22 laptop-mode: Considering /dev/sda.
Jul 20 19:01:49 linux-yg22 laptop-mode: tmpfs not found in PARTITIONS.
Jul 20 19:01:49 linux-yg22 laptop-mode: /dev/shm not found in PARTITIONS.
Jul 20 19:01:49 linux-yg22 laptop-mode: Checking tmpfs against HD because PARTITIONS contains "auto".
Jul 20 19:01:49 linux-yg22 laptop-mode: Considering /dev/sda.
Jul 20 19:01:49 linux-yg22 laptop-mode: devpts not found in PARTITIONS.
Jul 20 19:01:49 linux-yg22 laptop-mode: /dev/pts not found in PARTITIONS.
Jul 20 19:01:49 linux-yg22 laptop-mode: Checking devpts against HD because PARTITIONS contains "auto".
Jul 20 19:01:49 linux-yg22 laptop-mode: Considering /dev/sda.
Jul 20 19:01:49 linux-yg22 laptop-mode: /dev/sda2 not found in PARTITIONS.
Jul 20 19:01:49 linux-yg22 laptop-mode: / not found in PARTITIONS.
Jul 20 19:01:49 linux-yg22 laptop-mode: Checking /dev/sda2 against HD because PARTITIONS contains "auto".
Jul 20 19:01:49 linux-yg22 laptop-mode: Considering /dev/sda.
Jul 20 19:01:49 linux-yg22 laptop-mode: /dev/sda2 contains /dev/sda, which is in HD, so we will remount it.
Jul 20 19:01:49 linux-yg22 laptop-mode: Original options: rw,relatime,user_xattr,acl,barrier=1,data=ordered
Jul 20 19:01:49 linux-yg22 laptop-mode: Reducing file system type.
Jul 20 19:01:49 linux-yg22 laptop-mode: No saved mount options, so apparently we never remounted this filesystem during this session.
Jul 20 19:01:49 linux-yg22 laptop-mode: Not remounting.
Jul 20 19:01:49 linux-yg22 laptop-mode: Executing: /sbin/blockdev --setfra 256 /dev/sda2
Jul 20 19:01:49 linux-yg22 laptop-mode: proc not found in PARTITIONS.
Jul 20 19:01:49 linux-yg22 laptop-mode: /proc not found in PARTITIONS.
Jul 20 19:01:49 linux-yg22 laptop-mode: Checking proc against HD because PARTITIONS contains "auto".
Jul 20 19:01:49 linux-yg22 laptop-mode: Considering /dev/sda.
Jul 20 19:01:49 linux-yg22 laptop-mode: sysfs not found in PARTITIONS.
Jul 20 19:01:49 linux-yg22 laptop-mode: /sys not found in PARTITIONS.
Jul 20 19:01:49 linux-yg22 laptop-mode: Checking sysfs against HD because PARTITIONS contains "auto".
Jul 20 19:01:49 linux-yg22 laptop-mode: Considering /dev/sda.
Jul 20 19:01:49 linux-yg22 laptop-mode: debugfs not found in PARTITIONS.
Jul 20 19:01:49 linux-yg22 laptop-mode: /sys/kernel/debug not found in PARTITIONS.
Jul 20 19:01:49 linux-yg22 laptop-mode: Checking debugfs against HD because PARTITIONS contains "auto".
Jul 20 19:01:49 linux-yg22 laptop-mode: Considering /dev/sda.
Jul 20 19:01:49 linux-yg22 laptop-mode: /dev/sda5 not found in PARTITIONS.
Jul 20 19:01:49 linux-yg22 laptop-mode: /local not found in PARTITIONS.
Jul 20 19:01:49 linux-yg22 laptop-mode: Checking /dev/sda5 against HD because PARTITIONS contains "auto".
Jul 20 19:01:49 linux-yg22 laptop-mode: Considering /dev/sda.
Jul 20 19:01:49 linux-yg22 laptop-mode: /dev/sda5 contains /dev/sda, which is in HD, so we will remount it.
Jul 20 19:01:49 linux-yg22 laptop-mode: Original options: rw,relatime,user_xattr,acl,barrier=1,data=ordered
Jul 20 19:01:49 linux-yg22 laptop-mode: Reducing file system type.
Jul 20 19:01:49 linux-yg22 laptop-mode: No saved mount options, so apparently we never remounted this filesystem during this session.
Jul 20 19:01:49 linux-yg22 laptop-mode: Not remounting.
Jul 20 19:01:49 linux-yg22 laptop-mode: Executing: /sbin/blockdev --setfra 256 /dev/sda5
. . . . . .
.......... I had to shorten it
...........
Jul 20 19:01:55 linux-yg22 laptop-mode: Module /usr/local/share/laptop-mode-tools/modules/* is not executable.
Jul 20 19:01:55 linux-yg22 laptop-mode: Module /etc/laptop-mode/modules/* is not executable.
Jul 20 19:01:55 linux-yg22 dbus-daemon: [system] Rejected send message, 7 matched rules; type="method_call", sender=":1.28" (uid=1002 pid=2515 comm="kdeinit4: plasma-desktop [kdeinit]) interface="org.freedesktop.NetworkManager" member="Sleep" error name="(unset)" requested_reply=0 destination="org.freedesktop.NetworkManager" (uid=0 pid=1592 comm="/usr/sbin/NetworkManager))
Sorry, to many lines: "The text that you have entered is too long (23410 characters). Please shorten it to 15000 characters long."
Bookmarks