LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   How to auto disable screensaver/blanking while watching video from web browser (https://www.linuxquestions.org/questions/linux-desktop-74/how-to-auto-disable-screensaver-blanking-while-watching-video-from-web-browser-4175522329/)

electrovalent 10-16-2014 10:45 AM

How to auto disable screensaver/blanking while watching video from web browser
 
Hello to everybody. Tested with multiple linux distros like debian, Mint, Ubuntu and some others (2-3 latest releases) and different hardware. Has anyone manage to have screensaver or screen blanking auto disabled when watching a video through a web browser? Like vlc does for example or like other OS act. Thanks in advance.

ondoho 10-18-2014 05:59 AM

hello electrovalent, please take a look at "caffeine", a small systray utility that will do what you want.

what distro are you on atm? caffeine might or might not be in the repos.

electrovalent 10-21-2014 11:35 AM

Thank you for the suggestion but caffeine is not able to do that. It has difficulties between screensavers and power management systems. Thats why i mentioned VLC which doesn't bother if i use xscreensaver or gnome-screensaver for example. I am experimenting different linux distros.

ondoho 10-21-2014 04:08 PM

for each distro, you can write yourself a little script that does what you want.
all those utilities can be accessed without root priv's and most probably also via command line.
maybe even a simple "keep-alive signal" is enough, like hitting an (otherwise unused) key every minute.

electrovalent 10-22-2014 11:58 AM

I am looking for a way to have this automaticaly enabled. The script you describe if i understand well, will have to be (enabled/disabled) by me. If i forgot to disable after watching something the screen will stay active forever.

Habitual 10-22-2014 04:25 PM

Quote:

Originally Posted by ondoho (Post 5255503)
hello electrovalent, please take a look at "caffeine", a small systray utility that will do what you want.

I read recently that is is now a daemon and not there is no "systray utility" any more.

ondoho 10-23-2014 01:47 AM

^the AUR has both versions.

electrovalent, such a script would check if certain multimedia applications are running and emit the signal only then.
(to check whether actual video is being played back is a little harder).

be aware that most distros have at least 2, maybe even 3 screensaver apps: the one built into the X server, the DE's screensaver (and maybe the power manager).

electrovalent 10-24-2014 01:59 PM

How much harder?:) If i could monitor/record video output then xdg-utils could do the rest. Maybe..

ondoho 10-24-2014 03:21 PM

sorry, you lost me there.


All times are GMT -5. The time now is 11:19 AM.