# /usr/sbin/laptop_mode status /usr/sbin/laptop_mode: line 239: .: /etc/laptop-mode/conf.d/board-specific: is a directory Warning: Configuration file /etc/laptop-mode/conf.d/board-specific/* is not readable, skipping. Mounts: /dev/root on / type ext3 (rw,noatime,commit=0) [cut] /proc/acpi/button/lid/LID0/state: state: open /sys/class/power_supply/AC/online: 1 /usr/sbin/laptop_mode: line 1022: [: : integer expression expected /usr/sbin/laptop_mode: line 1033: [: : integer expression expected enabled, not active #
And the line numbers: 1021 1022 if [ "$INIT" -eq 0 ] ; then 1023 log "MSG" "Laptop mode " 1024 fi 1025 1030 if [ -f /var/run/laptop-mode-tools/state ] ; then 1031 read WAS_ACTIVE WAS_ON_AC WAS_ACTIVATE_WITH_POSSIBLE_DATA_LOSS WAS_STATE < /var/run/laptop-mode-tools/state 1032 if [ "$WAS_STATE" != "" ] ; then 1033 if [ "$WAS_ACTIVE" -eq "$ACTIVATE" -a "$WAS_ON_AC" -eq "$ON_AC" -a "$WAS_ACTIVATE_WITH_POSSIBLE_DATA_LOSS" -eq "$ACTIVATE_WITH_POSSIBLE_DATA_LOSS" -a "$WAS_STATE" = "$STATE" -a "$FORCE" -eq 0 ] ; then 1034 if [ "$WAS_ACTIVE" -eq 1 ] ; then 1035 log "MSG" "$STATE, active [unchanged]"
Workaround: INIT=0 /usr/sbin/laptop_mode status
(In reply to comment #2) > Workaround: > > INIT=0 /usr/sbin/laptop_mode status FORCE=0 INIT=0 /usr/sbin/laptop_mode status
Fixed in laptop-mode-tools-1.62-r2