Ohayden
Group: Members
Posts: 2
Joined: June 2006 |
|
Posted: June 06 2006,00:50 |
|
Well... I had to recover the BIOS as I bought the laptop from ebay and the seller was smart enough to delete all the partitions (including the BIOS setup partition). After much searching/reading on the hp/compaq web site, I was able to get the BIOS setup program working again. I then turned off the power management and it STILL blanks the screen after 15 minutes exactly. So I resorted to my evil tactics of "just getting the job done" and came up with this script which will fake keyboard input:
flckeys.sh
Code Sample | #!/bin/bash ############################################################# # Ohayden's Keyboard Faker to keep the screen from blanking ############################################################# while [ 1 ] do /usr/X11R6/bin/xset led 3 /usr/X11R6/bin/xset -led 3 /usr/X11R6/bin/xset led 1 /usr/X11R6/bin/xset -led 1 /usr/X11R6/bin/xset led 2 /usr/X11R6/bin/xset -led 2
sleep 5m done |
Then I added it to ".xinitrc" as such:
Code Sample | /home/dsl/flckeys.sh & |
To explain the code, all it does is use xset to mimic the caps lock, scroll lock, and the number lock. On my laptop, this script will flash them from left to right in sequence every 5 minutes. By doing so, the computer thinks someone pressed a key on the keyboard and will not blank to screen.
I hope this helps someone else. Enjoy.
Ohayden
|