how to wake up sleeping monitor using batch script/command

James McKenzie jjmckenzie51 at earthlink.net
Sun Dec 26 03:42:43 UTC 2010


On 12/25/10 8:24 PM, Antonio Olivares wrote:
>
> --- On Sat, 12/25/10, Ed Greshko<Ed.Greshko at greshko.com>  wrote:
>
>> From: Ed Greshko<Ed.Greshko at greshko.com>
>> Subject: Re: how to wake up sleeping monitor using batch script/command
>> To: "Community support for Fedora users"<users at lists.fedoraproject.org>
>> Date: Saturday, December 25, 2010, 6:05 PM
>> On 12/26/2010 10:00 AM, JB wrote:
>>> Some observations when done on a command line.
>>> - the screen does not come up when
>>>     $ xset dpms force off ; sleep 10 ;
>> xset dpms force on>  /dev/null 2&>1
>>> - the screen DOES come up after 10s when
>>>     $ xset dpms force off ; sleep 10 ;
>> xset dpms force on
>>
>> Neither of these incantations will turn my screen on....
>>
>> xset dpms force off ; sleep 10 ; xdotool mousemove_relative
>> 1 1
>>
>> works fine...
>>
>>
>> -- 
> $ xset dpms force off ; sleep 10 ; xset dpms force on
>
> works from cli, but does not when called from the script :(,
>
> @James&  JB
> the redirection>  /dev/null 2>&1
>
> is to avoid having shitloads of mail by th mailer :)
Yep.  However, does this work on the command line as well?  It looked 
like it did not on JBs machine.

James McKenzie



More information about the users mailing list