here is a good fix to put in /etc/acpi/battery.sh ( I had the same
problem and fixed it by adding this to the top)

#########################################
AC_state=/proc/acpi/ac_adapter/AC/state

if grep -q "on-line" ${AC_state} ; then

    hal-set-property --udi `hal-find-by-capability --capability
ac_adapter` --key ac_adapter.present --bool true

else

    hal-set-property --udi `hal-find-by-capability --capability
ac_adapter` --key ac_adapter.present --bool false

fi
#########################################

-- 
[Master] hal/acpi incorrectly reports AC adapter state
https://bugs.launchpad.net/bugs/213128
You received this bug notification because you are a member of Registry
Administrators, which is the registrant for acpi.

_______________________________________________
Mailing list: https://launchpad.net/~registry
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~registry
More help   : https://help.launchpad.net/ListHelp

Reply via email to