LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-28-2003, 11:10 PM   #1
taoweijia
Member
 
Registered: Sep 2003
Posts: 163

Rep: Reputation: 30
turn off video output automatically


i want to have a program which can automatically cut the video output to monitor at some fixed time. say, from 8PM - 5AM.
can a bash script do that as well?
 
Old 09-30-2003, 02:09 PM   #2
LarryDoliver
Member
 
Registered: Mar 2003
Posts: 126

Rep: Reputation: 17
the command you need is: xset dpms force standby . Add that to your cron scheduler:

0 20 * * * xset dpms force standby

and you monitor will automagically turn off at 8pm. Of course, if you hit a button, it'll wake back up...
 
Old 10-01-2003, 06:33 AM   #3
taoweijia
Member
 
Registered: Sep 2003
Posts: 163

Original Poster
Rep: Reputation: 30
thank you,
even though, i don't understand that command, but, how to turn it on using cron again?
thanks
 
Old 10-01-2003, 08:28 AM   #4
LarryDoliver
Member
 
Registered: Mar 2003
Posts: 126

Rep: Reputation: 17
type crontab -e # this will allow you to edit your crontab
add the line that I listed above:
0 20 * * * xset dpms force standby

save the file, and your done

"man cron" and "man crontab" if you have cron questions
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Power Wont turn off automatically marigb Linux - Hardware 5 11-16-2005 08:08 PM
sound doesnt turn on automatically invinciblegod Linux - General 2 07-27-2005 01:37 PM
turn off LCD automatically when idle? houler Slackware 18 04-24-2005 03:02 PM
pc couldn't turn off automatically after halting linux. horeddy Mandriva 4 01-31-2005 11:58 PM
how to turn numlock on automatically? Alf829 Linux - Newbie 6 08-22-2003 08:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration