Bug 8781

Summary: Elantech touchpad is incorrectly recogonised as a "ImPS/2 Logitech Wheel Mouse"
Product: Drivers Reporter: Martin Ahnelöv (operagasten)
Component: Input DevicesAssignee: drivers_input-devices
Status: CLOSED CODE_FIX    
Severity: normal CC: chealer, cosoleto, dmitry.torokhov, dutta.uttaran, norman, valankar
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.24 Subsystem:
Regression: No Bisected commit-id:

Description Martin Ahnelöv 2007-07-19 07:33:22 UTC
Most recent kernel where this bug did not occur: N/A
Distribution: Ubuntu Fiesty 7.04
Hardware Environment: http://launchpadlibrarian.net/8321931/lspci-vvn.log http://launchpadlibrarian.net/8321932/lscpi-vv.log

Problem Description: Hi! I come from the ubuntu-project. One of our users have reported a bug concerning his synaptic touchpad:
"My touchpad is incorrectly recognised as a 'ImPS/2 Logitech Wheel Mouse'" and this "prevents me from configuring touchpad options like disabling the touchpad whilst typing or configuring the shortcut key (fn + F2) to disable the touchpad whilst i have a usb mouse attached."

More info:
http://launchpadlibrarian.net/8321915/dmesg.log
http://launchpadlibrarian.net/8355072/lsusb.log
http://launchpadlibrarian.net/8355074/pbud.log

The whole bug report on launchpad is here: https://launchpad.net/bugs/123775
Comment 1 Dmitry Torokhov 2007-07-19 08:00:27 UTC
Is there a reason to believe that the touchpad is indeed synaptics? I looked through M660 specs on MSI's site that they don't mention synaptics in either specs or driver downloads.
Comment 2 Martin Ahnelöv 2007-07-19 08:44:29 UTC
From https://launchpad.net/bugs/123775:

"cat /var/log/Xorg.0.log |grep synaptics" outputs:

(II) LoadModule: "synaptics"
(II) Loading /usr/lib/xorg/modules/input//synaptics_drv.so
(II) Module synaptics: vendor="The XFree86 Project"
Synaptics Touchpad no synaptics event device found (checked 19 nodes)
(EE) Synaptics Touchpad no synaptics touchpad detected and no repeater device
(II) UnloadModule: "synaptics"

where as "sudo tpconfig -i" outputs:

Found Synaptics Touchpad.
Firmware: 8.96 (multiple-byte mode).
Sensor type: unknown (0).
Geometry: rectangular/landscape/up.
Packets: absolute, 80 packets per second.
Corner taps disabled; no tap gestures.
Edge motion: none.
Z threshold: 6 of 7.
2 button mode; corner tap is right button click.
Comment 3 Dmitry Torokhov 2007-07-19 12:24:37 UTC
If tpconfig is the utility from here: http://compass.com/synaptics/ then I would not trust it on 2.6 kernel - it uses /dev/psaux to talk to the touchpad and psaux is an emulated device in 2.6.
Comment 4 Alan 2007-07-23 02:19:41 UTC
Hi,  I was the user who logged this with ubuntu. I have since spoken to MSI and the touchpad is an Elantech device.
http://www.elantech.com.tw/003/pro.aspx
http://www.elantech.com.tw/003/pro1.aspx
http://www.elantech.com.tw/003/dm/DM-1.pdf
http://www.elantech.com.tw/003/dm/DM-2.pdf

It appears there is no linux driver for this touchpad. I have emailed Elantech for an interface guide, but im not very hopeful about them replying.

Is there anything I can do to help ensure a driver is created for this device so that I can have the functionality that touchpads offer. for example like synaptics, disabling the touchpad whilst typing or reconfiguring what each area does.

Thank you

Alan  
Comment 5 Uttaran Dutta 2007-08-14 07:32:38 UTC
Hello, I have a LG laptop LG Xnote -G1 325LA2 with the same Elantech touch pad with showing the same issue reproduce-able over 2.6.19/20/21/22 kernels.With what i gathered that this touchpad is Elantech and has no documented support till now for linux.

   From what i can think the various options now
1)Extended existing synaptic driver to support this device - I have discussed the spec of Elantech touch pad  with a synpatics developer who said at first view it seemed to be quite different at hardware level

2)Develop a X driver for Elantech touchpad - this could be done only if the hardware provides discreet X,Y values

3)Develop a seprate kernel driver- If the hardware is totally different from synaptics and it only sends voltage levels ,this would be the only option. :(  

Any other Idea or comments on which one of the above would be wiser?
Comment 6 Alan 2007-08-27 11:56:19 UTC
these are the details from the elantech website, is this any good to a hardware hacker?

Resolution  	300DPI, Sensor Lines 26x14
Max Report Rate  	80 reports per second
Rock-Switch  	2 Switches
Scrolling Function  	Horizontal, Vertical
Interface  	PS2/USB (megabook m660 is ps2, by the seems of things)
Comment 7 Uttaran Dutta 2007-09-18 07:59:16 UTC
The patch for elantech touch pad for kernel 2.6.22.6 is out 
http://thread.gmane.org/gmane.linux.kernel.input/3005
testers needed
Comment 8 Filipus Klutiero 2008-03-12 00:45:30 UTC
I'm also experiencing this with Debian's 2.6.24 source. The report summary should be changed to talk about Elantech rather than Synaptics.
Comment 9 Norman Elliott 2008-09-18 01:37:00 UTC
I have an elantech touchpad. Arjan Opmeer developed a synaptics driver for this. It is recognized as a synaptics touchpad and is in the tree for ubuntu Intrepid.
i have tested the alpha5 release but it does not fix the problem for me.
Leann Ogasawara, one of the Ubuntu developers, asked me to test it and I have reported back to him.

Essentially my reply was :

"Prior to my recent attempts to get this working i had been emailing
Arjan Opmeer who developed the elantech patch.

At one point he said this :
---------------------------------------------------------------------------------------------------------------
Ah, I spot a problem. Unfortunately the Elantech touchpad does not seem to
report finger pressure. (Or maybe it can be enabled by toggling some other
undocumented bit somewhere that I haven't been able to figure out?)
Therefore all clicks get reported with a default pressure that the driver
picks. As you can see in elantech.h I kind of randomly chose to use 128 out
of a maximum of 255. These values seemed to work for me.

This means that altering Finger{High,Low,Press} (or any setting that depends
on a pressure value) will not give you the result you want. What worked for
me was altering MaxTapTime to a value that suited my personal clicking
style.
-----------------------------------------------------------------------------------------------------------------

I have found that editing xorg.conf does nothing, in fact nothing seems to alter this.
I assume it is because the value is set and cannot therefore be altered dynamically.
Hence setting MaxTapTime to 0 makes no difference.
Because of this I have rmmod psmouse in /etc/rc.local and am using a wireless usb mouse."

I am hoping this will get fixed.
Comment 10 Francesco Cosoleto 2010-03-21 16:58:53 UTC
Summary should be changed to talk about Elantech touchpad driver support rather than Synaptics. According to http://arjan.opmeer.net/elantech/ the driver has been added to the 2.6.28 kernel thus likely this old bug is closeable.