How to rotate touchscreen?

I cant seem to figure out how to rotate touchscreen.

when i rotate the screen( works fine), the touchscreen orientation does not change.

when starting Gnome using Xorg i’m able to change the touchscreen orientation in “40-libinput.conf”

How can i change the orientation using waylands??

regards

**solution : **

Create a file something like /etc/udev/rules.d/99-mytouch-touch.rules with contents like this:

/etc/udev/rules.d/99-mytouch-touch.rules

ENV{ID_VENDOR_ID}==“2149”,ENV{ID_MODEL_ID}==“2703”,ENV{WL_OUTPUT}=“DVI1”,ENV{LIBINPUT_CALIBRATION_MATRIX}=“1 0 0 0 1 0”

filled in my vendorID/modelID

touchscreen orientations modes:

ENV{LIBINPUT_CALIBRATION_MATRIX}=“1 0 0 0 1 0” # default

ENV{LIBINPUT_CALIBRATION_MATRIX}=“0 -1 1 1 0 0” # 90 degree clockwise

ENV{LIBINPUT_CALIBRATION_MATRIX}="-1 0 1 0 -1 1" # 180 degree clockwise

ENV{LIBINPUT_CALIBRATION_MATRIX}=“0 1 0 -1 0 1” # 270 degree clockwise

ENV{LIBINPUT_CALIBRATION_MATRIX}="-1 0 1 1 0 0" # reflect along y axis

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.