----- Original Message -----
I need to run a script that fixes a problem with the backlight on my laptop..
The script works when I suspend and resume using pm-suspend from the command line, but it does not work when I press the power button to suspend or when I close the laptop lid..
Where are the event scripts for these events handled in the file system.. I've tried to look for gnome-power-manager scripts and acpi scripts, but I can't seem to find any information.
Hi Kevin,
on F18 the suspend/resume is handled by systemd and pm-utils scripts are no more called. There was filled bug about it [1], but it was rejected by systemd folks. Now you can put your scripts to /usr/lib/systemd/system-sleep/, see 'systemctl help systemd-suspend.service' for more information, hope this helps
regards
Jaroslav