Touch does not match screen rotation

Overview Forums Pocket-Kali Touch does not match screen rotation

Viewing 5 reply threads
  • Author
    Posts
    • #13451
      brian_mattey
      Participant

      Here’s an interesting one …

      Touch does not match the screen rotation.

      Looks like touch acts as if screen was not rotated so bottom left = top left and so on.

      Not sure if this is related to latest kernel or has been there a while because I normally don’t use touch.

    • #13452
      Re4son
      Keymaster

      Hi Brian,

      Not sure why – I don’t have any issues with touch running the latest kernel on an up to date Kali. I’m running KDE though. Are you on Gnome?

      Many thanks,
      Re4son

    • #13454
      brian_mattey
      Participant

      Hi Re4son,

      Yep I’m on Gnome.

      Thanks,

      Brian

    • #13455
      brian_mattey
      Participant

      Hi,

      I installed KDE with SDDM and switched to it and still same problem 🙁

      Thanks,

      Brian

    • #13457
      brian_mattey
      Participant

      Hi Re4son,

      If I check the configuration using xinput …

      root@GPDKali:~# xinput –list-props 14
      Device ‘Goodix Capacitive TouchScreen’:
      Device Enabled (154): 1
      Coordinate Transformation Matrix (156): 0.000000, 1.000000, 0.000000, -1.000000, 0.000000, 1.000000, 0.000000, 0.000000, 1.000000
      libinput Calibration Matrix (309): 0.000000, -1.000000, 1.000000, 1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000
      libinput Calibration Matrix Default (310): 0.000000, -1.000000, 1.000000, 1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000
      libinput Send Events Modes Available (274): 1, 0
      libinput Send Events Mode Enabled (275): 0, 0
      libinput Send Events Mode Enabled Default (276): 0, 0
      Device Node (277): “/dev/input/event10”
      Device Product ID (278): 1046, 911

      … the “libinput Calibration Matrix” is different to the “Coordinate Transformation Matrix” … which seems wrong.

      So I was wondering if the two match on yours?

      Thanks,

      Brian

    • #13458
      brian_mattey
      Participant

      Ok … got it …

      I looked at the Xorg log and could see the dodgy settings being applied from /etc/udev/rules.d/99-goodix-touchscreen.rules

      ACTION==”add|change”, KERNEL==”event[0-9]*”, ATTRS{name}==”Goodix Capacitive TouchScreen”, ENV{LIBINPUT_CALIBRATION_MATRIX}=”0 -1 1 1 0 0 0 0 1″

      With these settings both the login screen and logged in screen had touch rotation mismatched but not the same mismatch.

      First I edited the file and made settings same as transformation matrix.

      ACTION==”add|change”, KERNEL==”event[0-9]*”, ATTRS{name}==”Goodix Capacitive TouchScreen”, ENV{LIBINPUT_CALIBRATION_MATRIX}=”0 1 0 -1 0 1 0 0 1″

      The login screen was then right but the logged in was still wrong.

      Then I removed the file completely.

      Login screen is still wrong (left is top) but logged in screen is now OK which is what matters.

      So all good now 🙂

Viewing 5 reply threads
  • You must be logged in to reply to this topic.