← Back to team overview

ubuntu-x-swat team mailing list archive

[Bug 767315] Re: xinput 2 "Coordinate Transformation Matrix" not affecting all events

 

>Interestingly, the original question
>
>> xinput 2 "Coordinate Transformation Matrix" not affecting all events
>
>... would refer to device id 2, which would be the master (Virtual core pointer id=2 [master pointer (3)]) ...

No it wouldn't. I was refering to XInput, protocol version 2, to say that this property is an XInput property, and not a driver (evdev…) property, like 'Evdev Axes Swap'; which is broken in ubuntu, but utouch team told me migrate to the new 'Coordinate Transformation Matrix', which also happen to be broken.
So, I was indeed referring to device 9 (see xinput.txt)


> The problem for me is that I can get my device (touchscreen) rotated with 
> `xinput set-float-prop...` if I get its id right - but I'd like to transform
> mouse AND touchscreen AND touchpad at the same time with one command, so I'm
> trying to change "Coordinate Transformation Matrix" of the master […]

I'm afraid this is another problem, I'd even say a it's a feature
request. For now you just do a for loop on all devices and apply the
appropriate coordinate transformation matrix.

For example (untested) :
ROTATION="left"
MATRIX="0 -1 1 1 0 0 0 0 1"
xrandr -o $ROTATION
for dev in $(xinput list |grep "slave  pointer" | sed -e 's/^.*id=//' | awk '{print $1}')
do
   xinput set-float-prop $dev "Coordinate Transformation Matrix" $MATRIX
done

Cheers :-)

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xorg-server in Ubuntu.
https://bugs.launchpad.net/bugs/767315

Title:
  xinput 2 "Coordinate Transformation Matrix" not affecting all events

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/767315/+subscriptions


References