The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Local display with 1024x600 HDMI touch screen
#1
Hi,

Not sure if this has been posted already.

I'm using MoOde Audio version 9.0.1 on a RPi4 with a local HDMI touch display (1024x600) from AliExpress.
In order to get the correct resolution, my first attempt was to add this to /boot/firmware/config.txt (and comment out the default settings for hdmi_group and hdmi_drive):

Code:
# 1024x600
hdmi_group=2
hdmi_mode=87
hdmi_drive=1
display_rotate=0
hdmi_cvt 1024 600 50 6 0 0 0

During the reboot this works fine, but when the X11-server starts (with the chromium browser, see /home/pi/.xinitrc), the resolution switches to a higher resolution (1920x1080). This does not give me the optimal 'sharpness' on my local display.

In order to set the correct resolution, I added this to the /home/pi/.xinitrc file, just before the chromium browser is started:

Code:
xrandr --newmode "1024x600_50.00"   39.50  1024 1056 1152 1280  600 603 613 621 -hsync +vsync
xrandr --addmode HDMI-1 "1024x600_50.00"
xrandr --output HDMI-1 --mode "1024x600_50.00"
SCREENSIZE="1024,600"

I used the cvt command to get the settings for the mode line (e.g., for 1024x600 @50Hz):

Code:
cvt 1024 600 50
# 1024x600 49.69 Hz (CVT) hsync: 30.86 kHz; pclk: 39.50 MHz
Modeline "1024x600_50.00"   39.50  1024 1056 1152 1280  600 603 613 621 -hsync +vsync


Hope this helps!


-Frank
Reply


Messages In This Thread
Local display with 1024x600 HDMI touch screen - by ftw64 - 05-31-2024, 08:13 PM

Forum Jump: