Hello all,
I am having a problem with my laptop, it doesnt know when the ac adapter is attached. it constantly thinks its running on battery power. it doesnt lose energy but it jus gives incorrect time remaining readings and never shows a plug in the gnome-battstat applet. i have compiled ac adapter acpi into the kernel and battery acpi my laptop is a hp dv1000. i am running acpid. anyway heres all relevant info. can someone please tell me why it doesnt know its charging or has an ac adapter attached. at one point it did know when there was an ac adapter attached. im not sure when it stopped working though.
kernel config:
etop ~ # cat /usr/src/linux/.config | grep ACPI
# Power management options (ACPI, APM)
# ACPI (Advanced Configuration and Power Interface) Support
CONFIG_ACPI=y
# CONFIG_ACPI_SLEEP is not set
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_VIDEO=y
# CONFIG_ACPI_HOTKEY is not set
CONFIG_ACPI_FAN=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_THERMAL=y
# CONFIG_ACPI_ASUS is not set
# CONFIG_ACPI_IBM is not set
# CONFIG_ACPI_TOSHIBA is not set
CONFIG_ACPI_BLACKLIST_YEAR=0
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_SYSTEM=y
# CONFIG_ACPI_CONTAINER is not set
# CONFIG_X86_ACPI_CPUFREQ is not set
CONFIG_X86_SPEEDSTEP_CENTRINO_ACPI=y
# CONFIG_X86_ACPI_CPUFREQ_PROC_INTF is not set
# CONFIG_HOTPLUG_PCI_ACPI is not set
CONFIG_PNPACPI=y
state with ac adapter attached:
etop ~ # cat /proc/acpi/battery/BAT0/state
present: yes
capacity state: ok
charging state: discharging
present rate: 0 mA
remaining capacity: 2080 mAh
present voltage: 12395 mV
this is what happens when i remove and reattach the power cord and run tail -f /var/log/acpid:
[Wed Oct 4 14:23:16 2006] received event "processor CPU0 00000080 00000000"
[Wed Oct 4 14:23:16 2006] notifying client 8848[102:409]
[Wed Oct 4 14:23:16 2006] executing action "/etc/acpi/default.sh processor CPU0 00000080 00000000"
[Wed Oct 4 14:23:16 2006] BEGIN HANDLER MESSAGES
[Wed Oct 4 14:23:16 2006] END HANDLER MESSAGES
[Wed Oct 4 14:23:16 2006] action exited with status 0
[Wed Oct 4 14:23:16 2006] completed event "processor CPU0 00000080 00000000"
[Wed Oct 4 14:23:16 2006] received event "processor CPU0 00000081 00000000"
[Wed Oct 4 14:23:16 2006] notifying client 8848[102:409]
[Wed Oct 4 14:23:16 2006] executing action "/etc/acpi/default.sh processor CPU0 00000081 00000000"
[Wed Oct 4 14:23:16 2006] BEGIN HANDLER MESSAGES
[Wed Oct 4 14:23:16 2006] END HANDLER MESSAGES
[Wed Oct 4 14:23:16 2006] action exited with status 0
[Wed Oct 4 14:23:16 2006] completed event "processor CPU0 00000081 00000000"
[Wed Oct 4 14:23:16 2006] received event "battery BAT0 00000080 00000001"
[Wed Oct 4 14:23:16 2006] notifying client 8848[102:409]
[Wed Oct 4 14:23:16 2006] executing action "/etc/acpi/default.sh battery BAT0 00000080 00000001"
[Wed Oct 4 14:23:16 2006] BEGIN HANDLER MESSAGES
[Wed Oct 4 14:23:16 2006] END HANDLER MESSAGES
[Wed Oct 4 14:23:16 2006] action exited with status 0
[Wed Oct 4 14:23:16 2006] completed event "battery BAT0 00000080 00000001"
[Wed Oct 4 14:23:16 2006] received event "battery BAT0 00000080 00000001"
[Wed Oct 4 14:23:16 2006] notifying client 8848[102:409]
[Wed Oct 4 14:23:16 2006] executing action "/etc/acpi/default.sh battery BAT0 00000080 00000001"
[Wed Oct 4 14:23:16 2006] BEGIN HANDLER MESSAGES
[Wed Oct 4 14:23:16 2006] END HANDLER MESSAGES
[Wed Oct 4 14:23:16 2006] action exited with status 0
[Wed Oct 4 14:23:16 2006] completed event "battery BAT0 00000080 00000001"
[Wed Oct 4 14:23:16 2006] received event "battery BAT0 00000080 00000001"
[Wed Oct 4 14:23:16 2006] notifying client 8848[102:409]
[Wed Oct 4 14:23:16 2006] executing action "/etc/acpi/default.sh battery BAT0 00000080 00000001"
[Wed Oct 4 14:23:16 2006] BEGIN HANDLER MESSAGES
[Wed Oct 4 14:23:16 2006] END HANDLER MESSAGES
[Wed Oct 4 14:23:16 2006] action exited with status 0
[Wed Oct 4 14:23:16 2006] completed event "battery BAT0 00000080 00000001"
[Wed Oct 4 14:23:17 2006] received event "processor CPU0 00000080 00000000"
[Wed Oct 4 14:23:17 2006] notifying client 8848[102:409]
[Wed Oct 4 14:23:17 2006] executing action "/etc/acpi/default.sh processor CPU0 00000080 00000000"
[Wed Oct 4 14:23:17 2006] BEGIN HANDLER MESSAGES
[Wed Oct 4 14:23:17 2006] END HANDLER MESSAGES
[Wed Oct 4 14:23:17 2006] action exited with status 0
[Wed Oct 4 14:23:17 2006] completed event "processor CPU0 00000080 00000000"
[Wed Oct 4 14:23:17 2006] received event "processor CPU0 00000081 00000000"
[Wed Oct 4 14:23:17 2006] notifying client 8848[102:409]
[Wed Oct 4 14:23:17 2006] executing action "/etc/acpi/default.sh processor CPU0 00000081 00000000"
[Wed Oct 4 14:23:17 2006] BEGIN HANDLER MESSAGES
[Wed Oct 4 14:23:17 2006] END HANDLER MESSAGES
[Wed Oct 4 14:23:17 2006] action exited with status 0
[Wed Oct 4 14:23:17 2006] completed event "processor CPU0 00000081 00000000"
[Wed Oct 4 14:23:17 2006] received event "battery BAT0 00000080 00000001"
[Wed Oct 4 14:23:17 2006] notifying client 8848[102:409]
[Wed Oct 4 14:23:17 2006] executing action "/etc/acpi/default.sh battery BAT0 00000080 00000001"
[Wed Oct 4 14:23:17 2006] BEGIN HANDLER MESSAGES
[Wed Oct 4 14:23:17 2006] END HANDLER MESSAGES
[Wed Oct 4 14:23:17 2006] action exited with status 0
[Wed Oct 4 14:23:17 2006] completed event "battery BAT0 00000080 00000001"
[Wed Oct 4 14:23:20 2006] received event "battery BAT0 00000080 00000001"
[Wed Oct 4 14:23:20 2006] notifying client 8848[102:409]
[Wed Oct 4 14:23:20 2006] executing action "/etc/acpi/default.sh battery BAT0 00000080 00000001"
[Wed Oct 4 14:23:20 2006] BEGIN HANDLER MESSAGES
[Wed Oct 4 14:23:20 2006] END HANDLER MESSAGES
[Wed Oct 4 14:23:20 2006] action exited with status 0
[Wed Oct 4 14:23:20 2006] completed event "battery BAT0 00000080 00000001"
Im not sure if the battery itself is broken or if linux acpi is broken. anyways thanks for your time.
-Brandon
