Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Since whenever my laptop screen resumes sleeping (i.e. wakes up from screensaving) some settings are reset, such as keyboard backlight, I'd like to run some scripts each time this happens. I'm using gnome 3 with fedora 17 by the way.

When researching this issue I came across pm-utils which allows one to hook anything to events handled by pm-utils but it seems to me monitor sleeping (i.e. screensaving) is not one of them. Looks like pm-utils only handles suspend and hybernate.

For the keyboard backlight I tried to chmod 444 the file /sys/devices/platform/samsung/leds/samsung::kbd_backlight/brightness so that it can not be written to (I have a samsung laptop) but that didn't help either. After the screen wakes up from being blank the new settings appear in it again.

Is there a way to hook up custom programs to screensaver?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

It turns out upowerd is the process which writes to the brightness file, so by editing its configuration files keyboard backlight adjustment can be disabled.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.