HowTo HookEvents

Useful info seen on #maemo, dumped here before I forget both the info and how to find it. Please reformat, reword, and expand this page.

Really quick question, I hope: at one point I know someone posted somewhere the script that gets called when the lid is closed / device suspends. Anyone remember it?

/usr/sbin/osso-cover-open, /usr/sbin/osso-cover-closed

(as of the newest firmware 2006-02-20 there is osso-mmc-cover-open/close which applies to the mmc, but nothing for the cover itself)

there's a bunch of event scripts named osso-{something}