Live data from Hacker News

Fix HDMI-CEC weirdness with a Raspberry Pi and a $7 cable

johnlian.net

21–30 of 147 posts

Re: Fix HDMI-CEC weirdness with a Raspberry Pi and a $7 cable

#21

I saw the Steam Machine bragging about CEC and being able to turn the TV on when it does, which made me wonder why my setup doesn't do that. Turns out that there's a special pin on your APU that has to be wired up, and AMD didn't bother for the Z1 Extreme chips. I wish "wake on signal" was a universal option.

Huh, is that why my Steam Deck won't wake up my TV?

Re: Fix HDMI-CEC weirdness with a Raspberry Pi and a $7 cable

#22

Yup, my AppleTV is the only device that gets CEC right. Even my LG TV and LG soundbar get confused. And don’t get me started on the PS4 Pro’s garbage implementation. I’m sad that Logitech killed Harmony because CEC was supposed to make universal remotes obsolete — they’re still the only way my full home theater can function without juggling a dozen remotes.

I dread the day that Logitech kills the servers for Harmony. If they don't release the IR code database, they're going to have a lot of people (myself included) pretty annoyed.

(To be clear, they still work today if you can get a second hand remote / hub.)

Re: Fix HDMI-CEC weirdness with a Raspberry Pi and a $7 cable

#23

Modern AV stuff is insane. I have no interest in taking it up as a hobby. I have an xbox, a TV, and a pair of bookshelf speakers. How am I supposed to get the audio to the speakers without a bulky expensive receiver box? Luckily, I have one of the last remaining TVs with a headphone jack. I don't use a remote for any of it. Side note: Sometimes the TV doesn't come on when you press its power button. After a tremendou…

Thankfully there are fun engaged hackery people.

The article here seemed to dive in, look at what was happening, and figure out some altogether decent & not absurd flows. It wasn't "easy", but it also wasn't totally absurd.

I get why you'd whinge & argue for a simple cable. But this was also a wonderful study, that showed steps, that I hope can bring joy & not just derision. That said, I also have no receiver box & rely on headphone out... which my not that old LG C4 has. Also, if that goes away: SPDIF decoder boxes are very cheap!

Re: Fix HDMI-CEC weirdness with a Raspberry Pi and a $7 cable

#24

Modern AV stuff is insane. I have no interest in taking it up as a hobby. I have an xbox, a TV, and a pair of bookshelf speakers. How am I supposed to get the audio to the speakers without a bulky expensive receiver box? Luckily, I have one of the last remaining TVs with a headphone jack. I don't use a remote for any of it. Side note: Sometimes the TV doesn't come on when you press its power button. After a tremendou…

> How am I supposed to get the audio to the speakers without a bulky expensive receiver box?

You can have bookshelf speakers with an integrated amplifier and HDMI-ARC. All you need is an HDMI cable between the TV and the speakers.

Re: Fix HDMI-CEC weirdness with a Raspberry Pi and a $7 cable

#25

Modern AV stuff is insane. I have no interest in taking it up as a hobby. I have an xbox, a TV, and a pair of bookshelf speakers. How am I supposed to get the audio to the speakers without a bulky expensive receiver box? Luckily, I have one of the last remaining TVs with a headphone jack. I don't use a remote for any of it. Side note: Sometimes the TV doesn't come on when you press its power button. After a tremendou…

That little headphone jack is seriously driving bookshelf speakers to a reasonable volume? If it works it works but that doesn't sound right, unless these are actually self-powered speakers with their own amplifiers inside. I'd really like to know the details because this sounds crazy.

Also, I collect a lot of old receivers and speakers. It's really not that complicated and the basics have been the same since the 70s and 80s. Any flatscreen TV made in the past 20 years typically has a TOSLINK output which will be compatible with receivers stretching back to the 80s - I have my LG C1 connected to some 90s Marantz receiver this way. Any old receiver you find on Facebook Marketplace for $20 will typically suffice here as long as you check for the TOSLINK port first, but you do need a separate actual amplifier somewhere along the line to drive a speaker larger than a pair of headphones unless the speaker has its own amp built-in.

I find all this stuff fun so my own setup has that chained to a series of other receivers acting as subwoofer amplifiers as well as using the pre-amp output to drive a Mesa Baron tube amplifier/Acoustat electrostats I was gifted, but most people don't need anything so complex.

Re: Fix HDMI-CEC weirdness with a Raspberry Pi and a $7 cable

#26
“every console behaves like it missed the last week of CEC school. They wake the TV, switch the input, then leave the Denon asleep so I’m back to toggling audio outputs manually.”

My Roku does this! It will turn on the TV but not the soundbar, which is so frustrating. Guess it’s somewhat normal.

Re: Fix HDMI-CEC weirdness with a Raspberry Pi and a $7 cable

#27

Modern AV stuff is insane. I have no interest in taking it up as a hobby. I have an xbox, a TV, and a pair of bookshelf speakers. How am I supposed to get the audio to the speakers without a bulky expensive receiver box? Luckily, I have one of the last remaining TVs with a headphone jack. I don't use a remote for any of it. Side note: Sometimes the TV doesn't come on when you press its power button. After a tremendou…

Your quest is thankfully unrelated to ARC/CEC.

Find a tiny TPA3255- or TPA3116-based amp. These are class D amplifier chips made by TI.

https://en.wikipedia.org/wiki/Class-D_amplifier

Buy one of these from e.g. Amazon.

Optionally: Throw away/recycle away the supplied chinese noname power supply. Buy a used laptop PSU from a reputable brand locally for cheap instead. I scored a Lenovo 135W/20V laptop PSU for $5 at my local Goodwill equivalent. Solder on a 5.5mm barrel jack connector.

My fav for your use case: Fosi Audio TB10D.

Re: Fix HDMI-CEC weirdness with a Raspberry Pi and a $7 cable

#28

Modern AV stuff is insane. I have no interest in taking it up as a hobby. I have an xbox, a TV, and a pair of bookshelf speakers. How am I supposed to get the audio to the speakers without a bulky expensive receiver box? Luckily, I have one of the last remaining TVs with a headphone jack. I don't use a remote for any of it. Side note: Sometimes the TV doesn't come on when you press its power button. After a tremendou…

> How am I supposed to get the audio to the speakers without a bulky expensive receiver box?

You can get a small ARC/eARC audio extractor with RCA or S/PDIF output and use your favorite amplifier or DAC with it.

Re: Fix HDMI-CEC weirdness with a Raspberry Pi and a $7 cable

#29

I saw the Steam Machine bragging about CEC and being able to turn the TV on when it does, which made me wonder why my setup doesn't do that. Turns out that there's a special pin on your APU that has to be wired up, and AMD didn't bother for the Z1 Extreme chips. I wish "wake on signal" was a universal option.

For some reason, GPU makers don't usually expose the CEC interface for the HDMI ports on their cards. Even the raspberry pi's ability to support it wasn't standard/default for years.

The common workaround if you had a kodi PC or something was to buy one of these things: https://www.pulse-eight.com/p/104/usb-hdmi-cec-adapter and run a HDMI cable through it. Because CEC is open drain like i2c is, connecting to it anywhere in your network of devices should work. (the HDMI spec mandated that the CEC pin needs to be connected, even if you aren't using it, from the first version) Just connect it to a spare HDMI port anywhere and you're off to the races.

Re: Fix HDMI-CEC weirdness with a Raspberry Pi and a $7 cable

#30
In my home media setup (LG UQ81 TV, WiiM Amp via ARC, Xbox Series X, Chromecast with Google TV), the CEC setup _almost_ works perfectly.

* I can use the LG TV’s remote alone to control everything including the Chromecast and amp’s volume controls.

* The amp automatically switches on and off with the TV.

* Turning the Xbox on/off via its controller also turns on/off the TV and the amplifier together.

Mostly good, except sometimes when I have my Chromecast on and switch the Xbox on via the controller it gets stuck in an endless loop of flicking back and forth between HDMI 1 and HDMI 2, between Chromecast and Xbox. Nothing I can do will stop it except to power cycle the TV.

If anyone has experienced anything similar or has any tips on how to debug this that would be much appreciated!

Post reply on HN