05-02-2024, 05:34 PM
Solution for moode 8.3.9 image install and local Waveshare DSI touchscreen display
tested on pi4/cm4, step by step instruction:
prerequisite is a clean moode installation with ssh access.
(ignore already exists…)
See description https://github.com/waveshare/Waveshare-DSI-LCD
now one need to edit .xinit.rc in home directory, insert after xset s 600
next make boot text readable
insert to the beginning of the line
last step edit configuration
comment all lines starting with hdmi*
Now use browser on your pc to enable local display by configure - peripherals - display -> on
for me everything is working now as expected use it at your own risk!
good luck
@Tim
May be it would be a good idea not to overwrite .xinitrc when doing updates.
-Felix
tested on pi4/cm4, step by step instruction:
prerequisite is a clean moode installation with ssh access.
Code:
$ sudo apt-get update -y
$ sudo apt-get upgrade -y
$ sudo apt-get install git
$ git clone https://github.com/waveshare/Waveshare-DSI-LCD
$ cd Waveshare-DSI-LCD/
$ cd 6.1.21
$ cd 64
$ sudo bash ./WS_xinchDSI_MAIN.sh 79 I2C0
$ sudo reboot
(ignore already exists…)
See description https://github.com/waveshare/Waveshare-DSI-LCD
now one need to edit .xinit.rc in home directory, insert after xset s 600
Code:
# disable HDMI ports
xrandr --output HDMI-1 --off
xrandr --output HDMI-2 --off
#Force rotation for Waveshare
xrandr --output DSI-1 --rotate right --mode 400x1280
fbset --geometry 1280 400 1280 400 16
# Capture screen size
#SCREENSIZE="$(fbset -s | awk '$1 == "geometry" { print $2","$3 }')"
SCREENSIZE="1280,400"
next make boot text readable
Code:
$ sudo vi /boot/cmdline.txt
Code:
video=HDMI-1:d video=HDMI-2:d video=DSI-1:400x1280e,rotate=270
last step edit configuration
Code:
$ sudo vi /boot/config.txt
Code:
#hdmi_force_hotplug:0=1
#hdmi_force_hotplug:1=1
#hdmi_drive=2
#hdmi_blanking=1
#hdmi_force_edid_audio=1
#hdmi_force_hotplug=1
#hdmi_group=0
for me everything is working now as expected use it at your own risk!
good luck
@Tim
May be it would be a good idea not to overwrite .xinitrc when doing updates.
-Felix