Linux Framebuffer set resolution correctly
<p>I have a RaspberryPi and want to display an image fullscreen without xserver - so write it directly to the framebuffer. No problem here.</p>

<p>But setting it fullscreen doesn't work. </p>

<pre><code>cat /sys/class/graphics/fb0/modes
</code></pre>

<p>yields:</p>

<pre><code>U:1024x768p-0
U:1920x1200p-0
U:1920x1080p-0
U:608x684p-0
</code></pre>

<p>So I use </p>

<pre><code>fbset -xres 1920 -yres 1200 -match
</code></pre>

<p>resulting in </p>

<pre><code>&gt;&gt;fbset
mode "1920x1200"
geometry 1920 1200 1920 1200 16
timings 0 0 0 0 0 0 0
rgba 5/11,6/5,5/0,0/16
endmode
</code></pre>

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

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

<p>What do I do wrong?</p>