That's regrettable, seeing as the power button is better used, IMHO, for a 'halt' command rather than a violent shutdown. Have you tried using acpi_listen and attempting to generate various events (such as closing the lid) to see what other ACPI events you can catch?
On 3/26/06, Oron Peled <[EMAIL PROTECTED]> wrote: > On Sunday, 26 בMarch 2006 19:52, Shachar Shemesh wrote: > > Save me the RTFM and tell me where to hook this so it works with fn+F4? > > I'm sure "hotplug" has something to that effect. > > As others noted, you need ACPI support. In my laptop (regretfully > an HP one), I found it far easier to catch via ACPI the *power* button > instead of the Fn-keys. So now it functions as follows: > - A short press activate my suspend2ram script. > - It is revived automatically with LID open -- probably BIOS magic). > - A few seconds press is total poweroff (normal BIOS behavior, > not configured by me). > > -- > Oron Peled Voice/Fax: +972-4-8228492 > [EMAIL PROTECTED] http://www.actcom.co.il/~oron > ICQ UIN: 16527398 > > "The future is here, it's just not evenly distributed yet." > - William Gibson > -- To necessity... and beyond! Ohad Lutzky
