Bug 8559
Summary: | no smartbattery status on Laptop | ||
---|---|---|---|
Product: | ACPI | Reporter: | John Floyd (john.floyd) |
Component: | Power-Battery | Assignee: | acpi_power-battery |
Status: | CLOSED CODE_FIX | ||
Severity: | normal | ||
Priority: | P2 | ||
Hardware: | i386 | ||
OS: | Linux | ||
Kernel Version: | 2.6.20 | Subsystem: | |
Regression: | --- | Bisected commit-id: | |
Attachments: |
acpidump output
Find SBS by SMBUS host controller HID |
Description
John Floyd
2007-05-31 15:43:49 UTC
Created attachment 11625 [details]
acpidump output
sbs driver in kernel relies on SBS having ACPI0002 HID and not REVO0002 as it is in your case. To make it work you need to replace sbs.c:129 .ids=ACPI_SBS_HID with .ids="ACPI0002,REVO0002". Note "O" is not zero in the name. Alexey, This worked quite nicely thanks. Once you described the fix it was obvious from the DSDT, and the ACPI specs. Maybe a log output that says that the HID wasnt found would be nice. I will pass this info on the Kontron people. I suppose that a module parameter is not possible to allow a load-time configuration? Otherwise this bug could be closed. John Notebooks with Smart Batteries are quite rare, but the sbs module is loaded by each distribution kernel, thus message of absent HID will do more harm than benefit. I was considering of moving a check up to the parent device -- it is smbus host controller with ids="ACPI0001,ACPI0005", as it is more needed for successful work of SBS Created attachment 11690 [details]
Find SBS by SMBUS host controller HID
John, could you please check if following patch detects your batteries?
Alex, I downloaded the latest kernel 2.6.22-rc4 and applied your patches. Success - this works nicely with no other changes to code. Thanks. Just have to wait till my distro goes to 2.6.22! Would this version back port or there a lot of changes in the rest of the acpi code? Cheers John Should work with .21, may be with some minor modifications... And with .20 with some more mods. #define ACPI_SBS_HID "ACPI0002" - .ids = ACPI_SBS_HID, + .ids = "ACPI0001,ACPI0005", Is it possible that ACPI0002 is ever present without ACPI0001 or ACPI0005? patch in comment #5 shipped in Linux-2.6.23-rc1 closed. |