EmulationStation icon indicating copy to clipboard operation
EmulationStation copied to clipboard

Switch lcd/hdmi (dual monitor) on mainline linux / DRM-KMS

Open PaddleStroke opened this issue 6 years ago • 2 comments

Hello, I am running ES on a linux mainline kernel (retrorangepi, a retropie build for sunxi/Allwinner SoC). My device have a RGB24 LCD connected and a HDMI out. Currently ES is launching on the LCD. But the HDMI out only shows the console.

On Xfce dual screen works properly. I can select the primary monitor, arrange them left right and resolutions and so on.

I am trying to get this :

  • When HDMI is plugged in, switch ES to HDMI
  • When HDMI is disconnected, switch back ES to LCD.

Or alternatively clone the framebuffer to both HDMI and LCD with LCD resolution (64 0*480) so that when HDMI is connected it can show the signal.

I am not sure how to do this. Should I try to make changes on ES source code so that it outputs to both framebuffer or support HDMI detection and switch? Or should I try to edit DRM driver code to clone framebuffers to both outputs?

First option looks like the right way to do it, but I am not sure if it would work only in ES and not in games?

Thanks!

PaddleStroke avatar Jul 21 '19 17:07 PaddleStroke

Exactly what I am trying to do, too.

Did you find any ways to do it @PaddleStroke? Or some ideas of where to look at to work on that?

jipiboily avatar Aug 04 '20 10:08 jipiboily

Oh, it looks like this repo isn't maintained anymore and this fork might be the one maintained: https://github.com/RetroPie/EmulationStation

jipiboily avatar Aug 04 '20 11:08 jipiboily