BetterDisplay icon indicating copy to clipboard operation
BetterDisplay copied to clipboard

Provide simple HDMI-CEC volume control

Open waydabber opened this issue 1 year ago • 11 comments

Newer Macs (M3 MBPs with HDMI port and possibly the upcoming M4 macs) have working HDMI-CEC hardware and are enabled and accessible in newer macOS versions.

It might be useful to add a simple volume up/down HDMI-CEC control feature to the app and give the option to tie it to the volume up/down keyboard.

Standby control is already implemented natively in macOS for these devices (the connected TV and connected receivers can be put to standby mode and powered on display sleep if HDMI-CEC control is enabled) - so no need to add that feature.

waydabber avatar Sep 15 '24 15:09 waydabber

Was just looking for this feature, would be great 👍

mklingberg avatar Oct 01 '24 16:10 mklingberg

Well, I need to do more research on the topic. I figured out what stuff should I use but it's rather complicated and of course there is no documentation at all (as it is an undocumented API). But will try to dive into this. However this requires hardware support and afaik only M3 MBPs support HDMI-CEC currently using the built-in HDMI port. Third party HDMI dongles and pre-M3 Macs won't work.

waydabber avatar Oct 01 '24 16:10 waydabber

I would also love this feature, and I am one of the lucky few with an M3 MBP.

myronmcm avatar Nov 15 '24 19:11 myronmcm

Update: M4 Macs support HDMI-CEC as well.

waydabber avatar Nov 16 '24 08:11 waydabber

@waydabber According to Apple^kb, HDMI-CEC is supported on any Apple Silicon when using their external adapter^adapter1 or Belkin's^adapter2, along with the built-in ports on M3 and M4 Macs.

aryairani avatar Mar 01 '25 20:03 aryairani

Well, I need to do more research on the topic. I figured out what stuff should I use but it's rather complicated and of course there is no documentation at all (as it is an undocumented API). But will try to dive into this. However this requires hardware support and afaik only M3 MBPs support HDMI-CEC currently using the built-in HDMI port. Third party HDMI dongles and pre-M3 Macs won't work.

Let me know if I can help with figuring out the APIs, as I would also like to use them.

aryairani avatar Mar 01 '25 20:03 aryairani

Ok! I devoted basically zero time to it so far honestly, but I plan to discover how this stuff works. Did you look into the relevant APIs (they are undocumented but still should be accessible, everything seems to be there - originally moved over probably from Apple TV).

waydabber avatar Mar 01 '25 22:03 waydabber

Did you look into the relevant APIs

No, I wasn't sure where to begin. But I can take any clues you have and try to run with them. Let me know if we need to figure out how to DM. :)

aryairani avatar Mar 02 '25 23:03 aryairani

All right. I am now in something else, but feel free to contact me on the app's Discord channel where I can guide you to the API that handles this and there we can discuss how to best experiment with this.

https://discord.gg/aKe5yCWXSp

waydabber avatar Mar 04 '25 08:03 waydabber

Just wanted to see if there are any updates on this? I'd very much appreciate this feature as well, please!!

Brunox13 avatar Jun 04 '25 23:06 Brunox13

No progress sadly. I did some experimenting with it but could not make it work yet. Also, controlling the volume using CEC might not be ideal anyway, it's just simpler to use the app's integration control feature and directly control Smart TVs or receivers via the appropriate commands (although it might be a bit difficult to set things up right now, the feature should be more streamlined with easy configuration for common Smart TV platforms out there).

waydabber avatar Jun 05 '25 09:06 waydabber