From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750886AbWBES2T (ORCPT ); Sun, 5 Feb 2006 13:28:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750884AbWBES2T (ORCPT ); Sun, 5 Feb 2006 13:28:19 -0500 Received: from mail.gmx.de ([213.165.64.21]:43222 "HELO mail.gmx.net") by vger.kernel.org with SMTP id S1750863AbWBES2S (ORCPT ); Sun, 5 Feb 2006 13:28:18 -0500 X-Authenticated: #7534793 Date: Sun, 5 Feb 2006 19:04:13 +0100 From: Gerhard Schrenk To: Len Brown Cc: Luming Yu , linux-kernel@vger.kernel.org Subject: EC interrupt mode by default breaks power button and lid button Message-ID: <20060205180412.GA4340@mailhub.uni-konstanz.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: mutt-ng/devel-r655 (Debian) X-Y-GMX-Trusted: 0 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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 |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 | Acked-by: Luming Yu | |: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