hooking into wake-from-standby and hooking into unlock-screen are very different things. also, this is very likely something that will have changed between 9.10 and 10.04 -- if you're definitely migrating soon, look for 10.04 solutions. (at least, this is true in the Ubuntu/Gnome world. maybe Ubuntu/KDE is saner, but i doubt it..)
–
quack quixoteMay 11 '10 at 15:52

2 Answers
2

Using ACPI, you can configure scripts to run as certain events are triggered by the laptop. I used to run a script to reload errant network drivers after a restored from sleep. No idea if you have ACPI on your machine, or if you are using acpid, but thought I'd throw the suggestion out there.

Triggering off of a screen unlock is an entirely different thing and ACPI wouldn't apply there.