Quantcast
Channel: Kodi Community Forum - All Forums
Viewing all articles
Browse latest Browse all 84005

Hacking on xbmc/peripherals/devices/PeripheralCecAdapter.cpp

$
0
0
I would like for XBMC to suspend the PC (or at least stop playing) when the TV is turned off. Unfortunately, my TV does not appear to be sending a power off CEC message, so the existing functionality in XBMC to do this doesn't work.

What I would like to try to implement is to poll for the TV's power status and if it's transitioned from on to off, to tell XBMC to stop playing and / or suspend the computer.

I was having a look at xbmc/peripherals/devices/PeripheralCecAdapter.cpp and it seems that there are two threads, a CPeripheralCecAdapter::Process and CPeripheralCecAdapterUpdateThread::Process. Since I'm new to this code, I'm not entirely sure what each
thread is used for and whether I should try to put my polling code into one of these threads or perhaps make a new one.

Any advice would be much appreciated.

Viewing all articles
Browse latest Browse all 84005

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>