Prevent Ubuntu From Going to Sleep While Watching Video

It may be pretty annoying if the screensaver pop in to look at over the screen as you were watching video. In Mac, you can easily prevent t...

ubuntu-disable-screensaver-thumbIt may be pretty annoying if the screensaver pop in to look at over the screen as you were watching video. In Mac, you can easily prevent the screen from sleeping, either which has a command or with all the Caffeine app. What if you might be using Ubuntu? What solutions would you have to steer clear of the screen from hitting the hay, or even dimming down?


Yes, this app has the same name as the Caffeine app for Mac. No, they aren't by the same developer and company whilst they are similar in functionality. This Caffeine app can be a lightweight system tray application that temporarily prevent the screen saver and power saving mode from activating.


In Ubuntu, you just need to open a terminal and type the subsequent command:

sudo add-apt-repository ppa:caffeine-developers/ppa sudo apt-get update sudo apt-get install caffeine


After the installation, you can launch the applying and it'll show up in the system tray. The usage really is easy. When you are watching a relevant video, just click on it and select “disable screensaver”.

If you check out its Preferences page, you are able to even add certain programs, like VLC, towards the list that it is activated automatically when those apps are running. You can add activate it for Flash video or Quake Live.


LightsOn script

Unless the Caffeine app, the LightsOn script is a script you must run manually. By default, it checks Mplayer, Minitube and VLC to see if it is playing any video, and Firefox or Chromium whether it can be running flash video full screen. When the check returns true, it'll disable the screensaver and power management so that it won’t get into sleep or dim the screen brightness.

There is not any installation required. All you need to do is to download the script from the Github page make the “’ script in your Home folder. Whenever you want to operate it, merely employ the command:

./ xx

where “xx” is the time in seconds you want the script to check for active video or full screen mode.

The difference between Caffeine and is the fact that Caffeine detects application by its process ID while LightsOn checks to the window class. In addition, Caffeine is activated when the app is running (regardless whether it can be playing video, or perhaps in full screen, or otherwise not) while LightsOn is just activated if this detects the application form AND it's running entirely screen mode. Nevertheless, they have got the same functionality.

Note: Ubuntu doesn’t feature any screensaver installed, so LightsOn will show a “No screensaver detected” message. It will still work to prevent the power management to help.

What alternative methods do you use to avoid your Ubuntu from sleeping?



blogging,255,computing,705,ebook,53,ebooks,354,freebies,358,graphics,225,IFTTT,3,internet,207,mobile,252,news,99,sharedtutor,78,slider,2,video tutorials,5,VideoHive,1156,YouTube,1005,
SharedTutor Tutorials For Everyone: Prevent Ubuntu From Going to Sleep While Watching Video
Prevent Ubuntu From Going to Sleep While Watching Video
SharedTutor Tutorials For Everyone
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share. STEP 2: Click the link you shared to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy