We lived with lack of CEC support for the mini for literally 15 years. Until my bedroom TV died and I bought a cheap but awesome TCL 50" TV from Costco for $279. One problem: the "Input" button alone will not cycle through inputs on this TV (you have to use arrow buttons), meaning we now need the TCL remote to switch inputs to the TiVo Mini. Being a tech pro/hobbyist/tinkerer/sicko, this was unacceptably clunky enough that I went through this madness (which ended up not being terribly mad for me).
My goal was to automatically switch a television to the TiVo HDMI input when the TiVo button is pressed. It cost me almost nothing because I had an unused Flirc I thankfully didn't throw away, and have had a Raspberry Pi for a couple of years.
If you want to do this from scratch the parts list comes out to a little over $100 and IMO was a fun project (I know I know, I have a problem).
Hardware required
ChatGPT or a similar service is your friend on this journey
Start by tell ChatGPT "I have a Raspberry Pi, a FLIRC, a [Samsung/LG/Sony/Whatever] TV, and a TiVo Mini. I want to spoof CEC support on my Mini so that my TV switches to the Mini's HDMI input whenever I press the TiVo button."
Continue the conversation from there, asking questions and typing/pasting in successes and failures as needed. For those who are more curious...
Here's the general idea - you can ignore this if you want since ChatGPT will tell you what to do anyway
Remember with all these steps there is a silent prefix "CHATGPT WILL HELP YOU TO". But in general you will:
- Plug your MicroSD card into your PC/Mac, and install Raspberry Pi OS Lite on your MicroSD card using Raspberry Pi Imager. It'll ask you to set up a username, password, and wifi credentials. This is actually way simpler than it sounds.
- Set Tivo Remote to IR mode
- Using the Flirc utility, configure your FLIRC in "Full Keyboard" mode on your PC/Mac. Map the TiVo button IR signal to F12.
- Plug the FLIRC into the Raspberry Pi, and connect the Raspberry Pi to an available HDMI port on the TV.
- SSH into Raspberry Pi (it should've automatically connected to your WiFi from the info you entered in Step 1).
- Ask your Pi to identify your TV and the physical HDMI addresses of your CEC devices and your Mini.
- Determine which CEC commands successfully switch the television to the TiVo HDMI input.
- Create a switching script that will wake the television if necessary and switch to the TiVo Mini input only when needed.
- Create button listener that will run the script every time F12 is pressed (remember, the Flirc is going to send F12 every time you press the TiVo button)
- Automate startup: Configure the listener to run automatically whenever the Raspberry Pi boots.
Disclaimer
The CEC solution depends on your TV supporting one HDMI input (the Pi) being able to control other inputs. Not all TVs will accept input-switching commands targeting a different HDMI port.
If standard CEC commands fail, alternative methods include:
- Android Debug Bridge, aka "ADB" (Google TV / Android TV) <-- this is what I ended up using
- Manufacturer-specific network control APIs
- Infrared transmitter
Like I said, my TV for this project was a TCL Google TV. I ended up using ADB and Wake-on-LAN because it allowed me not to use an HDMI cable or port on the TV.
It works... really well.
Good luck, and remember that Amazon has a 30-day return policy 😁