You are not logged in.

#1 2007-05-07 00:05:57

hjorthboggild
Member
From: Denmark
Registered: 2005-11-05
Posts: 89

Since kernel 2.6.21 - acpi doesn't recognize my battery

Hi,

Since upgrading to kernel 2.6.21 my battery is no longer recognized. Usually in /proc/acpi/battery/ I have two folders: BAT0 and BAT1.
With kernel 2.6.21 this has changed so that I now only have /proc/acpi/batter/BAT1, which represents a battery slot where there is no battery. Where did BAT0 go?

The consequence is that gnome-power-manager now thinks that my laptop has no battery present. Reverting to kernel 2.6.20 solves the problem

Kind regards,
Simon

Offline

#2 2007-05-07 00:48:15

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

Re: Since kernel 2.6.21 - acpi doesn't recognize my battery

Inspect the boot logs. It is very strange that it names the slot BAT1 if it does not see a BAT0. May be you can find in the logs an error concerning BAT0.


Mortuus in anima, curam gero cutis

Offline

#3 2007-05-07 00:55:25

pelle.k
Member
From: Åre, Sweden (EU)
Registered: 2006-04-30
Posts: 667

Re: Since kernel 2.6.21 - acpi doesn't recognize my battery

I assume you've read the news on the front page (which you should always do, before updating core components. if you didn't, shame on you...)?

kernel 2.6.20.7 acpi changes + alsa bump to 1.0.14rc3

Hi folks,
the new kernel has acpi modules as much modularized as possible, it was requested due to some people having problems with the monitoring modules in the kernel.

I have written a small wiki about the acpi modules, you need to add them to your MODULES=() array in rc.conf.

http://wiki.archlinux.org/index.php/Acpi_modules

This also applies to upcoming kernels, and thus also 2.6.21.
You say reverting to kernel 2.6.20 solves the problem, please tell us what release?


"Your beliefs can be like fences that surround you.
You must first see them or you will not even realize that you are not free, simply because you will not see beyond the fences.
They will represent the boundaries of your experience."

SETH / Jane Roberts

Offline

#4 2007-05-07 08:56:38

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

Re: Since kernel 2.6.21 - acpi doesn't recognize my battery

If one battery slot is seen, I guess that the modules are loaded. verify this with lsmod.


Mortuus in anima, curam gero cutis

Offline

#5 2007-05-07 14:49:26

hjorthboggild
Member
From: Denmark
Registered: 2005-11-05
Posts: 89

Re: Since kernel 2.6.21 - acpi doesn't recognize my battery

Yes, I did notice the message about acpi being modularized since kernel 2.6.20.7. The kernel that I reverted to was kernel 2.6.20.10.

I get the following message about batteries from /var/log/messages.log after a boot up (cat /var/log/messages.log |grep BAT):

May  7 16:29:55 archlinux ACPI: Battery Slot [BAT0] (battery present)
May  7 16:29:55 archlinux ACPI: Battery Slot [BAT1] (battery absent)
May  7 16:32:41 archlinux logger: ACPI action undefined: BAT1
May  7 16:34:22 archlinux logger: ACPI action undefined: BAT1
May  7 16:35:48 archlinux ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.SBRG.EC0_.BATS] (Node c1af5f18), AE_NOT_EXIST
May  7 16:35:48 archlinux ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.BAT0._STA] (Node c1af83c4), AE_NOT_EXIST
May  7 16:35:48 archlinux ACPI: Battery Slot [BAT1] (battery absent)

I have the following modules loaded:

Module                  Size  Used by
ipv6                  252992  8
michael_mic             2688  4
arc4                    2176  4
ecb                     3072  4
ieee80211_crypt_tkip    10368  2
radeon                120736  3
drm                    70548  4 radeon
cpufreq_userspace       3536  0
cpufreq_powersave       1920  0
ppdev                   7428  0
rtc_sysfs               3840  0
snd_seq_oss            29056  0
snd_seq_midi_event      6528  1 snd_seq_oss
snd_seq                46800  4 snd_seq_oss,snd_seq_midi_event
snd_seq_device          6796  2 snd_seq_oss,snd_seq
lp                      9220  0
rtc_proc                3844  0
eth1394                16644  0
rtc_dev                 6792  0
usbhid                 36128  0
hid                    24448  1 usbhid
ff_memless              5256  1 usbhid
snd_pcm_oss            38816  0
snd_mixer_oss          14336  1 snd_pcm_oss
joydev                  8384  0
pcmcia                 31404  0
parport_pc             35940  1
parport                31176  3 ppdev,lp,parport_pc
irda                  113976  0
crc_ccitt               2304  1 irda
rtc_cmos                7188  0
rtc_core                7684  4 rtc_sysfs,rtc_proc,rtc_dev,rtc_cmos
rtc_lib                 3456  2 rtc_sysfs,rtc_core
ohci1394               31664  0
yenta_socket           23180  2
rsrc_nonstatic         11136  1 yenta_socket
pcmcia_core            32920  3 pcmcia,yenta_socket,rsrc_nonstatic
ieee1394               84184  2 eth1394,ohci1394
psmouse                35080  0
serio_raw               5636  0
snd_intel8x0m          14092  0
i2c_i801                7952  0
i2c_core               17664  1 i2c_i801
snd_intel8x0           28700  1
snd_ac97_codec         95396  2 snd_intel8x0m,snd_intel8x0
ac97_bus                2432  1 snd_ac97_codec
snd_pcm                68484  4 snd_pcm_oss,snd_intel8x0m,snd_intel8x0,snd_ac97_codec
snd_timer              19076  2 snd_seq,snd_pcm
snd                    44388  12 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_intel8x0m,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer
soundcore               6496  1 snd
snd_page_alloc          7816  3 snd_intel8x0m,snd_intel8x0,snd_pcm
pcspkr                  2944  0
sg                     26780  0
ehci_hcd               31116  0
shpchp                 29332  0
pci_hotplug            27720  1 shpchp
uhci_hcd               22032  0
intel_agp              21404  1
agpgart                27608  2 drm,intel_agp
tsdev                   6464  0
evdev                   8192  6
thermal                11656  0
fan                     3972  0
button                  6288  0
battery                 8580  0
ac                      4100  0
ipw2200               140744  0
ieee80211              30024  1 ipw2200
ieee80211_crypt         4992  2 ieee80211_crypt_tkip,ieee80211
tg3                   103684  0
usbcore               111752  4 usbhid,ehci_hcd,uhci_hcd
ext3                  118536  1
jbd                    54952  1 ext3
mbcache                 6916  1 ext3
sd_mod                 16640  3
sr_mod                 14372  0
cdrom                  34080  1 sr_mod
generic                 4740  0 [permanent]
piix                    9348  0 [permanent]
ide_core              111688  2 generic,piix
asus_acpi              15132  0
cpufreq_ondemand        6796  1
acpi_cpufreq            7208  1
freq_table              4240  2 cpufreq_ondemand,acpi_cpufreq
processor              24788  2 thermal,acpi_cpufreq
capability              3592  0
commoncap               5632  1 capability
ata_piix               11780  2
ata_generic             5636  0
libata                102036  2 ata_piix,ata_generic


This is the content of my /proc/acpi

[root@archlinux pkg]# ls -la /proc/acpi/
total 0
dr-xr-xr-x  11 root root 0 2007-05-07 16:35 .
dr-xr-xr-x 104 root root 0 2007-05-07 18:35 ..
dr-xr-xr-x   3 root root 0 2007-05-07 16:47 ac_adapter
-rw-r--r--   1 root root 0 2007-05-07 16:47 alarm
dr-xr-xr-x   2 root root 0 2007-05-07 16:47 asus
dr-xr-xr-x   3 root root 0 2007-05-07 16:47 battery
dr-xr-xr-x   5 root root 0 2007-05-07 16:47 button
-r--------   1 root root 0 2007-05-07 16:47 dsdt
dr-xr-xr-x   3 root root 0 2007-05-07 16:47 embedded_controller
-r--------   1 root root 0 2007-05-07 16:35 event
-r--------   1 root root 0 2007-05-07 16:47 fadt
dr-xr-xr-x   2 root root 0 2007-05-07 16:47 fan
dr-xr-xr-x   2 root root 0 2007-05-07 16:47 power_resource
dr-xr-xr-x   3 root root 0 2007-05-07 16:47 processor
dr-xr-xr-x   3 root root 0 2007-05-07 16:47 thermal_zone
-rw-r--r--   1 root root 0 2007-05-07 16:47 wakeup

the contents of /proc/acpi/battery

[root@archlinux battery]# ls /proc/acpi/battery/
BAT1


Regards,
Simon

Offline

#6 2007-05-08 14:31:09

hjorthboggild
Member
From: Denmark
Registered: 2005-11-05
Posts: 89

Re: Since kernel 2.6.21 - acpi doesn't recognize my battery

My problem seems to be related to this bug:

http://bugzilla.kernel.org/show_bug.cgi?id=8066

Can anyone confirm this?

Regards,
Simon

Offline

Board footer

Powered by FluxBB