| Author |
Message |
|
|
Post subject: Script to turn off the monitor
Posted: Jun 11, 2008 - 03:28 PM
|
|

Joined: Apr 23, 2007
Posts: 43
Status: Offline
|
|
A simple script to turn off the monitor, since people are getting concerned about saving power these days. You can make a button for it by first saving the script in a file somewhere, then right click on the kicker panel -> Add Application to panel -> Add Non-KDE App. Finally enter the script path as the executable.
Script:
Code:
#!/bin/bash
STATUS=`xset -q | grep "Monitor is" | awk '{print $3}'`
if [ "${STATUS}" = "On" ]
then
xset dpms force off
else
xset dpms force on
fi
exit 0
Don't forget to switch off your lights and appliances (at the plug) when not using them. |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Aug 15, 2008 - 12:24 PM
|
|

Joined: Apr 15, 2008
Posts: 129
Location: Australia
Status: Offline
|
|
thankyou for sharing this code with us.
I am a bit more simple and turn off at the appliance then the power outlet.
Apparently world wide there is considerable saving of carbon emissions if we all adopt this practice.
(start of rant)
I would like people who are not in business to consider not buying extra drives for raid, as it increases carbon emissions as well....Drives are large enough now-a-days to get by with imaging using partimage and backup to dvdrw.)
(end of rant) |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Aug 15, 2008 - 12:26 PM
|
|

Joined: Jun 17, 2007
Posts: 522
Location: Buchholz i.d.N.
Status: Offline
|
|
I have this one on a keyboard-shortcut for years:
Code:
[stell @ hurricane:~]% cat .scripts/dpms_monitor_aus.sh
#!/bin/sh
dcop amarok player pause
xset dpms force off
|
_________________ - stell @ jabber.crashmail.de -
[blog.crashmail.de] [last.fm-Profil]
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Aug 16, 2008 - 03:00 AM
|
|

Joined: Dec 02, 2006
Posts: 1046
Location: East Coast
Status: Offline
|
|
| hmm, I'm trying to figure out how you're supposed to turn the monitor on pressing a button in kicker if the monitor is already dark?. A button in the keyboard as Steve` suggests makes more sense, or my imagination is short tonight? |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Aug 16, 2008 - 07:24 AM
|
|

Joined: Jun 17, 2007
Posts: 522
Location: Buchholz i.d.N.
Status: Offline
|
|
|
|
|
 |
|
|