On Sunday, 26 בMarch 2006 23:12, Ohad Lutzky wrote: > 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?
1. Yes, in the beginning I assigned it to lid closing. The drawback is that there are times when I move the laptop around (e.g: during OSDC, at other peoples offices, etc.) and having it suspend each time I shut the lid for a few seconds wasn't convenient (network disconnect, etc.) 2. After using suspend2ram for a while, I found that poweroff was rarely needed (It can be suspended to ram for 3-4 days without a single charge). 3. If I really want to poweroff, there's no need to crash the machine, just run the poweroff command. Since it's a rare occasion now, I don't miss the shortcut key for it. 4. Also the power key is very intuitive for this and is well separated on the keyboard (easy to find, but hard to hit accidentally). 5. I'm now looking for new ideas for the, now unused, lid switch... BTW: Today I just found a new idea for the ac_adapter ACPI event: whenever it get disconnected, the script start repeatedly sounding a "siren" sound -- an improvised anti-theft system (which is also controlled by a presence of a specific 'trigger' file). (Maybe i should patent this as an innovative "business method" or some such :-) -- Oron Peled Voice/Fax: +972-4-8228492 [EMAIL PROTECTED] http://www.actcom.co.il/~oron ICQ UIN: 16527398 "Linux is free. Clue is not." - Eric S. Raymond -------------------------------------------------------------------------- Haifa Linux Club Mailing List (http://www.haifux.org) To unsub send an empty message to [EMAIL PROTECTED]