tonarino / just-gl

Run an OpenGL application on Linux, and nothing more.
1 stars 0 forks source link

Render to a virtual framebuffer until monitor is connected #7

Open strohel opened 11 months ago

strohel commented 11 months ago

Currently just-gl refuses to start if specified connector doesn't have a monitor connected.

The ideal behavior is that just-gl checks that the requested connector is valid for requested GPU, but doesn't fail if it is disconnected. It would instead create some kind of a virtual framebuffer (that would be however tied to the specified GPU - perhaps attaching to some of its CRTCs already). Once the monitor connects, it would set the desired mode (failing if it isn't available) and make the framebuffer visible on it.

Xorg can do this, so there should be a way for the underlying technology to support that. (an application just need to go lenghts to achieve this with Xorg - short of hand-crafting xorg.conf and carefully orchestrating xrandr calls).

Definitely not needed for MVP, but this is one of the motivating factors for tonari to move out of Xorg, so it would be nice to demonstrate this is possible.