ButtonPress and ButtonRelease of button 4 are generated by left click of synaptic touch pad

Bug #159968 reported by Ha, Myung O
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Low
Unassigned

Bug Description

I have Xnote C1 which has synaptic touchpad with two buttons - left and right button. Left button acts like scroll down button and right button acts like scroll button of mouse. screen is scrolled down on pressing left button and is scrolled up on pressing right button.

xev prints the following message when click left button:

ButtonPress event, serial 31, synthetic NO, window 0x3800001,
    root 0x1a5, subw 0x0, time 180885017, (53,85), root:(872,643),
    state 0x0, button 4, same_screen YES

ButtonPress event, serial 31, synthetic NO, window 0x3800001,
    root 0x1a5, subw 0x0, time 180885092, (53,85), root:(872,643),
    state 0x800, button 1, same_screen YES

ButtonRelease event, serial 31, synthetic NO, window 0x3800001,
    root 0x1a5, subw 0x0, time 180885153, (53,85), root:(872,643),
    state 0x900, button 1, same_screen YES

ButtonRelease event, serial 31, synthetic NO, window 0x3800001,
    root 0x1a5, subw 0x0, time 180885153, (53,85), root:(872,643),
    state 0x800, button 4, same_screen YES

the following message comes from /proc/bus/input/devices:

I: Bus=0017 Vendor=0001 Product=0001 Version=0100
N: Name="Macintosh mouse button emulation"
P: Phys=
S: Sysfs=/class/input/input0
U: Uniq=
H: Handlers=mouse0 event0
B: EV=7
B: KEY=70000 0 0 0 0
B: REL=3

I: Bus=0011 Vendor=0001 Product=0001 Version=ab41
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/class/input/input1
U: Uniq=
H: Handlers=kbd event1
B: EV=120013
B: KEY=402000000 3802078f840d001 feffffdfffefffff fbfffffffffffffe
B: MSC=10
B: LED=7

I: Bus=0011 Vendor=0002 Product=0007 Version=01b1
N: Name="SynPS/2 Synaptics TouchPad"
P: Phys=isa0060/serio2/input0
S: Sysfs=/class/input/input2
U: Uniq=
H: Handlers=mouse1 event2
B: EV=b
B: KEY=6420 70003 0 0 0 0
B: ABS=11000003

I: Bus=0019 Vendor=0000 Product=0002 Version=0000
N: Name="Power Button (FF)"
P: Phys=button_power/button/input0
S: Sysfs=/class/input/input3
U: Uniq=
H: Handlers=kbd event3
B: EV=3
B: KEY=10000000000000 0

I: Bus=0019 Vendor=0000 Product=0005 Version=0000
N: Name="Lid Switch"
P: Phys=PNP0C0D/button/input0
S: Sysfs=/class/input/input4
U: Uniq=
H: Handlers=event4
B: EV=21
B: SW=1

I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button (CM)"
P: Phys=PNP0C0C/button/input0
S: Sysfs=/class/input/input5
U: Uniq=
H: Handlers=kbd event5
B: EV=3
B: KEY=10000000000000 0

I: Bus=0019 Vendor=0000 Product=0003 Version=0000
N: Name="Sleep Button (CM)"
P: Phys=PNP0C0E/button/input0
S: Sysfs=/class/input/input6
U: Uniq=
H: Handlers=kbd event6
B: EV=3
B: KEY=4000 0 0

synaptic touchpad is configured like the bellow in /etc/X11/xorg.conf:

Section "InputDevice"
 Identifier "Configured Mouse"
 Driver "mouse"
 Option "CorePointer"
 Option "Device" "/dev/input/mice"
 Option "Protocol" "ImPS/2"
 Option "ZAxisMapping" "4 5"
 Option "Emulate3Buttons" "true"
EndSection

Section "InputDevice"
 Identifier "Synaptics Touchpad"
 Driver "synaptics"
 Option "SendCoreEvents" "true"
 Option "Device" "/dev/psaux"
 Option "Protocol" "auto-dev"
 Option "HorizEdgeScroll" "0"
 Option "SHMConfig" "on"
EndSection

Revision history for this message
Ha, Myung O (myungo) wrote :

ubuntu 7.10(amd64) is installed on the laptop. the kernel version is "2.6.22-14-generic #1 SMP". the kernel is installed by "linux-image-2.6.22-14-generic package"

Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

Thanks for your report.
Please attach the missing information as described here: https://wiki.ubuntu.com/DebuggingTouchpadDetection#head-31ab8e1c44cc192521d8470f61358f45ab1fe5ce.

Changed in xserver-xorg-input-synaptics:
assignee: nobody → pascal-devuyst
status: New → Incomplete
Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments.
Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in xserver-xorg-input-synaptics:
status: Incomplete → Invalid
philipp (moenchp)
Changed in xserver-xorg-input-synaptics (Ubuntu):
status: Invalid → New
Revision history for this message
philipp (moenchp) wrote :

In this post http://ubuntuforums.org/showpost.php?s=7a671b66b98b58680ce61c80aa36cc03&p=8956062&postcount=10, I described the problem and a solution which worked in Hardy.

Revision history for this message
Gursimran singh (simar) wrote :

Thanks for reporting the bug and help us to make ubuntu better..

Revision history for this message
Gursimran singh (simar) wrote :

Please include the output of synclient -l >synclient.txt .
Seems to be a configration issue. Your button mappings may be out of order.

Also upload a pic from a camera of your touchpad if possible

Revision history for this message
philipp (moenchp) wrote :

Here is my output of synclient.
Do you need a picture of the touchpad from the outside?

Revision history for this message
Gursimran singh (simar) wrote :

Your hardware does'nt seems to be perfectly supported by the kernel. Could you upload a pic of your device so that I can analyse the structure ..

Changed in xserver-xorg-input-synaptics (Ubuntu):
status: New → Incomplete
Revision history for this message
Gursimran singh (simar) wrote :

Still you can have a patch that can fix your button mappings for now. After you upload the pic the next kernel may support it automatically as we can put this in a wishlist ...

For that please upload xev outputs again of both of you clicks in seperate comments.

Revision history for this message
philipp (moenchp) wrote :

Here is a picture of my touchpad:
http://dl.dropbox.com/u/7981005/DSC_0001.JPG
A patch would be nice.

Revision history for this message
philipp (moenchp) wrote :
Revision history for this message
Gursimran singh (simar) wrote :

philipp: I can't filter your events, what you did when. This contain keypress events of keyboard also. Probably you could help me out, which events are invoked when when you press your left and right botton in seperate comments directly (not in a file).

"
ButtonPress event, serial 36, synthetic NO, window 0x5400001,
    root 0x1ad, subw 0x5400002, time 964712, (45,26), root:(2011,80),
    state 0x10, button 4, same_screen YES

EnterNotify event, serial 36, synthetic NO, window 0x5400001,
    root 0x1ad, subw 0x0, time 964712, (45,26), root:(2011,80),
    mode NotifyGrab, detail NotifyInferior, same_screen YES,
    focus YES, state 2064

KeymapNotify event, serial 36, synthetic NO, window 0x0,
    keys: 4294967275 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
           0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

ButtonPress event, serial 36, synthetic NO, window 0x5400001,
    root 0x1ad, subw 0x5400002, time 964787, (45,26), root:(2011,80),
    state 0x810, button 1, same_screen YES

ButtonRelease event, serial 36, synthetic NO, window 0x5400001,
    root 0x1ad, subw 0x5400002, time 964870, (45,26), root:(2011,80),
    state 0x910, button 1, same_screen YES

ButtonRelease event, serial 36, synthetic NO, window 0x5400001,
    root 0x1ad, subw 0x5400002, time 964870, (45,26), root:(2011,80),
    state 0x810, button 4, same_screen YES
"

Revision history for this message
philipp (moenchp) wrote :
Download full text (4.0 KiB)

Here is the output of the leftclick:

EnterNotify event, serial 36, synthetic NO, window 0x5600001,
    root 0x1ad, subw 0x0, time 944204, (26,39), root:(1966,89),
    mode NotifyGrab, detail NotifyInferior, same_screen YES,
    focus YES, state 2064

KeymapNotify event, serial 36, synthetic NO, window 0x0,
    keys: 4294967213 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
           0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

LeaveNotify event, serial 36, synthetic NO, window 0x5600001,
    root 0x1ad, subw 0x0, time 944204, (26,39), root:(1966,89),
    mode NotifyUngrab, detail NotifyInferior, same_screen YES,
    focus YES, state 2064

ButtonPress event, serial 36, synthetic NO, window 0x5600001,
    root 0x1ad, subw 0x5600002, time 944204, (26,39), root:(1966,89),
    state 0x10, button 4, same_screen YES

EnterNotify event, serial 36, synthetic NO, window 0x5600001,
    root 0x1ad, subw 0x0, time 944204, (26,39), root:(1966,89),
    mode NotifyGrab, detail NotifyInferior, same_screen YES,
    focus YES, state 2064

KeymapNotify event, serial 36, synthetic NO, window 0x0,
    keys: 4294967275 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
           0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

ButtonPress event, serial 36, synthetic NO, window 0x5600001,
    root 0x1ad, subw 0x5600002, time 944280, (26,39), root:(1966,89),
    state 0x810, button 1, same_screen YES

ButtonRelease event, serial 36, synthetic NO, window 0x5600001,
    root 0x1ad, subw 0x5600002, time 944296, (26,39), root:(1966,89),
    state 0x910, button 1, same_screen YES

ButtonRelease event, serial 36, synthetic NO, window 0x5600001,
    root 0x1ad, subw 0x5600002, time 944296, (26,39), root:(1966,89),
    state 0x810, button 4, same_screen YES

LeaveNotify event, serial 36, synthetic NO, window 0x5600001,
    root 0x1ad, subw 0x0, time 944296, (26,39), root:(1966,89),
    mode NotifyUngrab, detail NotifyInferior, same_screen YES,
    focus YES, state 16

And the rightclick

EnterNotify event, serial 36, synthetic NO, window 0x5600001,
    root 0x1ad, subw 0x0, time 849069, (46,49), root:(1986,99),
    mode NotifyGrab, detail NotifyInferior, same_screen YES,
    focus YES, state 4112

KeymapNotify event, serial 36, synthetic NO, window 0x0,
    keys: 4294967213 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
           0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

LeaveNotify event, serial 36, synthetic NO, window 0x5600001,
    root 0x1ad, subw 0x0, time 849069, (46,49), root:(1986,99),
    mode NotifyUngrab, detail NotifyInferior, same_screen YES,
    focus YES, state 4112

ButtonPress event, serial 36, synthetic NO, window 0x5600001,
    root 0x1ad, subw 0x5600002, time 849069, (46,49), root:(1986,99),
    state 0x10, button 5, same_screen YES

EnterNotify event, serial 36, synthetic NO, window 0x5600001,
    root 0x1ad, subw 0x0, time 849069, (46,49), root:(1986,99),
    mode NotifyGrab, detail NotifyInferior, same_screen YES,
    focus YES, state 4112

KeymapNotify event, serial 36, synthetic NO, window 0x0,
    keys: 4294967275 0 0 0 0 0 0 0 ...

Read more...

Revision history for this message
Gursimran singh (simar) wrote :

philipp: Sorry I still did not get what I look for. Follow these instructions,

1. Run xev in the terminal
2. After the windows appears move the cursor inside the window and stop touching the touchpad.
3. Note the time of the last event. It should be something like this eg -time 1470960 in

MotionNotify event, serial 33, synthetic NO, window 0x4600001,
    root 0x15d, subw 0x0, time 1441783, (66,76), root:(69,390),
    state 0x0, is_hint 0, same_screen YES

4. Note MotionNotify here. It should be same for your case also.
5. Press and release your left click like a normal click.
6. Note the events time. It should be like this

ButtonRelease event, serial 33, synthetic NO, window 0x4600001,
    root 0x15d, subw 0x0, time 1443213, (66,76), root:(69,390),
    state 0x100, button 1, same_screen YES

7. Now move the cursor outside the window and find the time you noted above, in the terminal.
8. Paste that events here for left click and right click in seperate comments again.

May be as this

MotionNotify event, serial 33, synthetic NO, window 0x4600001,
    root 0x15d, subw 0x0, time 1441783, (66,76), root:(69,390),
    state 0x0, is_hint 0, same_screen YES

ButtonPress event, serial 33, synthetic NO, window 0x4600001,
    root 0x15d, subw 0x0, time 1443180, (66,76), root:(69,390),
    state 0x0, button 1, same_screen YES

ButtonRelease event, serial 33, synthetic NO, window 0x4600001,
    root 0x15d, subw 0x0, time 1443213, (66,76), root:(69,390),
    state 0x100, button 1, same_screen YES

This is all I want.

Revision history for this message
philipp (moenchp) wrote :

No problem at all.
I did the procedure you described in post #17. The MotionNotify event was just before the EnterNotify event. The events I posted were all related to one click, the results are three clicks an scrilling.

Revision history for this message
philipp (moenchp) wrote :

No problem at all.
I did the procedure you described in post #17. The MotionNotify event was just before the EnterNotify event. The events I posted were all related to one click, the results are three clicks an scrolling.

Gursimran singh (simar)
Changed in xserver-xorg-input-synaptics (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Gursimran singh (simar) wrote :

philipp

It seems that when you try to tap with one finger, the Two Finger emulation scrolling is invoked. This could be due to the default values of EmulateTwoFingerMinW, EmulateTwoFingerMinZ is not workable for you. You can try to change these values by running this in terminal, for confirmation

synclient EmulateTwoFingerMinW=20 EmulateTwoFingerMinZ=400

Revision history for this message
Gursimran singh (simar) wrote :

philipp

If these don't not correct the issue, then restore back to default settings by this
synclient EmulateTwoFingerMinW=7 EmulateTwoFingerMinZ=280

Revision history for this message
Gursimran singh (simar) wrote :

Also include the output of
xmodmap -pp > ~/xmodmap

This will print your default pointer mappings.

Revision history for this message
philipp (moenchp) wrote :

That did not resolve the problem.
I attached the output of xmodmap.

Gursimran singh (simar)
Changed in xserver-xorg-input-synaptics (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Gursimran singh (simar) wrote :

Hi Pascal De Vuyst. you have changed the assignee status to you. This is to confirm that are you really working for providing a patch to this bug. You might know a lot about touchpads but you have also get familiar with ubuntu packaging and patching. Are you familiar with it?

Changed in xserver-xorg-input-synaptics (Ubuntu):
status: In Progress → Triaged
importance: Undecided → Low
Revision history for this message
Gursimran singh (simar) wrote :

Hi phillip

A long time, I had been busy for writing the documentation of DebuggingTouchpads. I hope you could provide with the output of the following in your terminal.

$sudo evtest /dev/input/eventX > ~/evtest

Do remember to run this command by switching to a VT using Ctrl+Alt+F2 and to revert back to X use Ctrl+ALT+F7. When you execute this command use it as xev, show that the how many events does tapping produce and please attach a full copy of the output.

For help regarding using it refer to https://wiki.ubuntu.com/DebuggingTouchpadDetection

Changed in xserver-xorg-input-synaptics (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
philipp (moenchp) wrote :

This is the output of evtest (leftclick)

Revision history for this message
philipp (moenchp) wrote :

And rightclick

Revision history for this message
Gursimran singh (simar) wrote :

Thanks philipp for the outputs. I think I have spotted where the bug is. I believe the bug is the kernel itself.
As after running evtest only LeftButton has created double Tap events while you did not even tap the touchpad (I hope that).

But there are a few questions.

1. Does your touchpad support multitouch in
     a. windows or any other OS.
     b. ubuntu (check for the System>Preferences>Mouse (Touchpad tab) )
            Look for the Two-finger scrolling radio button. Is it activated, means (Not Faded).

Please upload a pic of your touchpad or point to the some page containing the model no and pic. This may help.

Revision history for this message
Gursimran singh (simar) wrote :

Secondly I hope after running evtest you, clicked the Left button only once. right?

Now I want you to click the left button twice and then without touchpad the touchpad exit the VT and start X. If you have any doubts regarding how to do the you are welcome to ask but please follow the procedure strictly, I want to filter the events that are created by LeftButton only.

Your bug is very near to Triaged status.

Cheers :)

Revision history for this message
Gursimran singh (simar) wrote :

touchpad == *touching

Bryce Harrington (bryce)
Changed in xserver-xorg-input-synaptics (Ubuntu):
status: Incomplete → New
status: New → Incomplete
Revision history for this message
philipp (moenchp) wrote :

Hi Gursimran singh Mohar,
I think, my touchpad supports multitouch, at least the option is not greyed (but also not activated) under System>Preferences>Mouse. Here is a photo of the touchpad http://dl.dropbox.com/u/7981005/DSC_0001.JPG

This time, I logged out and stopped gdm. I attached the output of evtest with a double left click.

Hope that helps.

Bryce Harrington (bryce)
Changed in xserver-xorg-input-synaptics (Ubuntu):
status: Incomplete → New
status: New → Incomplete
Revision history for this message
Gursimran singh (simar) wrote :

From the data obtained from the evtest outputs
Event: time 1281191187.541315, type 1 (Key), code 333 (Tool Doubletap), value 1

As there is a button click, double tap events are being created, so the bug is in the kernel itself.

affects: xserver-xorg-input-synaptics (Ubuntu) → linux (Ubuntu)
Revision history for this message
Gursimran singh (simar) wrote :

The bug is ready to be worked on by a developer..

Changed in linux (Ubuntu):
assignee: Pascal De Vuyst (pascal-devuyst) → nobody
status: Incomplete → Triaged
Revision history for this message
penalvch (penalvch) wrote :

Ha, Myung O o, this bug was reported a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue? If so, could you please test for this with the latest development release of Ubuntu? ISO images are available from http://cdimage.ubuntu.com/daily-live/current/ .

If it remains an issue, could you please run the following command in the development release from a Terminal (Applications->Accessories->Terminal), as it will automatically gather and attach updated debug information to this report:

apport-collect -p linux <replace-with-bug-number>

Also, could you please test the latest upstream kernel available following https://wiki.ubuntu.com/KernelMainlineBuilds ? It will allow additional upstream developers to examine the issue. Please do not test the daily folder, but the one all the way at the bottom. Once you've tested the upstream kernel, please comment on which kernel version specifically you tested. If this bug is fixed in the mainline kernel, please add the following tags:
kernel-fixed-upstream
kernel-fixed-upstream-VERSION-NUMBER

where VERSION-NUMBER is the version number of the kernel you tested. For example:
kernel-fixed-upstream-v3.11-rc7

This can be done by clicking on the yellow circle with a black pencil icon next to the word Tags located at the bottom of the bug description. As well, please remove the tag:
needs-upstream-testing

If the mainline kernel does not fix this bug, please add the following tags:
kernel-bug-exists-upstream
kernel-bug-exists-upstream-VERSION-NUMBER

As well, please remove the tag:
needs-upstream-testing

Once testing of the upstream kernel is complete, please mark this bug's Status as Confirmed. Please let us know your results. Thank you for your understanding.

Changed in linux (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Kennedyshead (knutas) wrote :

"[Bug 159968] Re: ButtonPress and ButtonRelease of button 4 are generated by left click of synaptic touch pad"
Launchpad Bug Tracker doc

Revision history for this message
penalvch (penalvch) wrote :

Kennedyshead (knutas), it will help immensely if you filed a new report with Ubuntu, using the default repository kernel (not mainline/upstream/3rd party) via a terminal:
ubuntu-bug linux

Please feel free to subscribe me to it.

For more on why this is helpful, please see https://wiki.ubuntu.com/ReportingBugs.

Revision history for this message
Kennedyshead (knutas) wrote :

"[Bug 159968] Re: ButtonPress and ButtonRelease of button 4 are generated by left click of synaptic touch pad"
Launchpad Bug Tracker doc

Revision history for this message
Kennedyshead (knutas) wrote : RE

Check
[Bug 159968] Re: ButtonPress and ButtonRelease of button 4 are generated by left click of synaptic touch pad

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.