![]() | |||||||||||||
Messages in this thread Patch in this message |
* Yu, Luming <luming.yu@intel.com> [2006-02-10 00:37]: > It's interesting. Could you file a bug in ACPI category on > bugzilla.kernel.org? http://bugzilla.kernel.org/show_bug.cgi?id=6049 BTW with ec_initr=1 I cannot toggle the hardware based rf_kill (for ipw2200). But with ec_initr=0 I can toggle it. This is reflected by the blue "WLAN" led and /sys/devices/pci0000:00/0000:00:1e.0/0000:01:09.0/rf_kill > BTW, does battery work? Mmmh. I see interrupt 9 "IO-APIC-edge acpi" in /proc/interrupts increase for ec_intr=0. But it seems to increase all the time so I'm not sure if it's triggered by battery (un)plug events. However I cannot see any acpid-events in /var/log/acpid with ec_initr=0 when (un)plugging the battery. (battery was present and correctly detected on boot.) For ec_intr=1 interrupt 9 "IO-APIC-edge acpi in /proc/interrupts is definitely always constant to 1. No acpid-events, too. Interestingly the following battery problem is independant of ec_intr: /proc/acpi/battery/BAT1/{info,state} shows only sensible battery data, if the battery was **present at boot time**. When unplugging the battery it still says "present: yes" and /proc/acpi/battery/BAT1/info does not change at all. /proc/acpi/battery/BAT1/state does change like this: --- ec1-plugged-state 2006-02-10 04:40:54.000000000 +0100 +++ ec1-unplugged-state 2006-02-10 04:42:31.000000000 +0100 @@ -1,6 +1,6 @@ present: yes capacity state: ok -charging state: charging -present rate: 1930 mA -remaining capacity: 2433 mAh -present voltage: 16202 mV +charging state: charged +present rate: unknown +remaining capacity: unknown +present voltage: 10000 mV If the battery was **not present at boot time** and is plugged in *after* booting the system, it will never be detected by /proc/acpi/battery/BAT1/{info,state}. It always says "present: no". With Kernel v2.6.15 compiling the acpi drivers as modules, i.e. CONFIG_ACPI_BATTERY=m and same fo other acpi drivers helps. But I have to $ rmmod battery $ modprobe battery first. No chance with statically compiled acpi-drivers. :( -- Gerhard - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ | ||||||||||||
| Last update: 2006-02-10 05:20 [from the cache] ©2003-2008 | |||||||||||||