Project

General

Profile

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> 

 To get the values for "-e" and fbset, just parse the following. 
 <pre><code class="shell"> 
 $ /opt/vc/bin/tvservice -s 
 state 0x6 [DVI DMT (87) RGB full 15:9], 800x480 @ 59.00Hz, progressive 
 </code></pre> 
 Or I could just strip out the bits I need from "tvservice.c":https://github.com/raspberrypi/userland/blob/master/host_applications/linux/apps/tvservice/tvservice.c 

Back