Pulse-Eight / libcec

USB CEC Adapter communication Library http://libcec.pulse-eight.com/
Other
707 stars 284 forks source link

Question for help with project. #513

Open Electrik-rich546456 opened 4 years ago

Electrik-rich546456 commented 4 years ago

Hi, I have been working on a project for some time. Trying to get TV to respond like a pc monitor. my connections might make it easier to understand my project. < TV> ------->------CEC DEV>---->----<PC

Can i use this to run in the background and listen for function keys F8-F12 press and do things like change TV source or turn TV on and off the code would also need to detect TV change audio source and if source switched away from PC 1 don't turn TV off,

  1. if source is on PC then monitor for screen saver activity on the dbus and if screen turns off sent TV to sleep. or off via cec.

I have all these functions working using cec-client in bash scripts but i wanted to integrate it into a single python script using the py library but didn't work, So I thought there is no harm in asking here Would any one be able to help me?