You are not logged in.

#1 2013-04-14 20:18:23

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

xbmc-prevent-xscreensaver - Keep xscreensaver off while xbmc is on.

Description
This little shell script that simply sends an `xscreensaver-command -deactivate` when xbmc.bin is running.  This action will cause xscreensaver to pretend that there has been user activity such as keyboard or mouse activity. The command is sent once every 49 seconds while xbmc is running.  Infinitely more light-weight than solutions like caffeine smile

AUR: https://aur.archlinux.org/packages/xbmc … creensaver
Github: https://github.com/graysky2/xbmc-prevent-xscreensaver

Last edited by graysky (2013-10-13 18:37:26)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2013-09-02 22:46:33

maggie
Member
Registered: 2011-02-12
Posts: 255

Re: xbmc-prevent-xscreensaver - Keep xscreensaver off while xbmc is on.

Thank you!

Offline

#3 2013-09-02 23:43:11

cris9288
Member
Registered: 2013-01-07
Posts: 348

Re: xbmc-prevent-xscreensaver - Keep xscreensaver off while xbmc is on.

I don't know much about bash scripting, but why couldn't you just write a wrapper script that calls

xset -dpms; xset s off

before calling xbmc.bin?

Offline

#4 2013-09-03 02:18:45

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: xbmc-prevent-xscreensaver - Keep xscreensaver off while xbmc is on.

@cris9288, the only reason I can think of to do it this way is that it will absolutely ensure that the screensaver functionality will return if xbmc were to crash or be unceremoniously killed for whatever reason.  Also, considering that you are already running something like xbmc, which will surely keep your machine alive, running a bash loop that simply ends up sleeping 1/60th of the time is not terribly hard on the system.

Offline

#5 2013-10-13 18:37:58

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: xbmc-prevent-xscreensaver - Keep xscreensaver off while xbmc is on.

cris9288 wrote:

I don't know much about bash scripting, but why couldn't you just write a wrapper script that calls

xset -dpms; xset s off

before calling xbmc.bin?

Could potentially, but this solution uses the the xscreensaver-native command `xscreensaver-command -deactive` which pokes the daemon just like a mouse movement would.  It's more natural smile

Last edited by graysky (2013-10-13 18:39:42)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#6 2013-10-13 18:40:04

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: xbmc-prevent-xscreensaver - Keep xscreensaver off while xbmc is on.

For existing users, please note that I updated the name replacing the underscrores with hyphens.  Update your symlinks accordingly upon upgrade.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB