@mpw You can use a similar script to reset the screen brightness on wakeup. It would look something like this:
Code:
#!/bin/bash
case "$1" in
thaw | resume)
echo X > /sys/class/backlight/acpi_video0/brightness
;;
esac
...now, to figure out the X value (unless you already know), change screen brightness with the keybard, and look at outputs of
Code:
cat /sys/class/backlight/acpi_video0/brightness
Finally, create a file named 99-brightness in /etc/pm/sleep.d/, make it executable, and you are good to go.
Bookmarks