how to wake up sleeping monitor using batch script/command
Antonio Olivares
olivares14031 at yahoo.com
Sun Dec 26 05:03:54 UTC 2010
--- 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, 7:45 PM
> On 12/26/2010 11:24 AM, Antonio
> Olivares wrote:
> > Will report back if I can get it to work, otherwise I
> will have to get Ed's solution.
> Another FYI....
>
> If you run this from a cron job you'll need to add "export
> DISPLAY=:0".
>
>
> --
Awesome!!!
with export DISPLAY=:0, the screen wakes up & plays the music :)
#!/bin/sh
export DISPLAY=:0
/usr/bin/xset dpms force on;
/usr/bin/xterm -display :0 -bg white \
-e /usr/bin/mplayer --really-quiet -shuffle -playlist ~/.playlist -stop-xscreensaver & PID=$! > /dev/null 2>&1
sleep 1800
kill $PID
/usr/bin/xset +dpms
Thanks, Ed, JB, & James, could not have done it without your help!
Happy Holidays to all;
Regards,
Antonio
More information about the users
mailing list