Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use remote control on monitor via HDMI and libcec #665

Open
barak opened this issue Dec 27, 2022 · 2 comments
Open

Use remote control on monitor via HDMI and libcec #665

barak opened this issue Dec 27, 2022 · 2 comments

Comments

@barak
Copy link
Contributor

barak commented Dec 27, 2022

This is just an idea.

The libcec library senses remote control button pushes on a TV connected to the computer via HDMI, using the CEC protocol. Perhaps PDFPC could use libcec to allow the presentation to be controlled by a TV remote control. E.g., channel up/down could move pages, play/pause could start/stop videos, right/left/up/down/select things could move around between slides on the preview console and choose one.

The kodi multimedia app does this, and it's pretty cool.

@fnevgeny
Copy link
Member

fnevgeny commented Mar 5, 2023

Frankly, I don't understand how it's supposed to work. If you press a key on the remote that the TV understands, it will react accordingly (e.g., switch the channels). Why should it pass the command through HDMI for another device?

@barak
Copy link
Contributor Author

barak commented Mar 6, 2023

That's precisely what the CEC protocol does: the device connected to the TV via HDMI tells the TV to send some remote control signals down the HDMI cable instead of acting on them directly. So for example channel changing can be done by a media box connected to the TV, instead of by the TV itself.

Apparently virtually all modern TVs support CEC, albeit often under some other name, and you often have to enable it in the settings. https://www.howtogeek.com/207186/how-to-enable-hdmi-cec-on-your-tv-and-why-you-should/

The library that provides this functionality on Debian is libcec. I'm not sure if all HDMI output ports on computers support it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants