EC interrupt mode by default breaks power button and lid button

From: Gerhard Schrenk
Date: Sun Feb 05 2006 - 13:26:31 EST


Hi,

the following commit breaks power button and lid button on my centrino
notebook (MSI S260; branded as Medion SIM S2100).

|gps@medusa:~/scratch/kernel-tree$ git bisect good
|53f11d4ff8797bcceaf014e62bd39f16ce84baec is first bad commit
|diff-tree 53f11d4ff8797bcceaf014e62bd39f16ce84baec (from 02b28a33aae93a3b53068e0858d62f8bcaef60a3)
|Author: Len Brown <len.brown@xxxxxxxxx>
|Date: Mon Dec 5 16:46:36 2005 -0500
|
| [ACPI] Enable Embedded Controller (EC) interrupt mode by default
|
| "ec_intr=0" reverts to polling
| "ec_burst=" no longer exists.
|
| Signed-off-by: Len Brown <len.brown@xxxxxxxxx>
| Acked-by: Luming Yu <luming.yu@xxxxxxxxx>
|
|:040000 040000 9eec66712c68ebe372b2fb2c8d78bdc99df942ab e7e62cd09983730aee468edd4ba1cce50786b7e5 M Documentation
|:040000 040000 6e7db46918f6124f64a11f6757560078a8a27519 aa8abb1023024902300cb2e7a5bf74acd8c579e8 M drivers

With

git revert 53f11d4ff8797bcceaf014e62bd39f16ce84baec

on top of linus' tree I have no problems with power/lid buttons and my
acpid configuration.

Suspend to disk/mem (at least for some seconds/minutes thereafter) with
an unpatched kernel from linus' tree is another possibility to bring
power/lid events back to life.

On my debian (etch) system I have following acpid(?) 1.0.4-3 configuration:

|gps@medusa$ cat /etc/acpi/events/my_lid
|event=button[ /]lid
|action=/etc/acpi/actions/my_lid.sh %e

|gps@medusa:~$ cat /etc/acpi/actions/my_lid.sh
|#!/bin/sh
|# lid button pressed/released event handler
|
|# echo "lid-event" | wall
|echo platform > /sys/power/disk
|echo disk > /sys/power/state

|gps@medusa:~$ cat /etc/acpi/events/powerbtn
|event=button[ /]power
|action=/etc/acpi/actions/my_powerbtn.sh

|gps@medusa:~$ cat /etc/acpi/actions/my_powerbtn.sh
|#!/bin/sh
|# suspend to disk (hybernation) when the power button has been pressed
|# echo "power-button-event" | wall
|echo mem > /sys/power/state

-- Gerhard
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/