AC adapter status don't change when unpluged it
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
hal (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: hal
I have a vaio VGN_FE31M with ubuntu hardy 8.04
AC adapter status is not detected entirely correctly.
HAL doesn’t seem to register the ACPI change event for the AC adapter - so the AC status will remain the same as it was on first boot (or if you manually restart HAL…)
This means things like backlight adjustment based on AC status do not work (with gnome-power-
Some report with AC plugged in:
$cat /proc/acpi/
state: on-line
$ lshal | grep ac_adapter.present
ac_adapter.present = true (bool)
Some report with AC plugged out:
$ cat /proc/acpi/
state: off-line
$ lshal | grep ac_adapter.present
ac_adapter.present = true (bool) <--- would be false!
and at the end, the result for "lshal -m"
#ac adpater just connetced
12:36:12.050: computer_
12:36:12.053: computer_
12:36:12.057: computer_
12:36:15.608: computer_
#unplugged ac adpater
12:36:15.612: computer_
12:36:15.614: computer_
12:36:15.616: computer_
12:36:15.618: computer_
Seems HAL is registering everything about the battery except the AC status, although ACPI is picking this up right. Anyone got any ideas what’s going on here?
Sorry for my bad english...and thanks for help!
Same problem here on Sony Vaio VGN-FE31M. /bugs.launchpad .net/bugs/ 213128.
Probably this bug is related to https:/
Temporary workaround.
Create the files:
/etc/acpi/ ac.d/power- switch. sh containing: by-capability --capability ac_adapter` --key ac_adapter.present --bool true
hal-set-property --udi `hal-find-
/etc/acpi/ battery. d/power- switch. sh containing: by-capability --capability ac_adapter` --key ac_adapter.present --bool false
hal-set-property --udi `hal-find-
Hope it helps.