Pulse-Eight / libcec

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

Cannot get turn_on.cmd to set avr source approprietly. #552

Open kevin-daniel-hunt opened 3 years ago

kevin-daniel-hunt commented 3 years ago

I'm a bit over my head here, and have been trying to find resources online to help with this but unfortunately I've hit a dead end.

I have a windows machine hooked up to my avr which output to my TV. I am using autohotkey to trigger turn_on.cmd and turn_off.cmd to give me remote cec control to my tv and avr.

At first just running turn_on.cmd messed would turn on the tv but set my tv's input to a different input than my avr was connected to. I fixed that by modifying the script as follows:

@echo` off
echo as | cec-client -s -p 5

Now it appropriately sets it to the dedicated avr input on the tv. However I cannot figure out how to also set my AVR's source to the PC's source in the avr. Its a dedicated thing, it can be hard coded but I cannot figure out what parameters to pass to it. I tried looking through the logs when running cec-client but they move so quickly and I honestly have no idea what to even look for or even what to do with the data if I did see it.

Any help greatly appreciated.