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:
To cmdline.txt I added at the start of the line:
To ~/.xinitrc I added:
Then in /usr/share/X11/xorg.conf.d/40-libinput.conf I changed section InputClass to:
Works like a charm now...
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...