Project RetroSwitch : Hotplugable HDMI
-
One of the requirement for my RetroSwitch project is hot plugable HDMI. To start I wrote a program to listen for signals when HDMI is plugged in. This allows me, at least at the console level to have display switched to HDMI when cable is inserted and fall back to composite when removed.
Binary to test : https://www.dropbox.com/s/ttkovnia8p9tw5f/switcharoo?dl=0
To try how awesome it is, follow steps:
- Download binary to home folder
- Boot Pi with composite connected
- Exit from EmulationStation to console
- ssh into pi
- execute binary from ssh
- Plugin your HDMI cable with input selected to HDMI on TV
The composite should automatically shutdown and HDMI display will have the display signal. You can monitor messages on ssh.
You can switch back to composite by removing the hdmi cable.NOTE : Currently Composite uses PAL and your overscan settings will work differently. I will release source shortly where you can switch to ntsc rather than pal
-
Nice project.
But why a homemade compiled binary ?
Isn't it scriptable with tvservice -M ?
Here is an example : https://gist.github.com/Karry/7345106 -
@Sano Yes it does use tvservice at the backend. I wanted a c++ implementation rather than running another instance of python.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.