David Balazic writes: > The newer version has among other things support for > the APM_IOC_REJECT ioctl which is useful for example > when implementing "run /sbin/shutdown -h when the power > button is pressed". > > While isn't this merged into the official kernel ? The maintainer hasn't the time to do it. He promised me he would in February, when I telephone, but hasn't bothered to do anything AFAICS. I hacked together the following patch for it a while ago, which updated APM_IOC_REJECT for slightly more recent kernels (be warned, I think I made some mistakes)