You are not logged in.
Pages: 1
Hi everybody
I have a Acer Aspire 5820TG TimelineX which is a really good laptop. But I have a big problem. I can't read the state of the battery.
This is what I get from acpi -V,
Battery 0: Unknown, 0%, rate information unavailable
Battery 0: design capacity 4400 mAh, last full capacity 4400 mAh = 100%
Adapter 0: on-line
Thermal 0: ok, 40.0 degrees C
Thermal 0: trip point 0 switches to mode critical at temperature 105.0 degrees C
Thermal 0: trip point 1 switches to mode passive at temperature 98.0 degrees C
Cooling 0: LCD 0 of 9
Cooling 1: LCD 0 of 9
Cooling 2: Processor 0 of 10
Cooling 3: Processor 0 of 10
Cooling 4: Processor 0 of 10
Cooling 5: Processor 0 of 10
from /proc/acpi/battery/BAT1/state
present: yes
design capacity: 4400 mAh
last full capacity: 4400 mAh
battery technology: rechargeable
design voltage: 11100 mV
design capacity warning: 300 mAh
design capacity low: 132 mAh
cycle count: 0
capacity granularity 1: 32 mAh
capacity granularity 2: 32 mAh
model number: BAT1
serial number: 11
battery type: 11
OEM info: 11
As you can see, ACPI is well aware that the battery is present and its infomation
Some output from dmesg | grep ACPI if it helps
BIOS-e820: 00000000bb73b000 - 00000000bb7bf000 (ACPI NVS)
BIOS-e820: 00000000bb7e1000 - 00000000bb7ff000 (ACPI data)
modified: 00000000bb73b000 - 00000000bb7bf000 (ACPI NVS)
modified: 00000000bb7e1000 - 00000000bb7ff000 (ACPI data)
ACPI: RSDP 00000000000fe020 00024 (v02 ACRSYS)
ACPI: XSDT 00000000bb7fe120 0007C (v01 ACRSYS ACRPRDCT 00000001 01000013)
ACPI: FACP 00000000bb7fc000 000F4 (v04 ACRSYS ACRPRDCT 00000001 1025 01000013)
ACPI: DSDT 00000000bb7ed000 0BA9D (v02 ACRSYS ACRPRDCT 00000001 1025 01000013)
ACPI: FACS 00000000bb75f000 00040
ACPI: ASF! 00000000bb7fd000 000A5 (v32 ACRSYS ACRPRDCT 00000001 1025 01000013)
ACPI: HPET 00000000bb7fb000 00038 (v01 ACRSYS ACRPRDCT 00000001 1025 01000013)
ACPI: APIC 00000000bb7fa000 0008C (v02 ACRSYS ACRPRDCT 00000001 1025 01000013)
ACPI: MCFG 00000000bb7f9000 0003C (v01 ACRSYS ACRPRDCT 00000001 1025 01000013)
ACPI: SLIC 00000000bb7ec000 00176 (v01 ACRSYS ACRPRDCT 00000001 1025 01000013)
ACPI: BOOT 00000000bb7e9000 00028 (v01 ACRSYS ACRPRDCT 00000001 1025 01000013)
ACPI: ASPT 00000000bb7e5000 00034 (v04 ACRSYS ACRPRDCT 00000001 1025 01000013)
ACPI: WDAT 00000000bb7e4000 00224 (v01 ACRSYS ACRPRDCT 00000001 1025 01000013)
ACPI: SSDT 00000000bb7e3000 009F1 (v01 PmRef CpuPm 00003000 INTL 20051117)
ACPI: SSDT 00000000bb7e1000 01E0F (v01 AmdRef AmdTabl 00001000 INTL 20051117)
ACPI: Local APIC address 0xfee00000
ACPI: PM-Timer IO Port: 0x408
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x00] enabled)
ACPI: LAPIC (acpi_id[0x02] lapic_id[0x01] enabled)
ACPI: LAPIC (acpi_id[0x03] lapic_id[0x04] enabled)
ACPI: LAPIC (acpi_id[0x04] lapic_id[0x05] enabled)
ACPI: LAPIC (acpi_id[0x05] lapic_id[0x00] disabled)
ACPI: LAPIC (acpi_id[0x06] lapic_id[0x00] disabled)
ACPI: LAPIC (acpi_id[0x07] lapic_id[0x00] disabled)
ACPI: LAPIC (acpi_id[0x08] lapic_id[0x00] disabled)
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ9 used by override.
Using ACPI (MADT) for SMP configuration information
ACPI: HPET id: 0x8086a201 base: 0xfed00000
#6 [0000012000 - 0000016000] ACPI WAKEUP
ACPI: Core revision 20100121
ACPI FADT declares the system doesn't support PCIe ASPM, so disable it
ACPI: bus type pci registered
ACPI: EC: Look up EC in DSDT
ACPI: Executed 1 blocks of module-level executable AML code
ACPI: BIOS _OSI(Linux) query ignored
ACPI: SSDT 00000000bb691c18 003AE (v01 PmRef Cpu0Ist 00003000 INTL 20051117)
ACPI: SSDT 00000000bb68f018 00891 (v01 PmRef Cpu0Cst 00003001 INTL 20051117)
ACPI: SSDT 00000000bb690a98 00303 (v01 PmRef ApIst 00003000 INTL 20051117)
ACPI: SSDT 00000000bb68ed98 00119 (v01 PmRef ApCst 00003000 INTL 20051117)
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: EC: GPE = 0x16, I/O: command/status = 0x66, data = 0x62
ACPI: No dock devices found.
PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
ACPI: PCI Root Bridge [PCI0] (0000:00)
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P0P2._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P0P1._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.RP01._PRT]
ACPI: PCI Root Bridge [CPBG] (0000:7f)
ACPI: PCI Interrupt Link [LNKA] (IRQs 1 3 4 5 6 *7 10 12 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 1 3 4 *5 6 7 11 12 14 15)
ACPI: PCI Interrupt Link [LNKC] (IRQs 1 3 4 5 6 7 10 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKD] (IRQs 1 3 4 5 6 7 11 12 14 15) *10
ACPI: PCI Interrupt Link [LNKE] (IRQs 1 3 4 5 6 7 10 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKF] (IRQs 1 3 4 5 6 *7 11 12 14 15)
ACPI: PCI Interrupt Link [LNKG] (IRQs 1 3 4 5 6 7 10 12 14 15) *11
ACPI: PCI Interrupt Link [LNKH] (IRQs 1 3 4 5 6 7 *11 12 14 15)
PCI: Using ACPI for IRQ routing
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 11 devices
ACPI: ACPI bus type pnp unregistered
pcieport 0000:00:01.0: Requesting control of PCIe PME from ACPI BIOS
pcieport 0000:00:01.0: Failed to receive control of PCIe PME service: ACPI _OSC failed
pcieport 0000:00:1c.0: Requesting control of PCIe PME from ACPI BIOS
pcieport 0000:00:1c.0: Failed to receive control of PCIe PME service: ACPI _OSC failed
pcieport 0000:00:1c.5: Requesting control of PCIe PME from ACPI BIOS
pcieport 0000:00:1c.5: Failed to receive control of PCIe PME service: ACPI _OSC failed
ACPI: resource 0000:00:1f.3 [io 0x4000-0x401f] conflicts with ACPI region SMBI [io 0x4000-0x400f 64bit pref disabled]
ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
ACPI: Power Button [PWRB]
ACPI: Lid Switch [LID0]
ACPI: Sleep Button [SLPB]
ACPI: Power Button [PWRF]
ACPI: Thermal Zone [_TZ] (40 C)
ACPI: AC Adapter [ACAD] (on-line)
ACPI: Battery Slot [BAT1] (battery present)
ACPI: WMI: Mapper loaded
ACPI: Video Device [GFX0] (multi-head: yes rom: no post: no)
[Firmware Bug]: ACPI(PEGP) defines _DOD but not _DOS
ACPI: Video Device [PEGP] (multi-head: yes rom: no post: no)
[Firmware Bug]: Duplicate ACPI video bus devices for the same VGA controller, please try module parameter "video.allow_duplicates=1"if the current driver doesn't work.
I'm using the latest kernel from [testing] (2.6.34-ARCH).
Arch - It's something refreshing
Offline
from /proc/acpi/battery/BAT1/state
present: yes design capacity: 4400 mAh last full capacity: 4400 mAh battery technology: rechargeable design voltage: 11100 mV design capacity warning: 300 mAh design capacity low: 132 mAh cycle count: 0 capacity granularity 1: 32 mAh capacity granularity 2: 32 mAh model number: BAT1 serial number: 11 battery type: 11 OEM info: 11
As you can see, ACPI is well aware that the battery is present and its infomation
Where you sure this is the output of state file? Because its look like to output from the info file. The state file have a line "remaining capacity:"
look
cat /proc/acpi/battery/BAT0/state
present: yes
capacity state: ok
charging state: charged
present rate: 0 mA
remaining capacity: 1257 mAh
present voltage: 12377 mV
(yes, my bat is in a bad state =[)
Last edited by kazuo (2010-05-31 21:47:34)
Offline
Have you installed acpid?
As far as I remember this daemon is needed to read out the battery state.
That I do, sir:
[poul@archer ~]$ ps -Af | grep acpid
root 30 2 0 May30 ? 00:00:00 [kacpid]
root 4144 1 0 May30 ? 00:00:00 /usr/sbin/acpid
hal 4211 4162 0 May30 ? 00:00:00 hald-addon-acpi: listening on acpid socket /var/run/acpid.socket
poul 6599 5231 0 00:11 pts/1 00:00:00 grep acpid
Where you sure this is the output of state file? Because its look like to output from the info file. The state file have a line "remaining capacity:"
look
Oh yeah, that was the info file not state.
Here is the state file:
[poul@archer ~]$ cat /proc/acpi/battery/BAT1/state
present: yes
capacity state: ok
charging state: charged
present rate: unknown
remaining capacity: unknown
present voltage: 10000 mV
Arch - It's something refreshing
Offline
you should try to update the bios with the latest one from acer (actually 1.13),
battery state is now available
Offline
you should try to update the bios with the latest one from acer (actually 1.13),
battery state is now available
I updated BIOS to v1.15 - still no solution. I have, however, found out why I can't see if the battery is charged or not. Appearantly, Acer is not using the standard ACPI spec. Just look at this:
Intel ACPI Component Architecture
ASL Optimizing Compiler version 20100121 [Feb 6 2010]
Copyright (c) 2000 - 2010 Intel Corporation
Supports ACPI Specification Revision 4.0
dsdt.dsl 5231: Method (_Q0E, 0, NotSerialized)
Warning 1088 - ^ Not all control paths return a value (_Q0E)
dsdt.dsl 6596: Name (_T_0, Zero)
Remark 5111 - Use of compiler reserved name ^ (_T_0)
dsdt.dsl 6600: Name (_T_1, Zero)
Remark 5111 - Use of compiler reserved name ^ (_T_1)
dsdt.dsl 6659: Name (_T_0, Zero)
Remark 5111 - Use of compiler reserved name ^ (_T_0)
dsdt.dsl 6663: Name (_T_1, Zero)
Remark 5111 - Use of compiler reserved name ^ (_T_1)
dsdt.dsl 6831: Name (_T_0, Zero)
Remark 5111 - Use of compiler reserved name ^ (_T_0)
dsdt.dsl 6835: Name (_T_1, Zero)
Remark 5111 - Use of compiler reserved name ^ (_T_1)
dsdt.dsl 6894: Name (_T_0, Zero)
Remark 5111 - Use of compiler reserved name ^ (_T_0)
dsdt.dsl 6898: Name (_T_1, Zero)
Remark 5111 - Use of compiler reserved name ^ (_T_1)
dsdt.dsl 7777: Name (_T_0, Zero)
Remark 5111 - ^ Use of compiler reserved name (_T_0)
dsdt.dsl 7870: Name (_T_0, Zero)
Remark 5111 - ^ Use of compiler reserved name (_T_0)
dsdt.dsl 7874: Name (_T_1, Zero)
Remark 5111 - Use of compiler reserved name ^ (_T_1)
dsdt.dsl 7941: Name (_T_2, Zero)
Remark 5111 - Use of compiler reserved name ^ (_T_2)
dsdt.dsl 8008: Method (OEMN, 0, NotSerialized)
Warning 1088 - ^ Not all control paths return a value (OEMN)
dsdt.dsl 8105: Name (_T_0, Zero)
Remark 5111 - ^ Use of compiler reserved name (_T_0)
dsdt.dsl 9124: Name (_T_0, Zero)
Remark 5111 - Use of compiler reserved name ^ (_T_0)
dsdt.dsl 9152: Name (_T_1, Zero)
Remark 5111 - Use of compiler reserved name ^ (_T_1)
dsdt.dsl 9182: Name (_T_0, Zero)
Remark 5111 - ^ Use of compiler reserved name (_T_0)
dsdt.dsl 9248: Method (_WED, 1, NotSerialized)
Warning 1088 - ^ Not all control paths return a value (_WED)
dsdt.dsl 9248: Method (_WED, 1, NotSerialized)
Warning 1081 - ^ Reserved method must return a value (_WED)
dsdt.dsl 9254: Return (OEMN ())
Warning 1093 - ^ Called method may not always return a value
dsdt.dsl 9399: Method (WMBH, 3, NotSerialized)
Warning 1088 - ^ Not all control paths return a value (WMBH)
dsdt.dsl 9456: Method (WMBI, 3, NotSerialized)
Warning 1088 - ^ Not all control paths return a value (WMBI)
dsdt.dsl 9518: Method (WMBJ, 3, NotSerialized)
Warning 1088 - ^ Not all control paths return a value (WMBJ)
dsdt.dsl 9616: Name (_T_0, Zero)
Remark 5111 - ^ Use of compiler reserved name (_T_0)
dsdt.dsl 9661: Name (_T_0, Zero)
Remark 5111 - ^ Use of compiler reserved name (_T_0)
ASL Input: dsdt.dsl - 12143 lines, 396315 bytes, 5129 keywords
AML Output: dsdt.aml - 47766 bytes, 1103 named objects, 4026 executable opcodes
Compilation complete. 0 Errors, 8 Warnings, 18 Remarks, 6 Optimizations
So I properly need to make a correct DSDT table to solve my problem. However, I can't make heads or tails in the ACPI spec document, and most infomation about such a issue is highly outdated.
Arch - It's something refreshing
Offline
Pages: 1