|Summary:||No ACPI battery info|
|Product:||ACPI||Reporter:||Tibor Nagy (nagyt)|
|Severity:||high||CC:||acpi-bugzilla, bunk, gentuu, nagyt|
|Bug Depends on:|
dmesg of the working 2.6.23 kernel
acpidump of the working 2.6.23 kernel
dmesg of the non-working 2.6.24-rc7 patched kernel
acpidumo of the non-working 2.6.24-rc7 patched kernel
Description Tibor Nagy 2008-01-11 07:01:09 UTC
Comment 1 Tibor Nagy 2008-01-11 07:04:18 UTC
I changed the severity to high. A laptop can not be used without battery information.
Comment 2 Nick 2008-01-11 08:14:51 UTC
Tibor, I used to face the same problem switching from 2.6.23 to 2.6.24 But that time I didn't enable these deprecated things: CONFIG_ACPI_PROCFS=y CONFIG_ACPI_PROCFS_POWER=y CONFIG_ACPI_PROC_EVENT=y so, I got my laptop without battery info. Are you sure your .24 kernel is built with them enabled ? Please just check.
Comment 3 Tibor Nagy 2008-01-11 09:08:02 UTC
> CONFIG_ACPI_PROCFS=y > CONFIG_ACPI_PROCFS_POWER=y > CONFIG_ACPI_PROC_EVENT=y As it can be seen in the problem description above these options are set.
Comment 4 Tibor Nagy 2008-01-11 11:07:27 UTC
The following info helps perhaps: I inserted some "printk" calls in drivers/acpi/battery.c so I could recognize that: acpi_battery_init is called and executed normally, returnes with 0. acpi_battery_add is called only in 2.6.23 but not in .24!! I must note, that the battery modul is not loaded automatically! I must load it manually, but if I build it in the kernel not as module but resident, than the functions are called as described above.
Comment 5 Tibor Nagy 2008-01-11 11:14:07 UTC
I see some suspicious line in boot.msg, there is something amout BAT0: <6>ACPI: Interpreter enabled <6>ACPI: (supports S0 S3 S4 S5) <6>ACPI: Using PIC for interrupt routing <4>ACPI Error (evregion-0316): No handler for Region [RAM_] (f7c1e9fc) [EmbeddedControl]  <4>ACPI Error (exfldio-0289): Region EmbeddedControl(3) has no handler  <4>ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.BAT0._STA] (Node f7c17b08), AE_NOT_EXIST <6>ACPI: EC: GPE = 0x1c, I/O: command/status = 0x66, data = 0x62 <6>ACPI: EC: driver started in poll mode <6>ACPI: PCI Root Bridge [PCI0] (0000:00)
Comment 6 ykzhao 2008-01-13 05:59:17 UTC
Hi, Tibor Will you please attach the output of acpidump and dmesg ? It will be great if you can attach the output of dmesg based on working kernel(2.6.23) and failing kernel. Thanks.
Comment 7 Tibor Nagy 2008-01-19 02:55:19 UTC
Created attachment 14503 [details] dmesg of the working 2.6.23 kernel
Comment 8 Tibor Nagy 2008-01-19 02:55:50 UTC
Created attachment 14504 [details] acpidump of the working 2.6.23 kernel
Comment 9 Tibor Nagy 2008-01-19 02:56:38 UTC
Created attachment 14505 [details] dmesg of the non-working 2.6.24-rc7 patched kernel
Comment 10 Tibor Nagy 2008-01-19 02:57:39 UTC
Created attachment 14506 [details] acpidumo of the non-working 2.6.24-rc7 patched kernel acpidump gives the same output on both kernels
Comment 11 Tibor Nagy 2008-01-19 02:59:24 UTC
Sorry for the delay, I was on holiday.
Comment 12 ykzhao 2008-01-20 23:22:15 UTC
Will you please try the patch in comment #8 of bug9627 and see whether the problem can be fixed by this patch? Thanks.
Comment 13 Tibor Nagy 2008-01-21 09:06:13 UTC
It seems, that the problem is solved with this patch. There is a BAT0 directory under /proc/acpi/battery. However there is a problem, what I don't understand. The KPowersave shows 2 batteries.
Comment 14 ykzhao 2008-01-21 18:01:05 UTC
HI, Tibor Thanks for the confirm. Maybe the remained problem is not related with kernel. You can open a new bug about this problem and this bug will be marked as the duplicated bug of 9627. *** This bug has been marked as a duplicate of bug 9627 ***
Comment 15 Tibor Nagy 2008-01-22 02:31:18 UTC
(In reply to comment #14) The problem that KPowersave shows 2 batteries is solved also. It seems that KPoersave gets battery info from both directrories /proc/acpi/battery and /sys/class/power_supply/ and they appear as 2 different batteries. So the solution: sitch off CONFIG_ACPI_PROCFS_POWER in .config to disable the using of deprecated directory /proc/acpi/battery. Thanks for your support.