Starting XBMC on hdmi access
|
17th Apr, 2013, 07:18 PM
Post: #1
|
|||
|
|||
Starting XBMC on hdmi access
Is it possible to get the status from the hdmi port from the commandline, so whether it is accessed by the tv or not?
tvservice -s shows no difference in whether it's accessed or not. Edit: see http://forum.xbian.org/thread-803-post-9461.html#pid9461 for linux script Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
18th Apr, 2013, 07:58 AM
Post: #2
|
|||
|
|||
RE: Get HDMI status from commandline.
is your TV recognized ?
Code: /opt/vc/bin/tvservice -n ~~~~>>>Please always follow rules and read before you post<<<~~~~ |
|||
18th Apr, 2013, 08:02 PM
Post: #3
|
|||
|
|||
RE: Get HDMI status from commandline.
Yes it returns:
Code: device_name=SAM-SAMSUNG Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
18th Apr, 2013, 08:17 PM
Post: #4
|
|||
|
|||
Re: Get HDMI status from commandline.
OK so it is working fine.
tbh Im not sure what you want to achieve ~~~~>>>Please always follow rules and read before you post<<<~~~~ |
|||
18th Apr, 2013, 10:31 PM
Post: #5
|
|||
|
|||
RE: Get HDMI status from commandline.
I want to start XBMC when the tv is turned to the hdmi channel and stop XBMC again when the channel is changed back again. So I thougt of building a script that periodically calls this tvservice -s and then starts or stops XBMC.
I also tried doing this by running cec-client -m and running a script whenever the hdmi acces command comes along. But now suddenly when I run 'cec-client -m' in commandline it gives a segmentation fault after a while (I didn't make any changes to libcec or the cec-client). Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
19th Apr, 2013, 02:58 AM
Post: #6
|
|||
|
|||
RE: Get HDMI status from commandline.
Code: xbian@xbian ~ $ cec-client -m Is there a way to reinstall libcec without screwing things up for XBMC? Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
19th Apr, 2013, 07:36 PM
Post: #7
|
|||
|
|||
RE: Get HDMI status from commandline.
Okay I have build this script now as a work around. This script runs forever and should start XBMC on hdmi access and shut it down when the channel is changed away from the hdmi again. The code is below and this code doesn't start or stop anything yet but just prints stuff for debugging.
I would like to get some advice on this, maybe you know a better solution. Code: #!/bin/bash I would also like to extend it with option to wait an x amount of time before shutting down, if hdmi is accessed within that time cancel shutdown. But for this I should be able to do actions while cec-client is still running, I don't know how to do that. Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
27th Jan, 2014, 04:35 AM
Post: #8
|
|||
|
|||
RE: Starting XBMC on hdmi access
Is this still "under development" ? It could be really nice script, because xbmc uses a lot of resources in background, and i could use those f.e. for rtorrent.
|
|||
27th Jan, 2014, 09:36 PM
Post: #9
|
|||
|
|||
RE: Starting XBMC on hdmi access
Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
« Next Oldest | Next Newest »
|