LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-05-2010, 03:39 PM   #1
jacatone
Member
 
Registered: Mar 2004
Posts: 280

Rep: Reputation: 30
Looking for some Linux commands


When I'm download a lot of files using Rapidshare or what not, I'd like to just turn off my monitor or activate the screen saver. Does anyone know any linux commands to do this? I found "xset -display :0 dpms force off", but the monitor comes back on within a couple of minutes. Thanks.
 
Old 03-05-2010, 04:31 PM   #2
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,289

Rep: Reputation: 52
Code:
xscreensaver-command -activate
see man xscreensaver-command
 
Old 03-05-2010, 06:04 PM   #3
jacatone
Member
 
Registered: Mar 2004
Posts: 280

Original Poster
Rep: Reputation: 30
Thanks, After installing xscreensaver it didn't seem to work. I tried "demo, activate and others" for the command but nothing seemed to work. Do you have a command to shutdown the monitor as well?

Last edited by jacatone; 03-05-2010 at 08:42 PM.
 
Old 03-05-2010, 11:35 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
*

Simple : Push the monitor 'Off button'.

.....
 
Old 03-05-2010, 11:38 PM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Quote:
Originally Posted by jacatone View Post
I'd like to just turn off my monitor or activate the screen saver
Which desktop are you using?
 
Old 03-06-2010, 01:06 AM   #6
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,289

Rep: Reputation: 52
Quote:
Originally Posted by jacatone View Post
Thanks, After installing xscreensaver it didn't seem to work. I tried "demo, activate and others" for the command but nothing seemed to work. Do you have a command to shutdown the monitor as well?
xscreensaver-demo is the command to bring up the config window
xscreensaver-command sends messages to xscreensaver
have a play!
 
Old 03-06-2010, 01:10 AM   #7
lupusarcanus
Senior Member
 
Registered: Mar 2009
Location: USA
Distribution: Arch
Posts: 1,022
Blog Entries: 19

Rep: Reputation: 146Reputation: 146
Quote:
Originally Posted by knudfl View Post
*

Simple : Push the monitor 'Off button'.

.....
touch /dev/cheap-plastic/stupid\ looking\ button/on-off

 
Old 03-06-2010, 01:15 AM   #8
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
If it's absolutely necessary to shut off the monitor without touching the power button, the OP might be interested in `vbetool`, which has a built in DPMS option that can be used to turn off monitors (turning them back on is a different matter, but that's where it gets interesting and fun!)

With xscreensaver, once the daemon is running for your desktop session, you can send it commands using its 'remote control' tool called "xscreensaver-command"; you can do like "xscreensaver-command blank" or "xscreensaver-command lock" (from a console) and other things like this. If interested, check the man pages for xscreensaver and xscreensaver-command.

Cheers!
Sasha
 
  


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
Need help for Windows cmd commands into Linux terminal commands. windowsNilo Linux - Software 2 07-02-2008 07:26 PM


All times are GMT -5. The time now is 03:48 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration