1
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.
have you tried moving the script to
/etc/acpi/resume.d/50-turn-on-backlight.sh
as Ryan suggested in his edit? – quack quixote – 2009-12-05T19:05:47.507Yes and it still didn't work. – Kredns – 2009-12-11T17:19:03.330
Made sure the script is executable? (
chmod +x
) – Ryan C. Thompson – 2009-12-14T23:00:42.843Also, are you sure the computer is successfully resuming at all? Maybe the screen fails to come on because the computer isn't even resuming correctly. – Ryan C. Thompson – 2009-12-14T23:01:26.303
@Ryan: I made sure it was executable. Your second comment may actually be the problem. It doesn't look like the hard disk are spinning or anything. Do you know any remedies? – Kredns – 2009-12-16T01:06:45.363