I'm running Ubuntu 9.04 on a Compaq Presario V5000 (piece of crap) and when I try to resume from standby, it's forgetting to turn my screen back on. I found a bash script somewhere a long time ago that actually fixed this problem, but I can't remember where.
So I was wondering if you guys could point me in the right direction or maybe show me how to write a quick bash script to do this.
Update: I have tried the following script:
#!/bin/sh
grep -q open /proc/acpi/button/lid/*/state
if [ $? = 0 ]
then
# lid is open; turn on the screen
radeontool light on
fi
Which I placed in a folder called: /etc/acpi/local/ and titled the script lid.sh.pre, but it doesn't seem to get called after standby. If I just type:
lucas@ubuntu:~$ radeontool light off
lucas@ubuntu:~$ radeontool light on
It will turn my screen off, then back on. So I'm thinking that maybe my script isn't getting called.

/etc/acpi/resume.d/50-turn-on-backlight.shas Ryan suggested in his edit? – ~quack Dec 5 at 19:05chmod +x) – Ryan Thompson Dec 14 at 23:00