You are not logged in.

#1 2012-12-17 13:57:59

dontbugme
Banned
Registered: 2011-11-04
Posts: 166
Website

laptop-mode-tools 1.62-1 line 1031: integer expression expected

Hi, I have the problem mentioned in the subject since laptop-mode-tools 1.62-1 (yeah, I know newest version is 1.62-2 but it has the same error). The error appeared after v 1.61-2 was updated.
Unfortunately, I wasn't able to track down these errors. I just know that it seems, there are some variables, which aren't initialized properly.
Line 1031:

 if [ "$INIT" -eq 0 ] ; then

Line 1042:

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

Line 1031 is pretty obvious - $INIT doesn't seem to be initialized, although I don't know why.

Line 1042 .. idfk.

I'm also getting the following error:

SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0a 00 00 00 00 24 00 00 c0 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00
/usr/share/laptop-mode-tools/modules/lcd-brightness: line 21: [: : integer expression expected
/usr/sbin/laptop_mode: line 205: LCD_BRIGHTNESS~_DEBUG: syntax error in expression (error token is "~_DEBUG")

Anyone here with the same errors?

Offline

#2 2013-01-31 15:48:32

renegat
Member
From: Europe
Registered: 2012-12-28
Posts: 73

Re: laptop-mode-tools 1.62-1 line 1031: integer expression expected

I get similar error on
# laptop_mode status

...
/proc/acpi/button/lid/LID/state:
   state:      open
 
/sys/class/power_supply/AC/online:
   1
 
/usr/sbin/laptop_mode: Zeile 1031: [: : Ganzzahliger Ausdruck erwartet.
/usr/sbin/laptop_mode: Zeile 1042: [: : Ganzzahliger Ausdruck erwartet.
enabled, active
SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0a 00 00 00 00 24 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0a 00 00 00 00 24 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0a 00 00 00 00 24 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0a 00 00 00 00 24 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

The 'SG_IO: bad/missing sense data, sb[]...' is often reported related to harddisk power management issues but I haven't found any solution yet.

Offline

Board footer

Powered by FluxBB