Live data from Hacker News

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

johnlian.net

81–90 of 147 posts

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

#81
post #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.)

Having just swapped to a new TV on my Harmony setup I was concerned if it was still going to work. Lucky me, it did.

I really REALLY want someone to manufacture the thin harmony RF remote with a simple receiver puck with an open firmware. That's all we'd need because the HA crowd would be all over it and have it doing anything you want.

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

#82

“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.

My shield turns my receiver on, sets it to the right input (then the wrong input, then back to the right input), then... disables the decoder so there is no sound. Then sometimes enables the decoder about 20 seconds later.

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

#83

The first time I "discovered" CEC was when the arrow keys on my TV remote inadvertently navigated the PS3 system menu. I thought I was hallucinating because there was no mechanism for this magic to happen.

I've had this happen a handful of times with my Frame TV and Steam Deck, though it's inconsistent for some reason. It's pretty cool when it works.

The Deck can pretty consistently turn the TV on from standby(/picture mode) and grab the input, but if the TV is completely off (black screen) CEC doesn't work anymore.

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

#84

Earlier quoted context omitted.

Why are receivers so big ? It's not exactly a money issue. I just don't want the big box.

HDMI Audio Extractor is what you need. Look at OREI.

Perfect! This looks like the one.

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

#85

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…

TVs seem to expect you to use HDMI-ARC to return sound to the receiver or soundbar. I wonder if there's any HDMI-ARC to audio dongles out there?

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

#86
post #58

Earlier quoted context omitted.

I'm using active bookshelf speakers with integrated amps. They are working fine.

I really dislike this behavior. You presented a problem, but you didn't want a solution. You wanted attention.

I do want a solution. You haven't provided one.

You suggested an amp. The fact that I'm able to use a headphone jack to connect my speakers should tell you I don't need an amplifier. The question posed is how to connect those speakers if I no longer had access to a headphone jack. Currently the headphone jack is working fine.

For what it's worth, here's a comment that seems like it's get a perfect solution for me.

Sorry if I was unclear.

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

#87
I wrote a program in Golang to control my a/v setup. Included within are small pkgs to control Linux CEC and LIRC devices (ioctl/read/write) as well a pkg for LG TV commands over serial port. Link here: https://github.com/EBADBEEF/tvman

One really useful thing when getting started was to use `cec-ctl -M` to monitor the CEC traffic live. Like the author, I used the v4l-utils commands to interact with CEC but eventually got frustrated with them and rewrote my program in in Go!

I have found CEC to be flaky and hard to work with. I had to turn off CEC on my TV because it breaks everything, almost randomly switching inputs and turning on and off devices.

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

#88
post #36

Earlier quoted context omitted.

Anyone know how to make a LG TV wake an AppleTV from sleep? Once it's awake buttons presses on the LG remote are passed through to it but I have to keep the Apple remote around for that first step.

I had to go the other way. The Apple TV controls the LG. It wakes it, controls the volume and turns it off when it sleeps.

Mine will turn my LG on, control the volume, do all of that, it just won't ever turn it off. The AppleTV will turn itself off, but the TV itself will revert back to its screen saver display complaining about No Input.

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

#89

Earlier quoted context omitted.

CEC is just i2c which is a bus. In fact you can hook regular i2c devices up to an HDMI port and communicate with them. You’ll need a resistor and shouldn’t draw more than 50 mA.

Isn't DDC the I2C bus? Interesting article about that here: https://mitxela.com/projects/ddc-oled

Doh, you’re right. I’m over here getting my protocols mixed up. IIRC it is very similar though.

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

#90

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…

[deleted]
Post reply on HN