Skip to content
Advertisement

Linux Framebuffer set resolution correctly

I have a RaspberryPi and want to display an image fullscreen without xserver – so write it directly to the framebuffer. No problem here.

But setting it fullscreen doesn’t work.

JavaScript

yields:

JavaScript

So I use

JavaScript

resulting in

JavaScript

If I now use fbi to display an image, or just fill the framebuffer /dev/urandom >> /dev/fb0, just part of the screen is filled. The aspect etc. of the displayed part is correct, there is just a big black boundary around.

If I use other resolutions, everything works as expected, for example the stats-line in fbi gets bigger etc.

What do I do wrong?

Advertisement

Answer

Try this format for fbset:

JavaScript

And check you’re really looking at fb0 and not fb1:

JavaScript

Double check what was actually set:

JavaScript

Also try to run fbi with (again, to make sure you’re using fb0):

JavaScript

You could also force your settings into the fb0 by doing:

JavaScript

Technically, that is what fbset is doing anyway. Just making sure fb1 isn’t screwing things up.

Last, make sure your console is using fb0. I’m sure it is.

JavaScript

You may also want to reboot, so check what your setting is:

JavaScript

If its not 1920×1200, update to 1920×200. I think it located in /boot/cmdline.txt for raspberry pi. For me its /boot/uEnv.txt.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement