LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Looking for some Linux commands (https://www.linuxquestions.org/questions/linux-newbie-8/looking-for-some-linux-commands-793477/)

jacatone 03-05-2010 02:39 PM

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.

Tuttle 03-05-2010 03:31 PM

Code:

xscreensaver-command -activate
see man xscreensaver-command

jacatone 03-05-2010 05:04 PM

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?

knudfl 03-05-2010 10:35 PM

*

Simple : Push the monitor 'Off button'.

.....

catkin 03-05-2010 10:38 PM

Quote:

Originally Posted by jacatone (Post 3887378)
I'd like to just turn off my monitor or activate the screen saver

Which desktop are you using?

Tuttle 03-06-2010 12:06 AM

Quote:

Originally Posted by jacatone (Post 3887563)
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!

lupusarcanus 03-06-2010 12:10 AM

Quote:

Originally Posted by knudfl (Post 3887823)
*

Simple : Push the monitor 'Off button'.

.....

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

:) :)

GrapefruiTgirl 03-06-2010 12:15 AM

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


All times are GMT -5. The time now is 06:22 AM.