I am writing a program using the framebuffer device directly and I have three problems there.
1) The only way I can set the screen resolution correct is by passing the kernel option during boot:
video=800x600
when using others like:
video=vesafb:800x600-32,ywrap
,
video=uvesafb:800x600-32,ywrap
,
video=intelfb:800x600-32,ywrap
the framebuffer is 800x600 in the terminal, but as soon as i start the program the resolution goes back to its native resolution (1366x768). Is this an Intel (gma) issue or am I doing something wrong here?
2) With all four above variants I am not able to acquire offscreen buffers. In example doubling the y-resolution via FBIOPUT_VSCREENINFO
. Is there another option to be set to be able to use offscreen framebuffer memory? May be related to the above issue?
3) Exiting the program I am stuck on the framebuffer, even though the program cleans up and resets the old configuration. I have to go to another terminal by CTRL+ALT+F1
and back by CTRL+ALT+F7
to get back into X. Why could this be, assuming the program does everything correct?
I am on an Intel GMA 3150.