lysmarine_gen icon indicating copy to clipboard operation
lysmarine_gen copied to clipboard

Lightdm service fails to start after installing DSI connected screen drivers (Edatec, Waveshare)

Open mgrouch opened this issue 9 months ago • 7 comments

Lightdm service fails to start after installing DSI connected screen drivers

users reported it as an issue with edatec ED-HMI3020-101C

Waveshare DSI LCD

See also https://github.com/bareboat-necessities/lysmarine_gen/discussions/327#discussioncomment-6546423

mgrouch avatar May 07 '24 13:05 mgrouch

image002

mgrouch avatar May 07 '24 13:05 mgrouch

Also

https://www.cruisersforum.com/forums/f134/recommended-cockpit-platform-285146-10.html#post3896976

mgrouch avatar May 07 '24 13:05 mgrouch

Per Edatec support after the following changes lightdm starts:

removed /etc/udev/rules.d/99-uinput.rules and modified /usr/share/X11/xorg.conf.d/90-touchinput.conf

user@lysmarine:~ $ cat /usr/share/X11/xorg.conf.d/90-touchinput.conf
Section "InputClass"
    Identifier "calibration"
    Driver "evdev"
    MatchProduct "4-0014 Goodix Capacitive TouchScreen gt911 Synopsys DesignWare I2C adapter"
    MatchDevicePath "/dev/input/event*"
    Option "EmulateThirdButton" "1"
    Option "EmulateThirdButtonTimeout" "750"
    Option "EmulateThirdButtonMoveThreshold" "30"
EndSection

mgrouch avatar May 09 '24 10:05 mgrouch

Regarding Waveshare DSI touchscreen issues

here is a thread on raspberry pi forums:

https://forums.raspberrypi.com/viewtopic.php?t=366011

mgrouch avatar May 09 '24 11:05 mgrouch

Rotating DSI display discussion

https://forums.raspberrypi.com/viewtopic.php?t=369626

best way to tell X that the desktop should be rotated is via

xrandr --output DSI-1 --rotate left

or similar

mgrouch avatar May 09 '24 11:05 mgrouch

Regarding screen rotation on Edatec

Look for CalibrationMatrix

https://www.cruisersforum.com/forums/f134/cant-install-opencpn-on-rpi5-286085.html#post3899802

mgrouch avatar May 16 '24 16:05 mgrouch

image001 Edatec support was able to solve all issues with their touchscreen on BBN OS:

Hi Mikhail,

I've solved the problem of twofing not working.

It needs to modify “/usr/share/X11/xorg.conf.d/90-touchinput.conf”

Section "InputClass"
    Identifier "calibration"
    Driver "evdev"
    MatchProduct "Goodix Capacitive TouchScreen"
    MatchDevicePath "/dev/input/event*"
    Option "EmulateThirdButton" "1"
    Option "EmulateThirdButtonTimeout" "750"
    Option "EmulateThirdButtonMoveThreshold" "30"
    Option "Calibration" "0 1280 0 800"
    Option "SwapAxes" "1"
    Option "Inversion" "1 0"
EndSection

mgrouch avatar Jun 04 '24 04:06 mgrouch