From:
[email protected]
Package: laptop-mode-tools
Version: 0.99-2
Severity: important
Hello,
I wandered why laptop-mode-tools was not working. In fact my ACPI may be
buggy since it does not generate (at least acpid does not see them)
ac_adapter events when I plug or unplug my AC power cable.
All acpid sees is:
[Fri Aug 20 13:08:05 2004] received event "battery BAT1 00000080 00000001"
[Fri Aug 20 13:08:05 2004] executing action "/etc/acpi/actions/lm_battery.sh battery BAT1 00000080 00000001"
[Fri Aug 20 13:08:05 2004] BEGIN HANDLER MESSAGES
[Fri Aug 20 13:08:05 2004] END HANDLER MESSAGES
[Fri Aug 20 13:08:05 2004] action exited with status 0
[Fri Aug 20 13:08:05 2004] completed event "battery BAT1 00000080 00000001"
I propose this patch but it may not be the correct solution:
--- lm_battery.sh 2004-08-18 20:30:16.000000000 +0200
+++ lm_battery.sh 2004-08-20 13:14:20.000000000 +0200
@@ -2,6 +2,10 @@
test -f /usr/sbin/laptop_mode || exit 0
+# Call /etc/acpi/actions/lm_ac_adapter.sh since no ACPI event is
+# generated for this one
+/etc/acpi/actions/lm_ac_adapter.sh $@
+
# Automatically disable laptop mode when the battery almost runs out.
BATT_INFO=/proc/acpi/battery/$2/state
The batteryi.* event is supposed to occur when the battery is low?
And the ac_adapter when the power cord is plugged/unplugged?
Maybe I should try to debug my ACPI bios. But it will not solve the
problem for other users of Acer TravelMate 430 laptops.
Bye,
-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.8.1
Locale: LANG=fr_FR, LC_CTYPE=fr_FR
Versions of packages laptop-mode-tools depends on:
ii powermgmt-base 1.21 Common utils and configs for power
-- no debconf information
--
To UNSUBSCRIBE, email to