Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to watch a movie with my laptop how I can disable with xmonad that it turn off the screen if vlc or some other app is running is running. Is there some functions what I can used to prevent this?

Can I do there something with Xmonad or is it depending to my X? Any ideas?

share|improve this question

migrated from stackoverflow.com May 1 '13 at 17:10

This question came from our site for professional and enthusiast programmers.

4  
which program is inducing the black screen - most likely something like xscreensaver or some power manager. I have xfce4-power-manager - there I just switch to presentation mode. – epsilonhalbe Apr 28 '13 at 17:58
    
It should come from my X server, but I want to know if I can do something with my xmonad configuration if write some code there. I'll check this if know other way thanks – Azd325 Apr 28 '13 at 18:15
up vote 8 down vote accepted

I have these lines in my ~/.xinitrc file:

# turn off Display Power Management Service (DPMS)
xset -dpms
setterm -blank 0 -powerdown 0

# turn off black Screensaver
xset s off

This prevents the display from turning off during watching a movie (I'm also using XMonad).

share|improve this answer
    
But I think is better if I put this in a script and used if I need it because I think in the xinitrc is not the best place for it. If every time this dpms disabled is – Azd325 Apr 29 '13 at 13:36
    
How I can enable the default again? – Azd325 May 5 '13 at 7:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .