← Back to team overview

ubuntu-x-swat team mailing list archive

[Bug 749493] [NEW] evdev ignores axis swap and inversion for Cando touch screen

 

Public bug reported:

Binary package hint: xserver-xorg-input-evdev

Bug found in Natty-beta1.  This feature is reported to work in Lucid and Maverick.
Package version xserver-xorg-input-evdev-2.6.0-1ubuntu1

The Cando touchscreen on Lenovo S10-3T tablet netbooks is not
registering evdev orientation changes.  Evdev properties update, but the
properties are not affecting the actual input.  The result is that when
the display is rotated, the touch input cannot be made to match.  After
rotating the display 90 degrees counter-clockwise, the following two
commands:

$ xinput set-prop "11" "Evdev Axes Swap" 1
$ xinput set-prop "11" "Evdev Axis Inversion" 1 0

should cause the mouse to move to the part of the screen that is
touched.  Instead, touching the right hand side of the screen moves the
mouse to the top, touching the top moves it to the left side, etc. -
just as if no evdev commands had been run.  These commands are reported
to have worked in Maverick - see for example
http://ubuntuforums.org/showthread.php?p=10555921&highlight=script#post10555921


Command output below shows that evdev is updating properties:

$ xinput list-props 11
Device 'Cando Corporation Cando 10.1 Multi Touch Panel with Controller':
	Device Enabled (135):	1
	Coordinate Transformation Matrix (137):	1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
	Device Accel Profile (258):	0
	Device Accel Constant Deceleration (259):	1.000000
	Device Accel Adaptive Deceleration (260):	1.000000
	Device Accel Velocity Scaling (261):	10.000000
	Evdev Axis Inversion (262):	0, 0
	Evdev Axis Calibration (263):	0, 4020, 0, 4020
	Evdev Axes Swap (264):	0
	Axis Labels (265):	"Abs X" (253), "Abs Y" (254), "Abs Misc" (255)
	Button Labels (266):	"Button Unknown" (252), "Button Unknown" (252), "Button Unknown" (252), "Button Wheel Up" (141), "Button Wheel Down" (142)
	Evdev Middle Button Emulation (267):	0
	Evdev Middle Button Timeout (268):	50
	Evdev Wheel Emulation (269):	0
	Evdev Wheel Emulation Axes (270):	0, 0, 4, 5
	Evdev Wheel Emulation Inertia (271):	10
	Evdev Wheel Emulation Timeout (272):	200
	Evdev Wheel Emulation Button (273):	4
	Evdev Drag Lock Buttons (274):	0

$ xinput set-prop "11" "Evdev Axes Swap" 1

$ xinput set-prop "11" "Evdev Axis Inversion" 1 1

$ xinput list-props 11
Device 'Cando Corporation Cando 10.1 Multi Touch Panel with Controller':
    Device Enabled (135):    1
    Coordinate Transformation Matrix (137):    1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
    Device Accel Profile (258):    0
    Device Accel Constant Deceleration (259):    1.000000
    Device Accel Adaptive Deceleration (260):    1.000000
    Device Accel Velocity Scaling (261):    10.000000
    Evdev Axis Inversion (262):    1, 1
    Evdev Axis Calibration (263):    0, 4020, 0, 4020
    Evdev Axes Swap (264):    1
    Axis Labels (265):    "Abs X" (253), "Abs Y" (254), "Abs Misc" (255)
    Button Labels (266):    "Button Unknown" (252), "Button Unknown" (252), "Button Unknown" (252), "Button Wheel Up" (141), "Button Wheel Down" (142)
    Evdev Middle Button Emulation (267):    0
    Evdev Middle Button Timeout (268):    50
    Evdev Wheel Emulation (269):    0
    Evdev Wheel Emulation Axes (270):    0, 0, 4, 5
    Evdev Wheel Emulation Inertia (271):    10
    Evdev Wheel Emulation Timeout (272):    200
    Evdev Wheel Emulation Button (273):    4
    Evdev Drag Lock Buttons (274):    0

$lsb_release -rd
Description:    Ubuntu Natty (development branch)
Release:           11.04

** Affects: xserver-xorg-input-evdev (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: evdev tablet touchscreen

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

Title:
  evdev ignores axis swap and inversion for Cando touch screen



Follow ups

References