Mistake in hal-polling module
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Laptop Mode Tools |
Invalid
|
Undecided
|
Ritesh Raj Sarraf |
Bug Description
You can read in hal-polling module the following code :
# Some backward compatibility for version 1.42
if [ x$BATT_
BATT_
else
BATT_
fi
if [ x$AC_ENABLE_
AC_
else
AC_
fi
The problem is that it does not do what's in the comment : it
overrides completely the preferences set in the config file. This code
purely sets BATT_DISABLE_
value of this variable in the config file.
The code should be changed to something like this :
# Some backward compatibility for version 1.42
if [ ! x$BATT_
if [ x$BATT_
BATT_
else
BATT_
fi
fi
if [ ! x$AC_ENABLE_
if [ x$AC_ENABLE_
else
fi
fi
What version of laptop-mode-tools are you using ?
This was fixed some time ago already.