You are not logged in.

#1 2015-02-15 18:53:47

jon.reeve
Member
Registered: 2013-04-29
Posts: 22

Lenovo Yoga 2 touchscreen is recognized as a mouse--how can I fix it?

I just installed Arch, and I like it a lot so far, but the touch screen on my Lenovo Yoga 2 11" is being recognized as a mouse. It can't recognize multitouch gestures (like with touchegg), and I see a pointer whenever I touch the screen. Here's what `xinput list` returns:

> xinput list
⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳ ETPS/2 Elantech Touchpad                	id=13	[slave  pointer  (2)]
⎜   ↳ Atmel Atmel maXTouch Digitizer          	id=10	[slave  pointer  (2)]
⎣ Virtual core keyboard                   	id=3	[master keyboard (2)]
    ↳ Virtual core XTEST keyboard             	id=5	[slave  keyboard (3)]
    ↳ Power Button                            	id=6	[slave  keyboard (3)]
    ↳ Video Bus                               	id=7	[slave  keyboard (3)]
    ↳ Power Button                            	id=8	[slave  keyboard (3)]
    ↳ Lenovo EasyCamera                       	id=9	[slave  keyboard (3)]
    ↳ Ideapad extra buttons                   	id=11	[slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard            	id=12	[slave  keyboard (3)]

The touch screen is Atmet Atmel maXTouch Digitizer. Here's what it returns when I run `xinput list-props 10`:

> xinput list-props 10
Device 'Atmel Atmel maXTouch Digitizer':
	Device Enabled (139):	1
	Coordinate Transformation Matrix (141):	1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
	Device Accel Profile (266):	0
	Device Accel Constant Deceleration (267):	1.000000
	Device Accel Adaptive Deceleration (268):	1.000000
	Device Accel Velocity Scaling (269):	10.000000
	Device Product ID (258):	1003, 35869
	Device Node (259):	"/dev/input/event15"
	Evdev Axis Inversion (270):	0, 0
	Evdev Axis Calibration (271):	<no items>
	Evdev Axes Swap (272):	0
	Axis Labels (273):	"Abs MT Position X" (264), "Abs MT Position Y" (265), "None" (0), "None" (0)
	Button Labels (274):	"Button Unknown" (261), "Button Unknown" (261), "Button Unknown" (261), "Button Wheel Up" (145), "Button Wheel Down" (146)
	Evdev Scrolling Distance (275):	0, 0, 0
	Evdev Middle Button Emulation (276):	0
	Evdev Middle Button Timeout (277):	50
	Evdev Third Button Emulation (278):	0
	Evdev Third Button Emulation Timeout (279):	1000
	Evdev Third Button Emulation Button (280):	3
	Evdev Third Button Emulation Threshold (281):	20
	Evdev Wheel Emulation (282):	0
	Evdev Wheel Emulation Axes (283):	0, 0, 4, 5
	Evdev Wheel Emulation Inertia (284):	10
	Evdev Wheel Emulation Timeout (285):	200
	Evdev Wheel Emulation Button (286):	4
	Evdev Drag Lock Buttons (287):	0

I should add that the touch screen works fine on Fedora and Ubuntu, but not on Arch, so it's definitely not a hardware issue.

Offline

#2 2015-02-16 22:46:21

jon.reeve
Member
Registered: 2013-04-29
Posts: 22

Re: Lenovo Yoga 2 touchscreen is recognized as a mouse--how can I fix it?

Here's some output of dmesg if it helps:

> dmesg | grep Atmel
[    9.284982] input: Atmel Atmel maXTouch Digitizer as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/0003:03EB:8C1D.0002/input/input17
[    9.285207] hid-multitouch 0003:03EB:8C1D.0002: input,hidraw0: USB HID v1.11 Device [Atmel Atmel maXTouch Digitizer] on usb-0000:00:14.0-7/input0
[    9.294818] hid-generic 0003:03EB:8C1D.0003: hiddev0,hidraw1: USB HID v1.11 Device [Atmel Atmel maXTouch Digitizer] on usb-0000:00:14.0-7/input1

jon@jon-archlinux:~
> dmesg | grep multitouch
[    9.285207] hid-multitouch 0003:03EB:8C1D.0002: input,hidraw0: USB HID v1.11 Device [Atmel Atmel maXTouch Digitizer] on usb-0000:00:14.0-7/input0

Offline

#3 2015-02-16 23:41:58

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 1,212

Re: Lenovo Yoga 2 touchscreen is recognized as a mouse--how can I fix it?

I never used a touchscreen but wanted to provide some thoughts.
https://wiki.archlinux.org/index.php/Lenovo_Yoga_2_11  -> "Touchscreen works out of the box with evdev. The wacom driver (package: xf86-input-wacom) may also be used, and provides two-finger right-click, scroll, and pinch to zoom.  The packages easystroke or touchegg can also be used with X11 to provide further input gestures. "
https://wiki.archlinux.org/index.php/Touchegg -> if you are using touchegg, what is in your conf?

Have you tried xf86-input-wacom and/or easystroke?

Offline

#4 2015-02-17 02:46:05

jon.reeve
Member
Registered: 2013-04-29
Posts: 22

Re: Lenovo Yoga 2 touchscreen is recognized as a mouse--how can I fix it?

I have evdev, and have also tried installing wacom, but in both cases, the screen is still treated like a mouse. On Ubuntu, touching the screen sends touch events correctly, and by running touchegg in the terminal, I can see those multitouch events appear as gestures. On Arch, however, touching the screen seems to be interpreted as a mouse event--the pointer moves, multitouch is not recognized, and touch events like pinches and swipes are not sent to applications. When I run touchegg on Arch, it doesn't recognize any touch events, and so my configuration is irrelevant, since it doesn't see that there's a multitouch device. Easystroke also doesn't solve the problem, since it's a gesture handling application, and my issue is that the touch screen is not recognized as such. What I need is some sort of command like (I'm making this up) `xinput --enable-touch-capabilities 'Atmel Atmel maXTouch Digitizer'`.

Offline

#5 2015-02-17 03:11:03

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 1,212

Re: Lenovo Yoga 2 touchscreen is recognized as a mouse--how can I fix it?

I guess I didn't understand your situation clearly.  Hopefully someone with a touchscreen or knowledge about this chimes in.  GL!

Offline

#6 2015-03-22 12:37:15

hahiss
Member
Registered: 2014-08-26
Posts: 3

Re: Lenovo Yoga 2 touchscreen is recognized as a mouse--how can I fix it?

I have a simiar device -- a Flex 2 15 -- but the solution should be similar: you need to set your touchscreen driver to absolute mode.  There is probably a synaptics or wacom config file in /etc/X11/xorg.conf.d.  In that file, add the following line:

  Option "Mode" "ABSOLUTE" 

This is what the relevant section looks like:

Section "InputClass"
        Identifier "touchscreen"
        Driver "wacom"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event1"
        Option "Mode" "ABSOLUTE"
        Option "TapButton1" "1"
        Option "TapButton2" "2"
        Option "TapButton3" "3"
        Option "Evdev Wheel Emulation" "on"
        Option "Evdev Wheel Emulation Axes" "6 7 4 5"
        Option "VertTwoFingerScroll" "on"
        Option "HorizTwoFingerScroll" "on"
        Option "EmulateTwoFingerMinZ" "40"
        Option "EmulateTwoFingerMinW" "8"
        Option "CoastingSpeed" "0"
        Option "VertScrollDelta" "50"
        Option "HorizScrollDelta" "50"
        Option "ZoomDistance" "100"

Naturally, you'll want to change the device path and adjust the elements to your liking.

Offline

#7 2015-03-31 23:13:03

jon.reeve
Member
Registered: 2013-04-29
Posts: 22

Re: Lenovo Yoga 2 touchscreen is recognized as a mouse--how can I fix it?

Hahiss, my /etc/X11/xorg.conf.d directory is empty, and adding a file there with the contents you suggested causes me to be unable to log in.

Offline

#8 2015-04-01 19:59:23

Tutti
Member
Registered: 2015-02-26
Posts: 117

Re: Lenovo Yoga 2 touchscreen is recognized as a mouse--how can I fix it?

You can check: '/usr/share/X11/xorg.conf.d/' for the config file and copy it to '/etc/X11/xorg.conf.d/'
Then try to make the suggested change in the section similar to what hahiss posted

Offline

#9 2015-04-01 23:36:54

PaterSiul
Member
Registered: 2015-04-01
Posts: 18

Re: Lenovo Yoga 2 touchscreen is recognized as a mouse--how can I fix it?

The code in hahiss' post could be slightly improved:
1. At the end there has to be an "EndSection"
2. MatchDevicePath should have event15 instead of event1 (according to your xinput-output above)

If that doesn't help: What does /var/log/Xorg.0.log say?

Last edited by PaterSiul (2015-04-01 23:38:30)

Offline

Board footer

Powered by FluxBB