Turn the display off at night
I usually fall asleep watching MythTV, but when the program ends, it leaves me with a blue screen on all night long. In addition to makeing it more difficult to sleep, it’s definitely shortening the life of my LCD monitor. Anyway, my quest was to be able to use cron to turn the monitor off (since MythTV turns dpms off and i couldn’t find a way around this.) I think i’ve finally succeeded: i just stuck this stupid little script:
#!/bin/bash
export DISPLAY=:0
/usr/bin/xset dpms force off
in a file called /usr/local/bin/monitoroff.sh
which is sudo chmod +x /usr/local/bin/monitoroff.sh
This is, of course after having run the
xset +local:
command.
I’m currently trying to figure out exactly where i need to drop that xset +local so that this is default. I need it on my notebook and my MythTV box.
On my notebook, so it can prompt for fingerprint entry upon attempting to log into kde at startup (right now it’s a bonus “feature” that only i know that only the fingerprint scanner will allow a successful login into KDE) On the consoles, the prompt is in text, but before KDE starts up and before i can issue the command manually, this kinda hacked screen saver and my initial fingerprint prompt are not going to work until i figure out exactly where this actually goes. . . further updates as events warrent.







Leave a Reply