Thank you for your donation!


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


Solved: Waveshare DSI 7.9 Touch display on Moode 9
#14
Okay, got it all working for the Waveshare 5 inch
https://www.waveshare.com/wiki/5inch_DSI_LCD

To config.txt I added as per the link above:
Code:
dtoverlay=vc4-kms-dsi-7inch

To cmdline.txt I added at the start of the line:
Code:
video=HDMI-1:d video=HDMI-2:d video=DSI-1:800x480M@60,rotate=90

To ~/.xinitrc I added:
Code:
xrandr --output HDMI-1 --off
xrandr --output HDMI-2 --off
xrandr --output DSI-1 --rotate left --mode 800x480
fbset --geometry 800 480 800 480 16
SCREENSIZE="480,800"
#SCREENSIZE="$(kmsprint | awk '$1 == "FB" {print $3}' | awk -F"x" '{print $1","$2}')"

Then in /usr/share/X11/xorg.conf.d/40-libinput.conf I changed section InputClass to:
Code:
Section "InputClass"
      Identifier "libinput touchscreen catchall"
      MatchIsTouchscreen "on"
      Option "CalibrationMatrix" "0 -1 1 1 0 0 0 0 1"
      MatchDevicePath "/dev/input/event*"
      Driver "libinput"
EndSection

Works like a charm now...
Reply


Messages In This Thread
RE: Waveshare DSI 7.9 Touch display on Moode 9 - by WilhelmT - 11-05-2024, 10:05 PM

Forum Jump: