LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Disable screen going blank after inactivity in some applications (https://www.linuxquestions.org/questions/linux-newbie-8/disable-screen-going-blank-after-inactivity-in-some-applications-903546/)

AMA 09-17-2011 11:00 AM

Disable screen going blank after inactivity in some applications
 
Hello,

In my power manager I chose to have the screen going blank after a certain period of inactivity. I want to keep this feature, but disable it in some applications, for example in VLC or mplayer so that I don't need to move the mouse every ten minutes of a movie...

I'm using Gnome + Compiz on Archlinux, can anyone help me find a solution ?

Thanks.

coralfang 09-17-2011 11:53 AM

Hi, for mplayer you can use this configuration:

Code:

stop-xscreensaver=1
heartbeat-cmd="xscreensaver-command -deactivate &"

Place it in either ~/.mplayer/config or /etc/mplayer/config

It should work with gnome-screensaver.


For VLC, open [Tools > Preferences] at the bottom left of the menu click "all", there should be an option "Disable Screensaver" under the video category.

If you applied those settings and the screen still "blanks", you might want to run this in a startup script:
Code:

xset -dpms
This explains the above command nicely: http://www.shallowsky.com/linux/x-screen-blanking.html


All times are GMT -5. The time now is 10:46 AM.