Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

XBMC kill when RPi are in Standby
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
XBMC kill when RPi are in Standby
25th Jan, 2014, 05:25 PM
Post: #3
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: XBMC kill when RPi are in Standby
when XBMC starts screensaver, XBIAN changes XBMC's priority to very very low. this together with taking only 15% by default, is not taking more than 5-7% of cpu time.

but still if you want to kill it, there is upstart script "xbmc-screensaver". when this changes state to "running", you know XBMC turned on screensaver. then you can create very simple upstart job like this:
Code:
start on started xbmc-screensaver

exec stop xbmc

with running xbmc back on you have a play a bit, but one of the solutions would be enhance this job for a loop which is asking TV status. if is not "standby", start xbmc

Code:
start on started xbmc-screensaver

pre-start exec stop -qn xbmc || :

script
   while :; do
      echo "pow 0" >> /run/cc/in
      [ "$(tail -1 /run/cc/out)" = standby ] || break
   done
end script

post-stop start -nq xbmc || :

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Messages In This Thread
XBMC kill when RPi are in Standby - Blightrt - 20th Jan, 2014, 07:04 AM
RE: XBMC kill when RPi are in Standby - IriDium - 21st Jan, 2014, 05:35 AM
RE: XBMC kill when RPi are in Standby - mk01 - 25th Jan, 2014 05:25 PM
RE: XBMC kill when RPi are in Standby - Blightrt - 26th Jan, 2014, 02:29 AM
RE: XBMC kill when RPi are in Standby - LeoSum - 14th Mar, 2014, 03:58 AM
RE: XBMC kill when RPi are in Standby - mk01 - 16th Mar, 2014, 08:16 AM

Possibly Related Threads...
Thread: Author Replies Views: Last Post
  XBMC standby (sleep mode) alexg 1 8,793 26th Apr, 2013 07:10 AM
Last Post: Uncle_Tubbie

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 18th May, 2025, 03:27 AM Powered By MyBB, © 2002-2025 MyBB Group.