Project

General

Profile

Actions

Bug #1039

closed

omxplayer changes resolution on 5" HDMI displays

Added by Hammel 8 months ago. Updated 8 months ago.

Status:
Closed
Priority:
Immediate
Assignee:
Target version:
Start date:
21 Sep 2023
Due date:
% Done:

100%

Estimated time:
Severity:
01 - Critical

Description

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.

#!/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

To get the values for "-e" and fbset, just parse the following.

$ /opt/vc/bin/tvservice -s
state 0x6 [DVI DMT (87) RGB full 15:9], 800x480 @ 59.00Hz, progressive

Or I could just strip out the bits I need from tvservice.c


Related issues

Related to PiBox - Feature #1038: Integrate touchscreen support for new displays.ClosedHammel16 Sep 2023

Actions
Actions

Also available in: Atom PDF