Bug 9730
Summary: | No ACPI battery info | ||
---|---|---|---|
Product: | ACPI | Reporter: | Tibor Nagy (nagyt) |
Component: | Power-Battery | Assignee: | ykzhao (yakui.zhao) |
Status: | CLOSED DUPLICATE | ||
Severity: | high | CC: | acpi-bugzilla, bunk, gentuu, nagyt |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.24-rc7 | Subsystem: | |
Regression: | Yes | Bisected commit-id: | |
Bug Depends on: | |||
Bug Blocks: | 9243 | ||
Attachments: |
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
I changed the severity to high. A laptop can not be used without battery information. 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. > 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.
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. 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] [20070126] <4>ACPI Error (exfldio-0289): Region EmbeddedControl(3) has no handler [20070126] <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) 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. Created attachment 14503 [details]
dmesg of the working 2.6.23 kernel
Created attachment 14504 [details]
acpidump of the working 2.6.23 kernel
Created attachment 14505 [details]
dmesg of the non-working 2.6.24-rc7 patched kernel
Created attachment 14506 [details]
acpidumo of the non-working 2.6.24-rc7 patched kernel
acpidump gives the same output on both kernels
Sorry for the delay, I was on holiday. Will you please try the patch in comment #8 of bug9627 and see whether the problem can be fixed by this patch? Thanks. 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. 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 *** (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. |