Bug 668842

Summary: No emulation of 3rd mouse button with Trackpoint
Product: [openSUSE] openSUSE 11.4 Reporter: Holger Sickenberg <holgi>
Component: X.OrgAssignee: Stefan Dirsch <sndirsch>
Status: RESOLVED FIXED QA Contact: E-mail List <xorg-maintainer-bugs>
Severity: Normal    
Priority: P3 - Medium CC: robert_gartler, sndirsch, yar
Version: Milestone 6 of 6   
Target Milestone: ---   
Hardware: x86-64   
OS: SUSE Other   
Whiteboard:
Found By: Component Test Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Xorg.0.log
proc-bus-input-devices.txt
hwinfo-mouse.txt
hwinfo-mouse-113.txt
hwinfo-mouse-ohne.txt
Output of "hwinfo --mouse"

Description Holger Sickenberg 2011-02-02 09:59:24 UTC
I installed M6 with a connected 3 button mouse on my laptop. But the included track point just have 2 buttons. With openSUSE 11.3 the third button was emulated automatically when I clicked 1st and 2nd butten at the same time. With openSUSE 11.4 M6 this behavior is not working anymore.

Please tell me if you need log files.
Comment 1 Stefan Dirsch 2011-02-02 11:26:07 UTC
Yes, please attach /var/log/Xorg.0.log and the output of 

  cat /proc/bus/input/devices
Comment 2 Holger Sickenberg 2011-02-02 13:32:13 UTC
Created attachment 411757 [details]
Xorg.0.log
Comment 3 Holger Sickenberg 2011-02-02 13:32:43 UTC
Created attachment 411758 [details]
proc-bus-input-devices.txt
Comment 4 Stefan Dirsch 2011-02-02 13:56:28 UTC
Hmm. Apparently your touchpad isn't detected at all, whereas touchscreen is and being driven by wacom driver. Might be a kernel problem. So what's the output of 'hwinfo --mouse'?
Comment 5 Holger Sickenberg 2011-02-02 14:52:05 UTC
Created attachment 411774 [details]
hwinfo-mouse.txt
Comment 6 Stefan Dirsch 2011-02-02 16:06:35 UTC
(In reply to comment #5)
> Created an attachment (id=411774) [details]
> hwinfo-mouse.txt

Indeed no touchpad has been detected. Reassigning to kernel component.
Comment 7 Holger Sickenberg 2011-02-02 16:27:25 UTC
Created attachment 411806 [details]
hwinfo-mouse-113.txt

But it's the same on 11.3 where everything works fine. Please see attached hwinfo-mouse-113.txt for 11.3
Comment 8 Holger Sickenberg 2011-02-02 16:28:39 UTC
By the way - it's not a touchpad, it's a track point and 2 buttons.
Comment 9 Stefan Dirsch 2011-02-02 17:55:56 UTC
Ok, but still something similar to "TPPS/2 IBM TrackPoint" should have been detected. I suggest to remove the mouse and rerun "hwinfo --mouse".
Comment 10 Holger Sickenberg 2011-02-02 19:21:43 UTC
Created attachment 411842 [details]
hwinfo-mouse-ohne.txt
Comment 11 Stefan Dirsch 2011-02-02 20:20:05 UTC
Please add the following to /etc/x11/xorg.conf.d/11-mouse.conf:

Section "InputClass"
        Identifier      "PS/2 Generic Mouse"
        MatchProduct    "PS/2 Generic Mouse"
        MatchIsPointer  "on"
        Driver  "evdev"
        Option  "EmulateWheel"  "on"
        Option  "EmulateWheelButton"    "2"
        Option  "YAxisMapping"    "4 5"
        Option  "XAxisMapping"    "6 7"
        Option  "Emulate3Buttons"    "on"
        Option  "EmulateWheelTimeout"    "200"
EndSection

Does this fix the issue?
Comment 12 Holger Sickenberg 2011-02-03 08:14:43 UTC
Yes, this fixes the issue.
Comment 13 Stefan Dirsch 2011-02-03 08:35:00 UTC
Fixed with SR #59854.
Comment 14 Yaroslav Kurlaev 2011-02-14 14:36:43 UTC
Created attachment 413844 [details]
Output of "hwinfo --mouse"

Your fix doesn't solve problem for me. However, if I add following to /etc/x11/xorg.conf.d/11-mouse.conf, all is going right:

Section "InputClass"
    Identifier "whatever"
    MatchIsPointer "on"
    Option "Emulate3Buttons" "on"
EndSection

Output of "hwinfo --mouse" is in attachment.
Comment 15 Stefan Dirsch 2011-02-14 15:22:34 UTC
Please open a seperate bugreport.
Comment 16 Robert Gartler 2011-05-24 19:57:48 UTC
Same thing here. Yaroslavs solution solved my problem too. (Using the trackball of a Dell Latitude D830)