Most recent kernel where this bug did not occur: Distribution: Debian Using 2.6.21 or 2.6.22 kernel this is the listing of /proc/acpi/battery: nml$ ls /proc/acpi/battery BAT1/ Using 2.6.18 this is the result: nml$ ls /proc/acpi/battery BAT0/ BAT1/ dmesg of 2.6.22.1: Linux version 2.6.22.1 (root@khuspo) (gcc version 4.1.3 20070629 (prerelease) (Debian 4.1.2-13)) #1 PREEMPT Thu Jul 12 09:47:57 WEST 2007 BIOS-provided physical RAM map: BIOS-e820: 0000000000000000 - 000000000009fc00 (usable) BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved) BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved) BIOS-e820: 0000000000100000 - 000000004ff40000 (usable) BIOS-e820: 000000004ff40000 - 000000004ff50000 (ACPI data) BIOS-e820: 000000004ff50000 - 0000000050000000 (ACPI NVS) 383MB HIGHMEM available. 896MB LOWMEM available. Entering add_active_range(0, 0, 327488) 0 entries of 256 used Zone PFN ranges: DMA 0 -> 4096 Normal 4096 -> 229376 HighMem 229376 -> 327488 early_node_map[1] active PFN ranges 0: 0 -> 327488 On node 0 totalpages: 327488 DMA zone: 32 pages used for memmap DMA zone: 0 pages reserved DMA zone: 4064 pages, LIFO batch:0 Normal zone: 1760 pages used for memmap Normal zone: 223520 pages, LIFO batch:31 HighMem zone: 766 pages used for memmap HighMem zone: 97346 pages, LIFO batch:31 DMI 2.3 present. ACPI: RSDP 000F5DF0, 0014 (r0 ACPIAM) ACPI: RSDT 4FF40000, 002C (r1 A M I OEMRSDT 7000501 MSFT 97) ACPI: FACP 4FF40200, 0081 (r1 A M I OEMFACP 7000501 MSFT 97) ACPI: DSDT 4FF40400, 6814 (r1 1ABSP 1ABSP001 1 MSFT 2000001) ACPI: FACS 4FF50000, 0040 ACPI: OEMB 4FF50040, 0053 (r1 A M I OEMBIOS 7000501 MSFT 97) ACPI: PM-Timer IO Port: 0x408 Allocating PCI resources starting at 60000000 (gap: 50000000:b0000000) Built 1 zonelists. Total pages: 324930 Kernel command line: root=/dev/hda2 ro Found and enabled local APIC! mapped APIC to ffffd000 (fee00000) Enabling fast FPU save and restore... done. Enabling unmasked SIMD FPU exception support... done. Initializing CPU#0 PID hash table entries: 4096 (order: 12, 16384 bytes) Detected 1600.173 MHz processor. Console: colour VGA+ 80x25 Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) Memory: 1294296k/1309952k available (2177k kernel code, 14444k reserved, 704k data, 188k init, 392448k highmem) virtual kernel memory layout: fixmap : 0xfffaa000 - 0xfffff000 ( 340 kB) pkmap : 0xff800000 - 0xffc00000 (4096 kB) vmalloc : 0xf8800000 - 0xff7fe000 ( 111 MB) lowmem : 0xc0000000 - 0xf8000000 ( 896 MB) .init : 0xc03d4000 - 0xc0403000 ( 188 kB) .data : 0xc03207e5 - 0xc03d0824 ( 704 kB) .text : 0xc0100000 - 0xc03207e5 (2177 kB) Checking if this processor honours the WP bit even in supervisor mode... Ok. SLUB: Genslabs=22, HWalign=64, Order=0-1, MinObjects=4, CPUs=1, Nodes=1 Calibrating delay using timer specific routine.. 3201.19 BogoMIPS (lpj=1600599) Security Framework v1.0.0 initialized Capability LSM initialized Mount-cache hash table entries: 512 CPU: After generic identify, caps: afe9fbbf 00000000 00000000 00000000 00000180 00000000 00000000 CPU: L1 I cache: 32K, L1 D cache: 32K CPU: L2 cache: 2048K CPU: After all inits, caps: afe9fbbf 00000000 00000000 00002040 00000180 00000000 00000000 Intel machine check architecture supported. Intel machine check reporting enabled on CPU#0. Compat vDSO mapped to ffffe000. CPU: Intel(R) Pentium(R) M processor 1.60GHz stepping 06 Checking 'hlt' instruction... OK. ACPI: Core revision 20070126 ACPI: setting ELCR to 0200 (from 0c30) NET: Registered protocol family 16 ACPI: bus type pci registered PCI: PCI BIOS revision 2.10 entry at 0xf0031, last bus=2 PCI: Using configuration type 1 Setting up standard PCI resources ACPI Error (evregion-0316): No handler for Region [ECOR] (c1acd9d8) [EmbeddedControl] [20070126] ACPI Error (exfldio-0289): Region EmbeddedControl(3) has no handler [20070126] ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.SBRG.EC0_.ACS_] (Node c1acbc00), AE_NOT_EXIST ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.AC__._INI] (Node c1acbfc0), AE_NOT_EXIST ACPI: Interpreter enabled ACPI: (supports S0 S3 S4 S5) ACPI: Using PIC for interrupt routing ACPI Error (evregion-0316): No handler for Region [ECOR] (c1acd9d8) [EmbeddedControl] [20070126] ACPI Error (exfldio-0289): Region EmbeddedControl(3) has no handler [20070126] ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.SBRG.EC0_.BATS] (Node c1acbc18), AE_NOT_EXIST ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.BAT0._STA] (Node c1ae2408), AE_NOT_EXIST ACPI: PCI Root Bridge [PCI0] (0000:00) PCI: Probing PCI hardware (bus 00) PCI: Enabled i801 SMBus device PCI quirk: region 0400-047f claimed by ICH4 ACPI/GPIO/TCO PCI quirk: region 0500-053f claimed by ICH4 GPIO PCI: Transparent bridge - 0000:00:1e.0 PCI: Bus #03 (-#06) is hidden behind transparent bridge #02 (-#02) (try 'pci=assign-busses') Please report the result to linux-kernel to fix this permanently PCI: Bus #07 (-#0a) is hidden behind transparent bridge #02 (-#02) (try 'pci=assign-busses') Please report the result to linux-kernel to fix this permanently 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 Link [LNKA] (IRQs 3 4 5 6 7 10 *11 12) ACPI: PCI Interrupt Link [LNKB] (IRQs 3 *4 5 6 7 11 12) ACPI: PCI Interrupt Link [LNKC] (IRQs *10 12) ACPI: PCI Interrupt Link [LNKD] (IRQs *5 6 10) ACPI: PCI Interrupt Link [LNKE] (IRQs 6 11) *0, disabled. ACPI: PCI Interrupt Link [LNKF] (IRQs 3 7) *0, disabled. ACPI: PCI Interrupt Link [LNKG] (IRQs 4 7) *0, disabled. ACPI: PCI Interrupt Link [LNKH] (IRQs 4 6 *10 12) Linux Plug and Play Support v0.97 (c) Adam Belay pnp: PnP ACPI init ACPI: bus type pnp registered pnp: PnP ACPI: found 15 devices ACPI: ACPI bus type pnp unregistered PCI: Using ACPI for IRQ routing PCI: If a device doesn't work, try "pci=routeirq". If it helps, post a report NET: Registered protocol family 8 NET: Registered protocol family 20 ACPI: RTC can wake from S4 pnp: 00:09: ioport range 0x480-0x48f has been reserved pnp: 00:09: ioport range 0x5c0-0x5cf has been reserved Time: tsc clocksource has been installed. pnp: 00:0c: iomem range 0xffc00000-0xffefffff has been reserved pnp: 00:0d: ioport range 0x540-0x55f has been reserved pnp: 00:0d: ioport range 0x400-0x47f has been reserved pnp: 00:0d: ioport range 0x480-0x48f has been reserved pnp: 00:0d: ioport range 0x500-0x53f has been reserved pnp: 00:0d: ioport range 0x4c0-0x4cf has been reserved pnp: 00:0d: iomem range 0xfec00000-0xfec00fff has been reserved pnp: 00:0d: iomem range 0xfee00000-0xfee00fff has been reserved pnp: 00:0e: iomem range 0x0-0x9ffff could not be reserved pnp: 00:0e: iomem range 0xc0000-0xdffff could not be reserved pnp: 00:0e: iomem range 0xe0000-0xfffff could not be reserved pnp: 00:0e: iomem range 0x100000-0x4fffffff could not be reserved PCI: Bridge: 0000:00:01.0 IO window: d000-dfff MEM window: ff800000-ff8fffff PREFETCH window: ce900000-de9fffff PCI: Bus 3, cardbus bridge: 0000:02:01.0 IO window: 00001000-000010ff IO window: 00001400-000014ff PREFETCH window: 64000000-67ffffff MEM window: 68000000-6bffffff PCI: Bus 7, cardbus bridge: 0000:02:01.1 IO window: 00001800-000018ff IO window: 00001c00-00001cff PREFETCH window: 6c000000-6fffffff MEM window: 70000000-73ffffff PCI: Bridge: 0000:00:1e.0 IO window: 1000-1fff MEM window: ff900000-ff9fffff PREFETCH window: dea00000-deafffff PCI: Enabling device 0000:00:1e.0 (0106 -> 0107) PCI: Setting latency timer of device 0000:00:1e.0 to 64 PCI: Enabling device 0000:02:01.0 (0000 -> 0003) ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 4 PCI: setting IRQ 4 as level-triggered ACPI: PCI Interrupt 0000:02:01.0[A] -> Link [LNKB] -> GSI 4 (level, low) -> IRQ 4 PCI: Setting latency timer of device 0000:02:01.0 to 64 ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 11 PCI: setting IRQ 11 as level-triggered ACPI: PCI Interrupt 0000:02:01.1[B] -> Link [LNKA] -> GSI 11 (level, low) -> IRQ 11 PCI: Setting latency timer of device 0000:02:01.1 to 64 NET: Registered protocol family 2 IP route cache hash table entries: 32768 (order: 5, 131072 bytes) TCP established hash table entries: 131072 (order: 8, 1048576 bytes) TCP bind hash table entries: 65536 (order: 6, 262144 bytes) TCP: Hash tables configured (established 131072 bind 65536) TCP reno registered highmem bounce pool size: 64 pages VFS: Disk quotas dquot_6.5.1 Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) io scheduler noop registered (default) Boot video device is 0000:01:00.0 isapnp: Scanning for PnP cards... isapnp: No Plug & Play device found Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled ACPI: PCI Interrupt 0000:00:1f.6[B] -> Link [LNKB] -> GSI 4 (level, low) -> IRQ 4 ACPI: PCI interrupt for device 0000:00:1f.6 disabled RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2 ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx ICH4: IDE controller at PCI slot 0000:00:1f.1 PCI: Enabling device 0000:00:1f.1 (0005 -> 0007) ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 10 PCI: setting IRQ 10 as level-triggered ACPI: PCI Interrupt 0000:00:1f.1[A] -> Link [LNKC] -> GSI 10 (level, low) -> IRQ 10 ICH4: chipset revision 3 ICH4: not 100% native mode: will probe irqs later ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings: hda:DMA, hdb:pio ide1: BM-DMA at 0xffa8-0xffaf, BIOS settings: hdc:DMA, hdd:pio Probing IDE interface ide0... Switched to high resolution mode on CPU 0 hda: TOSHIBA MK1032GAX, ATA DISK drive hda: selected mode 0x45 ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 Probing IDE interface ide1... hdc: TOSHIBA ODD-DVD SD-R6372, ATAPI CD/DVD-ROM drive hdc: selected mode 0x42 ide1 at 0x170-0x177,0x376 on irq 15 hda: max request size: 512KiB hda: 195371568 sectors (100030 MB), CHS=16383/255/63, UDMA(100) hda: cache flushes supported hda: hda1 hda2 hda3 hda4 hdc: ATAPI 24X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache, UDMA(33) Uniform CD-ROM driver Revision: 3.20 PNP: PS/2 Controller [PNP0303:PS2K,PNP0f12:PS2M] at 0x60,0x64 irq 1,12 i8042.c: Detected active multiplexing controller, rev 1.1. serio: i8042 KBD port at 0x60,0x64 irq 1 serio: i8042 AUX0 port at 0x60,0x64 irq 12 serio: i8042 AUX1 port at 0x60,0x64 irq 12 serio: i8042 AUX2 port at 0x60,0x64 irq 12 serio: i8042 AUX3 port at 0x60,0x64 irq 12 mice: PS/2 mouse device common for all mice TCP bic registered TCP vegas registered TCP yeah registered NET: Registered protocol family 1 NET: Registered protocol family 17 Testing NMI watchdog ... OK. Using IPI Shortcut mode input: AT Translated Set 2 keyboard as /class/input/input0 kjournald starting. Commit interval 5 seconds EXT3-fs: mounted filesystem with ordered data mode. VFS: Mounted root (ext3 filesystem) readonly. Freeing unused kernel memory: 188k freed Linux agpgart interface v0.102 (c) Dave Jones agpgart: Detected an Intel 855PM Chipset. agpgart: AGP aperture is 256M @ 0xe0000000 iTCO_wdt: Intel TCO WatchDog Timer Driver v1.01 (21-Jan-2007) iTCO_wdt: Found a ICH4-M TCO device (Version=1, TCOBASE=0x0460) iTCO_wdt: initialized. heartbeat=30 sec (nowayout=0) usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb USB Universal Host Controller Interface driver v3.0 ACPI: PCI Interrupt 0000:00:1d.0[A] -> Link [LNKA] -> GSI 11 (level, low) -> IRQ 11 PCI: Setting latency timer of device 0000:00:1d.0 to 64 uhci_hcd 0000:00:1d.0: UHCI Host Controller uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 1 uhci_hcd 0000:00:1d.0: irq 11, io base 0x0000e800 usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 2 ports detected ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 5 PCI: setting IRQ 5 as level-triggered ACPI: PCI Interrupt 0000:00:1d.1[B] -> Link [LNKD] -> GSI 5 (level, low) -> IRQ 5 PCI: Setting latency timer of device 0000:00:1d.1 to 64 uhci_hcd 0000:00:1d.1: UHCI Host Controller uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 2 uhci_hcd 0000:00:1d.1: irq 5, io base 0x0000e880 usb usb2: configuration #1 chosen from 1 choice hub 2-0:1.0: USB hub found hub 2-0:1.0: 2 ports detected intel_rng: FWH not detected ACPI: PCI Interrupt 0000:00:1d.2[C] -> Link [LNKC] -> GSI 10 (level, low) -> IRQ 10 PCI: Setting latency timer of device 0000:00:1d.2 to 64 uhci_hcd 0000:00:1d.2: UHCI Host Controller uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 3 uhci_hcd 0000:00:1d.2: irq 10, io base 0x0000ec00 usb usb3: configuration #1 chosen from 1 choice hub 3-0:1.0: USB hub found hub 3-0:1.0: 2 ports detected input: PC Speaker as /class/input/input1 Real Time Clock Driver v1.12ac usb 2-1: new low speed USB device using uhci_hcd and address 2 usb 2-1: configuration #1 chosen from 1 choice ACPI: PCI Interrupt Link [LNKH] enabled at IRQ 10 ACPI: PCI Interrupt 0000:00:1d.7[D] -> Link [LNKH] -> GSI 10 (level, low) -> IRQ 10 PCI: Setting latency timer of device 0000:00:1d.7 to 64 ehci_hcd 0000:00:1d.7: EHCI Host Controller ehci_hcd 0000:00:1d.7: new USB bus registered, assigned bus number 4 ehci_hcd 0000:00:1d.7: debug port 1 PCI: cache line size of 32 is not supported by device 0000:00:1d.7 ehci_hcd 0000:00:1d.7: irq 10, io mem 0xffaffc00 ehci_hcd 0000:00:1d.7: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004 usb usb4: configuration #1 chosen from 1 choice hub 4-0:1.0: USB hub found hub 4-0:1.0: 6 ports detected Synaptics Touchpad, model: 1, fw: 4.6, id: 0x925ea1, caps: 0x80471b/0x0 input: SynPS/2 Synaptics TouchPad as /class/input/input2 usb 2-1: USB disconnect, address 2 ACPI: PCI Interrupt 0000:00:1f.5[B] -> Link [LNKB] -> GSI 4 (level, low) -> IRQ 4 PCI: Setting latency timer of device 0000:00:1f.5 to 64 NET: Registered protocol family 23 nsc-ircc, chip->init nsc-ircc, Found chip at base=0x02e nsc-ircc, driver loaded (Dag Brattli) IrDA: Registered device irda0 nsc-ircc, Found dongle: HP HSDL-1100/HSDL-2100 usb 2-1: new low speed USB device using uhci_hcd and address 3 usb 2-1: configuration #1 chosen from 1 choice usbcore: registered new interface driver hiddev input: Logitech Optical USB Mouse as /class/input/input3 input: USB HID v1.10 Mouse [Logitech Optical USB Mouse] on usb-0000:00:1d.1-1 usbcore: registered new interface driver usbhid drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver intel8x0_measure_ac97_clock: measured 50495 usecs intel8x0: clocking to 48000 tg3.c:v3.77 (May 31, 2007) ACPI: PCI Interrupt 0000:02:00.0[A] -> Link [LNKB] -> GSI 4 (level, low) -> IRQ 4 eth0: Tigon3 [partno(BCM95788A50) rev 3003 PHY(5705)] (PCI:33MHz:32-bit) 10/100/1000Base-T Ethernet 00:11:2f:a6:17:2c eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] WireSpeed[0] TSOcap[1] eth0: dma_rwctrl[763f0000] dma_mask[32-bit] Yenta: CardBus bridge found at 0000:02:01.0 [1043:1864] Yenta: ISA IRQ mask 0x0000, PCI irq 4 Socket status: 30000006 Yenta: Raising subordinate bus# of parent bus (#02) from #02 to #06 pcmcia: parent PCI bridge I/O window: 0x1000 - 0x1fff cs: IO port probe 0x1000-0x1fff: clean. pcmcia: parent PCI bridge Memory window: 0xff900000 - 0xff9fffff pcmcia: parent PCI bridge Memory window: 0xdea00000 - 0xdeafffff Yenta: CardBus bridge found at 0000:02:01.1 [1043:1864] Yenta: ISA IRQ mask 0x0000, PCI irq 11 Socket status: 30000006 Yenta: Raising subordinate bus# of parent bus (#02) from #06 to #0a pcmcia: parent PCI bridge I/O window: 0x1000 - 0x1fff cs: IO port probe 0x1000-0x1fff: clean. pcmcia: parent PCI bridge Memory window: 0xff900000 - 0xff9fffff pcmcia: parent PCI bridge Memory window: 0xdea00000 - 0xdeafffff ACPI: PCI Interrupt 0000:00:1f.6[B] -> Link [LNKB] -> GSI 4 (level, low) -> IRQ 4 PCI: Setting latency timer of device 0000:00:1f.6 to 64 MC'97 1 converters and GPIO not ready (0xff00) ACPI: PCI Interrupt 0000:00:1f.3[B] -> Link [LNKB] -> GSI 4 (level, low) -> IRQ 4 cs: IO port probe 0x100-0x3af: excluding 0x378-0x37f cs: IO port probe 0x3e0-0x4ff: excluding 0x4d0-0x4d7 cs: IO port probe 0x820-0x8ff: clean. cs: IO port probe 0xc00-0xcf7: clean. cs: IO port probe 0xa00-0xaff: clean. cs: IO port probe 0x100-0x3af: excluding 0x378-0x37f cs: IO port probe 0x3e0-0x4ff: excluding 0x4d0-0x4d7 cs: IO port probe 0x820-0x8ff: clean. cs: IO port probe 0xc00-0xcf7: clean. cs: IO port probe 0xa00-0xaff: clean. Adding 1951888k swap on /dev/hda3. Priority:-1 extents:1 across:1951888k EXT3 FS on hda2, internal journal loop: module loaded ACPI: CPU0 (power states: C1[C1] C2[C2]) ACPI: Processor [CPU1] (supports 8 throttling states) Marking TSC unstable due to: possible TSC halt in C2. Time: acpi_pm clocksource has been installed. fuse init (API version 7.8) kjournald starting. Commit interval 5 seconds EXT3 FS on hda4, internal journal EXT3-fs: mounted filesystem with ordered data mode. IA-32 Microcode Update Driver: v1.14a <tigran@aivazian.fsnet.co.uk> PM: Writing back config space on device 0000:02:00.0 at offset b (was 3ed173b, writing 17351043) PM: Writing back config space on device 0000:02:00.0 at offset 3 (was 0, writing 4010) PM: Writing back config space on device 0000:02:00.0 at offset 2 (was 2000000, writing 2000003) PM: Writing back config space on device 0000:02:00.0 at offset 1 (was 2b00000, writing 2b00106) PM: Writing back config space on device 0000:02:00.0 at offset 0 (was 3ed173b, writing 169c14e4) NET: Registered protocol family 10 lo: Disabled Privacy Extensions ADDRCONF(NETDEV_UP): eth1: link is not ready ACPI: Battery Slot [BAT1] (battery absent) ACPI: AC Adapter [AC] (on-line) input: Power Button (FF) as /class/input/input4 ACPI: Power Button (FF) [PWRF] input: Lid Switch as /class/input/input5 ACPI: Lid Switch [LID] input: Sleep Button (CM) as /class/input/input6 ACPI: Sleep Button (CM) [SLPB] input: Power Button (CM) as /class/input/input7 ACPI: Power Button (CM) [PWRB] ACPI: Thermal Zone [THRM] (61 C) tg3: eth1: Link is up at 100 Mbps, full duplex. tg3: eth1: Flow control is on for TX and on for RX. ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready Clocksource tsc unstable (delta = -128027876 ns) eth1: no IPv6 routers present It's normal for BAT1 to be absent because the slot is empty, but not for BAT0.
Please check if bug #8598 is same as yours, e.g. if patch from comment #9 helps.
Yes, it did help. It works as expected now. Sorry about the duplicate, but couldn't find the related bug (#8598) before submitting.
No problem. If you happen to open another bug in the future, attach all the big files, don't post them. *** This bug has been marked as a duplicate of bug 8598 ***