Joined: Sun Oct 17, 2010 11:40 am Posts: 15 Has thanked: 0 time Have thanks: 0 time
Post # 252760
power down a monitor from CLI (SSH)
Hi,
I have an old laptop as a fileserver with Mepis8.
Normally, the machine do not use Xorg ( init 3).
But I want also to shutdown the screen. If the KDE is used, then from Power management the screen can be power down after few minutes.
How can I obtain the same effect from command line ?
I noticed that now after few minutes the screen goes black. I repeat is black and not power down.
I'm accesing the machine by SSH. I tried with xset but is not working. The error is "cannot open display".
any ideas ?
Thanks
Mon Nov 29, 2010 4:38 pm
eriefisher
MEPIS Rules!
Joined: Fri Sep 07, 2007 8:11 am Posts: 463 Location: North Shore of Lake Erie Has thanked:4 times Have thanks:16 times
Post # 252770
Try logging into you server with "ssh -X". This will allow you to run X applications remotely assuming X is running. Once logged in you can call what ever application you like such as the system settings.
Joined: Sun Oct 17, 2010 11:40 am Posts: 15 Has thanked: 0 time Have thanks: 0 time
Post # 252810
I found a solution. I do not know if is the best one but this is what I did.
since my X is not running , I used "vbetool dpms off".
It simply power down the monitor from BIOS settings.
To start again the monitor, I have to make "vbetool dpms on".
Of course all this have to be run as root.
Tue Nov 30, 2010 5:13 am
Adrian
MEPIS Enthusiast
Joined: Wed Jul 12, 2006 1:42 am Posts: 3544 Has thanked:181 times Have thanks:297 times
Post # 252834
swordfish wrote:
I found a solution. I do not know if is the best one but this is what I did. since my X is not running , I used "vbetool dpms off". It simply power down the monitor from BIOS settings.
To start again the monitor, I have to make "vbetool dpms on". Of course all this have to be run as root.
All times are UTC - 5 hours [ DST ] | It is currently Mon May 20, 2013 1:12 am
Who is online
Users browsing this forum: No registered users and 2 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum