Posts: 71
Joined: May 2013
Reputation:
0
2013-06-05, 22:30
(This post was last modified: 2013-06-05, 22:53 by fogcity.)
I'd like to modify the built-in Dim screensaver but am unable to find its source. Is it buried deeper than the "screensaver.xbmc.builtin.dim" folder? because there's very little there.
If the answer is that most of its code is tucked into the kernel and / or the source cannot be modified without hacking XBMC, then can anyone post a simple framework for a screensaver?
Basically I have some code i'd like to have run after a certain period of XBMC inactivity and using a screensaver framework seems the best way to do it.
Suggestions? Sample code?
Posts: 15,282
Joined: Jan 2009
Reputation:
739
ronie
Team-Kodi Member
Posts: 15,282
the dim screensaver can indeed only be altered by hacking the xbmc source code.
you could write a python based screensaver though.
there's not much to it, just make sure the extention point = 'xbmc.ui.screensaver'
and listen for onScreensaverDeactivated callbacks.
for the rest, you can pretty much do whatever you like.
Posts: 71
Joined: May 2013
Reputation:
0
Thanks for the reply! Actually I think I'm gonna implement this as an applescript. Will only work on OSX installs, but that's what I'm running and writing a python addon without a template is beyond the scope for this issue.
Posts: 1,739
Joined: Aug 2011
Reputation:
23
How can i get a copy of the DIM screensaver to mod it to fit my needs?
Or how can I get the same DIM effect (incl. dim level) ?
Posts: 1,506
Joined: Nov 2013
using a screensaver for this sounds dim (pun intended). all you need is a simple service script polling the idle timer now and then..
there is no dim screensaver code. it's just a simple alpha blend done by the rendering engine..
Posts: 51
Joined: Jul 2010
Reputation:
0
Hi guys,
I'm running XBMC on Raspberry (Raspbmc) and I'm trying rPlay that it's a program in order to use Apple Airplay mirroring feature on Raspberry... rPlay works only if XBMC is not running but I discover that if the Dim screensaver of XBMC starts I can see both the XBMC and the rPlay screens togheter (50% transparency?).
Is itp ossible to modify or create an XBMC screensaver that works like the Dim screensaver but with a different transparency so that only the background is shown? That will fix my problem to had to close XBMC every time i have to use rPlay...
Thanks!