Re: how to wake up sleeping monitor using batch script/command

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




--- On Sat, 12/25/10, Ed Greshko <Ed.Greshko@xxxxxxxxxxx> wrote:

> From: Ed Greshko <Ed.Greshko@xxxxxxxxxxx>
> Subject: Re: how to wake up sleeping monitor using batch script/command
> To: "Community support for Fedora users" <users@xxxxxxxxxxxxxxxxxxxxxxx>
> 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


      
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux