I’m trying to set up a command line program with 4K graphics, written in C++. To check the framebuffer modes available I run:
and the output includes the following lines:
However, attempts to use fbset from the command line, or FBIOPUT_VSCREENINFO ioctl calls from within code to set the resolution to 3840x2160 on /dev/fb0 result in a dead display.
I am able to set the resolution back to 1920x1080 in code, and the display returns.
Is there some trick to using a 4K framebuffer in C++?