You are not logged in.

#1 2009-02-04 17:57:46

ciropom
Member
Registered: 2008-12-23
Posts: 26

battery status is always to 0

Hi at all!

I've a problem with acpi and my battery status (i think that the problem is acpi)

here is my loaded kernel module for acpi

[ciropom@cippanippa ~]$ ls -l /lib/modules/$(uname -r)/kernel/drivers/acpi
total 252
-rw-r--r-- 1 root root  8023 Jan 25 11:16 ac.ko
-rw-r--r-- 1 root root 22500 Jan 25 11:16 asus_acpi.ko
-rw-r--r-- 1 root root 15915 Jan 25 11:16 battery.ko
-rw-r--r-- 1 root root 10720 Jan 25 11:16 button.ko
-rw-r--r-- 1 root root  7148 Jan 25 11:16 container.ko
-rw-r--r-- 1 root root  8402 Jan 25 11:16 fan.ko
-rw-r--r-- 1 root root  9575 Jan 25 11:16 pci_slot.ko
-rw-r--r-- 1 root root 51931 Jan 25 11:16 processor.ko
-rw-r--r-- 1 root root 16924 Jan 25 11:16 sbs.ko
-rw-r--r-- 1 root root  8696 Jan 25 11:16 sbshc.ko
-rw-r--r-- 1 root root 23979 Jan 25 11:16 thermal.ko
-rw-r--r-- 1 root root 12652 Jan 25 11:16 toshiba_acpi.ko
-rw-r--r-- 1 root root 24448 Jan 25 11:16 video.ko
-rw-r--r-- 1 root root 10513 Jan 25 11:16 wmi.ko

I don't be able to understand why in my LXDE (Desktop environment as Gnome)
the "battery monitor" applet sign always that my battery is 0% charged...

Have you some advice?

Thank you for all your help...
big_smile

Offline

#2 2009-02-05 03:00:20

kludge
Member
Registered: 2008-08-03
Posts: 294

Re: battery status is always to 0

you gave a listing of all the *available* acpi modules... but what do you actually have *loaded*?  please post the output of lsmod grep'd against the listing you've already posted.

also, what file is the battery applet trying to read to get the status of the battery?

what's the output of 'acpi -V' at the cli?


[23:00:16]    dr_kludge | i want to invent an olfactory human-computer interface, integrate it into the web standards, then produce my own forked browser.
[23:00:32]    dr_kludge | can you guess what i'd call it?
[23:01:16]    dr_kludge | nosilla.
[23:01:32]    dr_kludge | i really should be going to bed.  i'm giggling madly about that.

Offline

#3 2009-02-05 10:40:09

ciropom
Member
Registered: 2008-12-23
Posts: 26

Re: battery status is always to 0

[ciropom@cippanippa ~]$ acpi -V
  AC Adapter 0: on-line
     Thermal 0: ok, 37.0 degrees C
     Cooling 0: LCD 5 of 13
     Cooling 1: Processor 0 of 7
     Cooling 2: Processor 0 of 7
[ciropom@cippanippa ~]$ lsmod         
Module                  Size  Used by
ipv6                  260084  10 
i915                   58372  2 
drm                    83880  3 i915
vmnet                  42304  13 
ppdev                   9348  0 
parport_pc             37700  0 
parport                33004  2 ppdev,parport_pc
vmblock                14756  3 
vmci                   51796  0 
vmmon                  71920  0 
hci_usb                15384  0 
bluetooth              54372  1 hci_usb
usb_storage            95552  0 
stk11xx               115588  0 
videodev               34176  1 stk11xx
v4l1_compat            15364  1 videodev
joydev                 11712  0 
snd_seq_oss            31872  0 
snd_seq_midi_event      8192  1 snd_seq_oss
snd_seq                49968  4 snd_seq_oss,snd_seq_midi_event
snd_seq_device          8204  2 snd_seq_oss,snd_seq
uhci_hcd               24592  0 
snd_hda_intel         412852  1 
snd_pcm_oss            40192  0 
snd_mixer_oss          16512  1 snd_pcm_oss
sg                     26804  0 
snd_hwdep               9092  1 snd_hda_intel
snd_pcm                70020  2 snd_hda_intel,snd_pcm_oss
snd_timer              21384  2 snd_seq,snd_pcm
snd_page_alloc         10120  2 snd_hda_intel,snd_pcm
ehci_hcd               36876  0 
intel_agp              27580  1 
agpgart                31572  3 drm,intel_agp
video                  18576  0 
snd                    50852  11 snd_seq_oss,snd_seq,snd_seq_device,snd_hda_intel,snd_pcm_oss,snd_mixer_oss,snd_hwdep,snd_pcm,snd_timer
soundcore               8160  1 snd
iTCO_wdt               12836  0 
iTCO_vendor_support     4996  1 iTCO_wdt
psmouse                55828  0 
serio_raw               7172  0 
pcspkr                  4352  0 
usbcore               136848  6 hci_usb,usb_storage,stk11xx,uhci_hcd,ehci_hcd
output                  4608  1 video
tpm_infineon           10664  0 
tpm                    14912  1 tpm_infineon
tpm_bios                7680  1 tpm
thermal                17180  0 
processor              41388  3 thermal
fuse                   52892  0 
asus_laptop            17912  0 
fan                     6276  0 
evdev                  11296  5 
button                  7824  0 
[b]battery                12036  0 [/b]
ac                      6020  0 
arc4                    3712  2 
ecb                     4608  2 
iwl3945                92292  0 
iwlcore                82688  1 iwl3945
mac80211              163880  2 iwl3945,iwlcore
rfkill                 11724  3 iwl3945,iwlcore
led_class               5508  3 asus_laptop,iwl3945,iwlcore
cfg80211               38296  3 iwl3945,iwlcore,mac80211
r8169                  33924  0 
mii                     6528  1 r8169
rtc_cmos               12332  0 
rtc_core               17564  1 rtc_cmos
rtc_lib                 4480  1 rtc_core
reiserfs              231424  1 
sd_mod                 26904  3 
sr_mod                 16708  0 
cdrom                  35360  1 sr_mod
ata_piix               23300  0 
ahci                   30988  2 
ata_generic             6788  0 
pata_acpi               6016  0 
libata                158112  4 ata_piix,ahci,ata_generic,pata_acpi
scsi_mod              102164  5 usb_storage,sg,sd_mod,sr_mod,libata

sorry neutral

Offline

#4 2009-02-05 18:18:35

kludge
Member
Registered: 2008-08-03
Posts: 294

Re: battery status is always to 0

[ciropom@cippanippa ~]$ lsmod         
Module                  Size  Used by
battery                12036  0

okay, so the battery module is loaded, but...

[ciropom@cippanippa ~]$ acpi -V
  AC Adapter 0: on-line
     Thermal 0: ok, 37.0 degrees C
     Cooling 0: LCD 5 of 13
     Cooling 1: Processor 0 of 7
     Cooling 2: Processor 0 of 7

acpi doesn't see it.  at all.  grep your dmesg output for "battery" or "BAT".


[23:00:16]    dr_kludge | i want to invent an olfactory human-computer interface, integrate it into the web standards, then produce my own forked browser.
[23:00:32]    dr_kludge | can you guess what i'd call it?
[23:01:16]    dr_kludge | nosilla.
[23:01:32]    dr_kludge | i really should be going to bed.  i'm giggling madly about that.

Offline

#5 2009-02-06 10:32:10

ciropom
Member
Registered: 2008-12-23
Posts: 26

Re: battery status is always to 0

[ciropom@cippanippa ~]$ dmesg | grep BAT
ACPI: Battery Slot [BAT0] (battery present)

this is all what my dmesg says about ACPI

[ciropom@cippanippa ~]$ dmesg | grep ACPI
 BIOS-e820: 000000007f7a0000 - 000000007f7ae000 (ACPI data)
 BIOS-e820: 000000007f7ae000 - 000000007f7f0000 (ACPI NVS)
 modified: 000000007f7a0000 - 000000007f7ae000 (ACPI data)
 modified: 000000007f7ae000 - 000000007f7f0000 (ACPI NVS)
ACPI: RSDP 000F8190, 0024 (r2 ACPIAM)
ACPI: XSDT 7F7A0100, 008C (r1 _ASUS_ Notebook  2000815 MSFT       97)
ACPI: FACP 7F7A0290, 00F4 (r3 A_M_I_ OEMFACP   2000815 MSFT       97)
ACPI: DSDT 7F7A0680, C1ED (r1  F9E00 F9E00000        0 INTL 20051117)
ACPI: FACS 7F7AE000, 0040
ACPI: APIC 7F7A0390, 005C (r1 A_M_I_ OEMAPIC   2000815 MSFT       97)
ACPI: MCFG 7F7A0430, 003C (r1 A_M_I_ OEMMCFG   2000815 MSFT       97)
ACPI: SLIC 7F7A0470, 0176 (r1 _ASUS_ Notebook  2000815 MSFT       97)
ACPI: DBGP 7F7A03F0, 0034 (r1 A_M_I_ OEMDBGP   2000815 MSFT       97)
ACPI: BOOT 7F7A05F0, 0028 (r1 A_M_I_ OEMBOOT   2000815 MSFT       97)
ACPI: ECDT 7F7A0620, 0054 (r1 A_M_I_ OEMECDT   2000815 MSFT       97)
ACPI: OEMB 7F7AE040, 0060 (r1 A_M_I_ AMI_OEM   2000815 MSFT       97)
ACPI: HPET 7F7AC870, 0038 (r1 A_M_I_ OEMHPET   2000815 MSFT       97)
ACPI: GSCI 7F7AE0A0, 2024 (r1 A_M_I_ GMCHSCI   2000815 MSFT       97)
ACPI: TCPA 7F7AC8B0, 0032 (r2 A_M_I_ TBLOEMID        1 MSFT       97)
ACPI: ATKG 7F7C3600, 8024 (r1 A_M_I_  OEMATKG  5000702 MSFT       97)
ACPI: SSDT 7F7CC100, 04E6 (r1  PmRef    CpuPm     3000 INTL 20051117)
ACPI: Local APIC address 0xfee00000
ACPI: PM-Timer IO Port: 0x808
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x00] enabled)
ACPI: LAPIC (acpi_id[0x02] lapic_id[0x01] enabled)
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.
ACPI: HPET id: 0x8086a201 base: 0xfed00000
Using ACPI (MADT) for SMP configuration information
ACPI: Core revision 20080926
ACPI: Checking initramfs for custom DSDT
ACPI FADT declares the system doesn't support PCIe ASPM, so disable it
ACPI: bus type pci registered
ACPI: EC: EC description table is found, configuring boot EC
ACPI: Interpreter enabled
ACPI: (supports S0 S1 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
PCI: MCFG area at c0000000 reserved in ACPI motherboard resources
ACPI: EC: GPE = 0x1c, I/O: command/status = 0x66, data = 0x62
ACPI: EC: driver started in poll mode
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:1f.0: quirk: region 0800-087f claimed by ICH6 ACPI/GPIO/TCO
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P0P2._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P0P3._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P0P4._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 *10 11 12)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 *5 10 12)
ACPI: PCI Interrupt Link [LNKC] (IRQs *3)
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 *5 7 10 12)
ACPI: PCI Interrupt Link [LNKE] (IRQs *6)
ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 *7 10 12)
ACPI: PCI Interrupt Link [LNKG] (IRQs 3 *4 5 6 7 10 12)
ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 6 7 *10 12)
ACPI Warning (tbutils-0217): Incorrect checksum in table [ATKG] - 8F, should be 59 [20080926]
PCI: Using ACPI for IRQ routing
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 14 devices
ACPI: ACPI bus type pnp unregistered
ata1.00: ACPI cmd f5/00:00:00:00:00:a0 filtered out
ata1.00: ACPI cmd ef/10:06:00:00:00:a0 succeeded
ata1.00: ACPI cmd ef/10:03:00:00:00:a0 filtered out
ata1.00: ACPI cmd f5/00:00:00:00:00:a0 filtered out
ata1.00: ACPI cmd ef/10:06:00:00:00:a0 succeeded
ata1.00: ACPI cmd ef/10:03:00:00:00:a0 filtered out
ACPI: EC: non-query interrupt received, switching to interrupt mode
ACPI: AC Adapter [AC0] (off-line)
ACPI: Battery Slot [BAT0] (battery present)
ACPI: Power Button (FF) [PWRF]
ACPI: Sleep Button (CM) [SLPB]
ACPI: Lid Switch [LID]
asus-laptop: Brightness ignored, must be controlled by ACPI video driver
ACPI: SSDT 7F7CB700, 0244 (r1  PmRef  Cpu0Ist     3000 INTL 20051117)
ACPI: SSDT 7F7CB9E0, 0712 (r1  PmRef  Cpu0Cst     3001 INTL 20051117)
ACPI: CPU0 (power states: C1[C1] C2[C2] C3[C3])
processor ACPI_CPU:00: registered as cooling_device0
ACPI: Processor [P001] (supports 8 throttling states)
ACPI: SSDT 7F7CB630, 00C8 (r1  PmRef  Cpu1Ist     3000 INTL 20051117)
ACPI: SSDT 7F7CB950, 0085 (r1  PmRef  Cpu1Cst     3000 INTL 20051117)
ACPI: CPU1 (power states: C1[C1] C2[C2] C3[C3])
processor ACPI_CPU:01: registered as cooling_device1
ACPI: Processor [P002] (supports 8 throttling states)
ACPI: Thermal Zone [THRM] (27 C)
ACPI: Video Device [VGA] (multi-head: yes  rom: no  post: no)

thank you..

Offline

#6 2009-02-06 16:03:18

kludge
Member
Registered: 2008-08-03
Posts: 294

Re: battery status is always to 0

well, acpi saw your battery, and saw that it's present.

do you have apcid running?   i have the following lines in /etc/acpi/handler.sh (i can't remember if i added them or if they're part of the default script):

battery)
                case "$2" in
                        BAT0)
                                case "$4" in
                                        00000000)
                                                $LOGGER "Battery: $2 $3 $4"
                                                #echo "offline" >/dev/tty5
                                        ;;
                                        00000001)
                                                $LOGGER "Battery: $2 $3 $4"
                                                #echo "online"  >/dev/tty5
                                        ;;
                                esac
                                ;;

so anytime the battery sends an acpi event, i get something like:

Feb  6 06:24:55 laura acpid: Battery: BAT0 00000080 00000001

in /var/log/messages.log.

are you seeing any of these events?

i googled the only error in your dmesg acpi output:

ACPI Warning (tbutils-0217): Incorrect checksum in table [ATKG] - 8F, should be 59 [20080926]

and the only result is this forum thread.

do you have another operating system you could try to see if the battery shows up there?

also, what make and model is your laptop?  are there knonw battery issues with it?

this is starting to look like a hardware problem.  you may have to enable acpi debugging in your kernel and recompile to get more information.  unfortunately, the kernel won't compile with acpi debugging until 2.6.28.3-ARCH is released.


[23:00:16]    dr_kludge | i want to invent an olfactory human-computer interface, integrate it into the web standards, then produce my own forked browser.
[23:00:32]    dr_kludge | can you guess what i'd call it?
[23:01:16]    dr_kludge | nosilla.
[23:01:32]    dr_kludge | i really should be going to bed.  i'm giggling madly about that.

Offline

#7 2009-02-07 13:09:58

ciropom
Member
Registered: 2008-12-23
Posts: 26

Re: battery status is always to 0

as you can see

[ciropom@cippanippa ~]$ sudo tail /var/log/messages.log 
Password: 
Feb  7 14:04:58 cippanippa NetworkManager: <info>  Activation (wlan0) Finish handler scheduled.
Feb  7 14:04:58 cippanippa NetworkManager: <info>  Activation (wlan0) Stage 5 of 5 (IP Configure Commit) complete.
Feb  7 14:04:58 cippanippa NetworkManager: <info>  Activation (wlan0) successful, device activated.
Feb  7 14:05:16 cippanippa logger: ACPI action undefined: AC0
Feb  7 14:05:16 cippanippa logger: ACPI group/action undefined: hotkey / ATKD
Feb  7 14:05:16 cippanippa logger: ACPI group/action undefined: processor / P001
Feb  7 14:05:16 cippanippa logger: ACPI group/action undefined: processor / P002
Feb  7 14:05:26 cippanippa NET: Registered protocol family 10
Feb  7 14:05:26 cippanippa lo: Disabled Privacy Extensions
Feb  7 14:05:26 cippanippa ADDRCONF(NETDEV_UP): eth0: link is not ready

nothing... only "action undefined"...
I've updated the configuration script "handler.sh" as in your advice and then I've rebooted my laptop,
but nothing bad or good seems to happen..

sad

Offline

#8 2009-02-07 15:10:00

kludge
Member
Registered: 2008-08-03
Posts: 294

Re: battery status is always to 0

this really sonds like a hardware problem, most likely with your battery itself or with the battery interface/power control hardware in the laptop.  i had an hp laptop once for which i bought a new battery, convinced the original was dead, only to discover the brand-new one worked no better.  turned out that the thermal sensor in the power control hardware was bad, always reading the battery temp at 315 degrees fahrenheit and refusing to charge the battery because it was "too hot."

i only figured this out after finding a set of hardware diagnostics on an old bootdisk for hp laptops.  see if your laptop's manufacturer ever offered something similar and make sure the hardware actually works.

p.s.: the 'action undefined' messages aren't really errors, they just mean that handler.sh isn't setup to do anything in particular with that event, so it triggers the fall-through case.  in fact, it's a good sign because it means that acpi is generating events and acpid is catching them.

Last edited by kludge (2009-02-07 15:13:02)


[23:00:16]    dr_kludge | i want to invent an olfactory human-computer interface, integrate it into the web standards, then produce my own forked browser.
[23:00:32]    dr_kludge | can you guess what i'd call it?
[23:01:16]    dr_kludge | nosilla.
[23:01:32]    dr_kludge | i really should be going to bed.  i'm giggling madly about that.

Offline

#9 2009-02-07 15:30:08

ciropom
Member
Registered: 2008-12-23
Posts: 26

Re: battery status is always to 0

ok...... thank you so much for your help big_smile

Offline

Board footer

Powered by FluxBB