You'll need to use ACPI instead of APM. You will need kernel suppoort for ACPI which is pretty starighforward (rebuild kernel with acpi modules). You can use the ospm_ modules and a script to interpret the different ospm events (power button, closed lid switch) and act upon them as you choose.
Last edited by mcleodnine; 01-08-2003 at 10:08 PM.
|