Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I am using Xubuntu 14.04 64 bit. I usually play video using VLC media player. The problem I am having is, after 10 or 15 minutes computer turn off its display, even the video is running in the background. To get back video I have to move mouse or press any key in my laptop. In xubuntu default power settings I do not see any option where I can prevent computer to sleep if media player in my computer is running. Is there a way to set priority so that computer do not sleep when the video is running. I attached current power setting of my computer.

enter image description here

share|improve this question
Using the slider for Monitor, what happens if you move it all the way to the left? –  Charles Green Jun 17 '14 at 15:26
but if i do that computer will not go to sleep even it is inactive for hours, see I want prevent the computer from idling only while video is playing, thank you for your reply :) –  rashed azad Jun 17 '14 at 15:33
Perhaps someone with greater horsepower than I could suggest a shell script that runs when you start a video to reset the timers, and runs again when you stop the video to put the timers back. –  Charles Green Jun 17 '14 at 15:38
can you tell me how to do that... –  rashed azad Jun 17 '14 at 15:39
@rashedazad, you may try script in How do I stop xscreensaver during movies play? –  Sneetsher Jun 17 '14 at 19:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.