Bug #1039
Updated by Hammel about 1 year ago
The Elecrow and GeeekPi 5inch displays i have work fine now but omxplayer will change their resolution for some reason. To get back to the 800x480 default resolution (so the launcher doesn't changes appearance) I need to utilize the following shell commands, either in a script or programmed into picam when omxplayer exits.
<pre><code class="shell">
#!/bin/bash
cd /opt/vc/bin
./tvservice --off # turn off tv service
./tvservice -e "DMT 87 DVI" # set it on (you will see a black screen)
chvt 5 # change to different virtual terminal
chvt 2 # change back to the previous virtual terminal
fbset -g 800 480 800 480 32 # adjust the size of the framebuffer
xrefresh -black -d unix:0.0
</code></pre>