sidux.com
Menu

News

Give back
Last 3 Contributions
30-11-2008 20.00
25-11-2008 100.00
25-11-2008 20.00

Donate


Sponsor
hetzner.de

Languages
Preferred language:



Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
sk11
Post subject: Script to turn off the monitor  PostPosted: 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.
 
 View user's profile Send private message  
Reply with quote Back to top
aus9
Post subject:   PostPosted: 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)
 
 View user's profile Send private message  
Reply with quote Back to top
Steve`
Post subject:   PostPosted: 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]
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
op4latino
Post subject:   PostPosted: 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?
 
 View user's profile Send private message  
Reply with quote Back to top
Steve`
Post subject:   PostPosted: Aug 16, 2008 - 07:24 AM



Joined: Jun 17, 2007
Posts: 522
Location: Buchholz i.d.N.
Status: Offline
Hehe, no op4latino, I think you are right Smile

_________________
- stell @ jabber.crashmail.de -
[blog.crashmail.de] [last.fm-Profil]
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
 
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2006-2008 by sidux e.V., 10407 Berlin, Kniprodestr. 104. sidux e.V. is a Berlin, Germany based non-profit foundation. Consult Impressum and Legal Terms for details. sidux™ is Free Software released under the GNU/GPL license and other compatible licenses.
powered by Zikula & Zafenio