>------------------------------------------------------------
>
> I made a (IMHO) better version called pmpolicy, based on different
> principles. More information is available at
>
> http://john.snoop.dk/programs/linux/offbutton/
To implement off-button you only need the APM_IOC_REJECT ioctl and apmd 3.0
and a slight change to the apm_proxy script.
It must be changed to execute "poweroff" and return a value of 1 ( so that
the apmd/kernel/apm-driver reject the event ) in case of "system suspend" event.
The only problem might be synchronization ( "poweroff" might kill apmd
before is sends the REJECT call to kernel ).
-- David Balazic -------------- "Be excellent to each other." - Bill & Ted - - - - - - - - - - - - - - - - - - - - - - - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/