battery hotplug not working
Hi,
I'm running Linux 2.6.35.4 on a Kontron COMExpress board. The device has 2 battery slots so that a user can hot swap batteries while the device is running. The problem I'm having is that battery information is never updated in /sys unless I read /proc/acpi/BAT[12]/state. When booting the device, the battery state is correctly detected by the kernel but after that it seems like nothing happens. Here's what the kernel reports at boot time: Code:
[ 0.564907] ACPI: acpi_battery_add called. Here's the content of sysfs after booting: Code:
root [ /sys/class/power_supply ]# ls -l Now, I've tried adding some printk in the drivers/acpi/battery.c source code and it seems that the acpi_battery_notify function is never called (not even at boot time). I guess this must be the problem but I really don't know where to go from here... Note: I also fiddled with the acpi_osi and acpi_os_name variables to no avail (I've tried "Linux" and "Windows 2006"). My current solution is to poke at /proc from time to time, it works but I'm forced to compile my kernel with CONFIG_ACPI_PROCFS_POWER which is marked as deprecated... Any help is welcomed! Marc |
I'm also seeing this message:
Code:
[ 2.340551] i2c /dev entries driver Code:
Name (SMBS, 0x0400) |
Disabling the i2c-i801 driver in the kernel effectively resolves the conflict but batteries still aren't updated.
Maybe related to: https://bugzilla.kernel.org/show_bug.cgi?id=12376 |
All times are GMT -5. The time now is 12:50 AM. |