Thank you for your donation!


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


Solved: Touch not working correct
#12
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.
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
insert to the beginning of the line
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
comment all lines starting with hdmi*
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
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
Reply


Messages In This Thread
Touch not working correct - by felix1024 - 04-24-2024, 02:45 PM
RE: Touch not working correct - by felix1024 - 04-27-2024, 04:30 PM
RE: Touch not working correct - by Tim Curtis - 04-27-2024, 07:06 PM
RE: Touch not working correct - by felix1024 - 04-28-2024, 09:35 AM
RE: Touch not working correct - by Tim Curtis - 04-28-2024, 11:10 AM
RE: Touch not working correct - by felix1024 - 04-28-2024, 12:19 PM
RE: Touch not working correct - by Tim Curtis - 04-28-2024, 01:01 PM
RE: Touch not working correct - by popeye65 - 04-28-2024, 12:30 PM
RE: Touch not working correct - by Tim Curtis - 04-28-2024, 01:12 PM
RE: Touch not working correct - by felix1024 - 04-30-2024, 03:08 PM
RE: Touch not working correct - by Tim Curtis - 04-30-2024, 05:50 PM
RE: Touch not working correct - by felix1024 - 05-02-2024, 05:34 PM
RE: Touch not working correct - by Tim Curtis - 05-02-2024, 10:16 PM
RE: Touch not working correct - by fdealexa - 05-03-2024, 12:05 AM

Forum Jump: