XBMC on Pi: Add TV/monitor Power Save support when idle?

  Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
papampi Offline
Senior Member
Posts: 176
Joined: Feb 2005
Reputation: 0
Post: #106
This is amazing,
Thanks a lot Milhouse. My only problem with RPi+openelec is now solved as when hdmi goes off , all my systems goes off.

a small issue,
I am using kodi with several profiles, one for me and wife, one for kids and ...
I have had my kodi set to start on login screen so we can chose,
and your script cant find a JSON RPC, if we dont pick a profile in time, and after we login it wont start any more,
so I had to change the setting to load the last used profile and keep logging off and on ...
I checked logs and your script will stop when I log off from one profile and it start again when we log in to other, but it wont start from log in screen when it couldnt find the JSON RPC.

is it possible that your script wait for JSON RPC so that the second it finds the JSON RPC it starts, instead of raising 20 sec sleep time or ... ?

Proud xbmp/xbmc user since early days of 1st gen xbox

XBMC on :
Tronsmart S89 Quad Core - AMLinux
Atv1 + Crystall HD - Crystalbuntu
Raspberry Pi - Openelec
Xios DS - Linux the-hydra
1st gen xbox, JB Atv2, Ouya, ...
(This post was last modified: 2015-04-13 13:13 by papampi.)
find quote
Milhouse Offline
Team-Kodi Member
Posts: 5,773
Joined: Jan 2011
Reputation: 151
Post: #107
Just put the call to the script in a loop.

Edit: Actually you can increase the number of retry attempts by specifying a value for @rpc.retry - the default is 12 retry attempts, so just specify something like @rpc.retry=99999. There is a 5 second wait between each retry attempt (the wait period is not configurable) which will give you some idea how long the script will keep retrying before giving up completely (the default, 12, is obviously 1 minute before the script dies).

Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.
(This post was last modified: 2015-04-13 17:34 by Milhouse.)
find quote
papampi Offline
Senior Member
Posts: 176
Joined: Feb 2005
Reputation: 0
Post: #108
Awesome, Milhouse.
Thnx a lot

Proud xbmp/xbmc user since early days of 1st gen xbox

XBMC on :
Tronsmart S89 Quad Core - AMLinux
Atv1 + Crystall HD - Crystalbuntu
Raspberry Pi - Openelec
Xios DS - Linux the-hydra
1st gen xbox, JB Atv2, Ouya, ...
find quote
Post Reply