I’ve rotated X environment with xrandr -o left|right|inverse|normal on touch screen device. Everything is working OK beside touch. When moving finger on the screen, it takes absolute coordinates of finger and moves cursor in opposite direction if the rotation is inverse. So if I slide up actually it slides down. So is there a way to configure Touch screen input to read relative coordinates not absolute. Touch screen driver is evdev.
Regards,
Levon
Relative/Absolute still won’t do what you want, so long as the orientation isn’t changed too. There is no generic mechanism to tell the X server to interpret pointer devices in a different orientations. You’ll need to somehow get the underlying device to report differently. There is a generic mechanism for communicating with the underlying device, however.
I have a Wacom stylus built in to my laptop. To restore normal orientation, I can do the following:
xsetwacom set “stylus” Rotate NONE
which directly talks to the underlying driver. I can also do the following:
xinput set-int-prop stylus ‘Wacom Rotation’ ‘8’ 0
which communicates with the X driver via XInput “properties” to do the same thing.
The “evdev” is fortunately one that does allow such remapping.
xinput list, in addition to the stylus shows my laptop’s trackpoint and an external mouse which are both run via evdev:xinput list-props 'HID 0430:0100'xinput set-int-prop 'HID 0430:0100' 'Evdev Axis Inversion' 8 1 1inverts my external mouse.To set to normal:
Rotated by 90 degrees:
Inverted:
Rotated by 90 degrees the other way:
You will need some way of picking out what device to put the properties on, of course.