Bug 373176

Summary: sax2: IBM/Lenovo UltraNav problem
Product: [openSUSE] openSUSE 11.0 Reporter: Jörg Hermsdorf <funtasyspace>
Component: SaX2Assignee: Marcus Schaefer <ms>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: mmeeks
Version: Beta 1   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 11.0   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: /var/log/SaX.log
/var/log/SaX.log
3 screenshots of the TrackPoint detected twice
xorg.conf generated by "sax2 -a"
xorg.conf generated by "sax2 -r -m 0=fglrx"
Sax2.log generated by "sax2 -a"
Sax2.log generated by "sax2 -r -m 0=fglrx"

Description Jörg Hermsdorf 2008-03-23 13:56:43 UTC
I have a Lenovo Thinkpad T60p notebook with the built-in UltraNav pointing device (Trackpoint and Trackpad). On openSUSE 11.0 clicks on the buttons of the trackpoint device are always interpreted as Double-Clicks, which makes the trackpoint unuseable.

One strange thing I noticed is, that SAX2 list 3 pointing devices which can be configured:
1. Synaptics Touchpad
2. IBM TTPS/2 TrackPoint
3. TTPS/2 IBM TrackPoint

So it seems to me, that the TrackPoint is setup twice, which may be the reason for the "Double Clicks"? Deactivating the "two" TrackPoint devices in SAX doesn't help.

Here's the output of "hwinfo --mouse". As you can see, hwinfo only lists two devices (which is correct) but SAX seems to recognize 3 devices.

# hwinfo --mouse
42: PS/2 00.0: 10500 PS/2 Mouse
  [Created at input.183]
  UDI: /org/freedesktop/Hal/devices/platform_i8042_i8042_AUX_port_logicaldev_input
  Unique ID: AH6Q.aaw02jN0uv2
  Hardware Class: mouse
  Model: "SynPS/2 Synaptics TouchPad"
  Vendor: 0x0002
  Device: 0x0007 "SynPS/2 Synaptics TouchPad"
  Compatible to: int 0x0210 0x0003
  Device File: /dev/input/mice (/dev/input/mouse0)
  Device Files: /dev/input/mice, /dev/input/mouse0, /dev/input/event2, /dev/input/by-path/platform-i8042-serio-1-event-mouse, /dev/input/by-path/platform-i8042-serio-1-mouse
  Device Number: char 13:63 (char 13:32)
  Driver Info #0:
    Buttons: 3
    Wheels: 0
    XFree86 Protocol: explorerps/2
    GPM Protocol: exps2
  Config Status: cfg=no, avail=yes, need=no, active=unknown

43: PS/2 00.0: 10500 PS/2 Mouse
  [Created at input.183]
  UDI: /org/freedesktop/Hal/devices/platform_i8042_i8042_AUX_port_Synaptics_pass_through_logicaldev_input
  Unique ID: AH6Q.7qlGUQk7T34
  Hardware Class: mouse
  Model: "TPPS/2 IBM TrackPoint"
  Vendor: 0x0002
  Device: 0x000a "TPPS/2 IBM TrackPoint"
  Compatible to: int 0x0210 0x0003
  Device File: /dev/input/mice (/dev/input/mouse1)
  Device Files: /dev/input/mice, /dev/input/mouse1, /dev/input/event3, /dev/input/by-path/platform-i8042-serio-2-event-mouse, /dev/input/by-path/platform-i8042-serio-2-mouse
  Device Number: char 13:63 (char 13:33)
  Driver Info #0:
    Buttons: 3
    Wheels: 0
    XFree86 Protocol: explorerps/2
    GPM Protocol: exps2
  Config Status: cfg=no, avail=yes, need=no, active=unknown
Comment 1 Marcus Schaefer 2008-03-24 16:21:46 UTC

*** This bug has been marked as a duplicate of bug 370948 ***
Comment 2 Jörg Hermsdorf 2008-04-18 10:02:19 UTC
This bug is not a duplicate of bug bug 370948.

The situation I reported in the initial comment is no longer up-to-date with the current FACTORY situation. Previously the TrackPoint Device was shown twice in SAX, but now SAX doesn't list that device any longer. So only my touchpad and my USB mouse are detected/listed in SAX.

Anyway, the TrackPoint is still working, it just can't be configured via SAX.
Comment 3 Marcus Schaefer 2008-04-18 10:20:15 UTC
could you call

 
  init 3
  sax2

and send the file

 /var/log/SaX.log

thanks
Comment 4 Jörg Hermsdorf 2008-04-18 16:47:15 UTC
Created attachment 209021 [details]
/var/log/SaX.log

Looking at the first few lines of this log file, it seems like SAX detects the TrackPoint device:

        Mouse2    =>  Protocol   : explorerps/2
	Mouse2    =>  Device     : /dev/input/mice
	Mouse2    =>  Buttons    : 5
	Mouse2    =>  Wheel      : 1
	Mouse2    =>  Emulate    : 0
	Mouse2    =>  Name       : TPPS/2 IBM TrackPoint
	Mouse2    =>  VendorID   : 0x0002
	Mouse2    =>  DeviceID   : 0x000a
	Mouse2    =>  Profile    : ibm-trackpoint
	Mouse2    =>  RealDevice : <undefined>
	Mouse2    =>  NutShell   : 1

This device just doesn't show up in the GUI.
Comment 5 Marcus Schaefer 2008-04-21 09:33:32 UTC
the behavior is correct: sax2 detects all three devices:

	Mouse0    =>  Protocol   : explorerps/2
	Mouse0    =>  Device     : /dev/input/mice
	Mouse0    =>  Name       : Logitech USB Receiver
	Mouse0    =>  Profile    : <undefined>

	Mouse1    =>  Protocol   : explorerps/2
	Mouse1    =>  Device     : /dev/input/mice	
	Mouse1    =>  Name       : SynPS/2 Synaptics TouchPad
	Mouse1    =>  Profile    : synaptics
	
	Mouse2    =>  Protocol   : explorerps/2
	Mouse2    =>  Device     : /dev/input/mice
	Mouse2    =>  Name       : TPPS/2 IBM TrackPoint
	Mouse2    =>  Profile    : ibm-trackpoint

a) the Synaptics touchpad is turned into a single InputDevice section
   using the synaptics mouse driver

b) the other devices are _both_ handled by the multiplexer device
   /dev/input/mice and therefore _must_ be handled in only _one_
   additional InputDevice section

c) the IBM trackpoint normally would include EmulateWheel by the
   ibm-trackpoint profile BUT there is another normal mouse the
   Logitech USB Receiver which does not require the wheel emulation
   which means it is switched off because the external device has
   the higher priority
Comment 6 Jörg Hermsdorf 2008-04-21 17:38:41 UTC
Created attachment 209405 [details]
/var/log/SaX.log

I was wrong, the original bug still exists. I did a fresh install of openSUSE 11.0 using the Beta1 DVD ISO today. I unplugged the 'Logitech USB Receiver' so there's only the Synaptics Touchpad and the IBM TrackPoint (Lenovo UltraNav) on my system available. Next I did the following:

# init 3
# rm /etc/X11/xorg.conf*
# sax2

I choose 'Change configuration' and now my TrackPoint is detected twice again. All clicks on the TrackPoint buttons are detected as double-clicks. Sax2 writes the following InputDevice sections to xorg.conf:

Section "InputDevice"
  Driver       "synaptics"
  Identifier   "Mouse[1]"
  Option       "Buttons" "5"
  Option       "Device" "/dev/input/mice"
  Option       "Emulate3Buttons" "on"
  Option       "HorizScrollDelta" "0"
  Option       "InputFashion" "Mouse"
  Option       "Name" "Synaptics;Touchpad"
  Option       "Protocol" "explorerps/2"
  Option       "SHMConfig" "on"
  Option       "Vendor" "Sysp"
  Option       "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
  Driver       "mouse"
  Identifier   "Mouse[3]"
  Option       "ButtonNumber" "5"
  Option       "Device" "/dev/input/mice"
  Option       "EmulateWheel" "on"
  Option       "EmulateWheelButton" "2"
  Option       "InputFashion" "Mouse"
  Option       "Name" "IBM;TPPS/2 TrackPoint"
  Option       "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
  Driver       "mouse"
  Identifier   "Mouse[5]"
  Option       "Buttons" "5"
  Option       "Device" "/dev/input/mice"
  Option       "Name" "TPPS/2 IBM TrackPoint"
  Option       "Protocol" "explorerps/2"
  Option       "Vendor" "Sysp"
  Option       "ZAxisMapping" "4 5"
EndSection

Also see the attached /var/log/SaX2.log file.
Comment 7 Jörg Hermsdorf 2008-04-21 18:11:30 UTC
I could not reopen this bug with the last comment (because I added an attachment).
Comment 8 Jörg Hermsdorf 2008-04-21 18:35:47 UTC
Created attachment 209422 [details]
3 screenshots of the TrackPoint detected twice

The attached screenshot shows the sax gui how it renders two separate tabs for the TrackPoint device. To take those screenshots I ran sax from within a running KDE4 session. I noticed some differences between running sax from the console in runlevel 3 and from within a running Xorg/KDE4 session:

- Screenshot 2: When I run sax2 from console in runlevel 3 the gui shows "Emulate wheel with mouse button 1". But as shown in the screenshot, from within a KDE4 session it is correctly assigned to mouse button 2.

- Screenshot 3: When I run sax2 from console in runlevel 3 the gui shows the device as enabled. But as shown in the screenshot, from within a KDE4 session the checkbox is not enabled.

When I run sax2 from console in runlevel 3 and do the "Mouse Test" single clicks on the TrackPoint buttons are detected as double-clicks. When I do the same with sax2 started from within a running KDE4 session, single clicks on the TrackPoint buttons are detected as normal single clicks and not as double clicks.
Comment 9 Marcus Schaefer 2008-04-22 09:48:10 UTC
I'm sorry I can't reproduce this. could you call

init 3
cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
sax2 -a

===> send the information which is printed on the console
===> send the /var/log/SaX.log file

thanks
Comment 10 Marcus Schaefer 2008-04-23 08:07:25 UTC

*** This bug has been marked as a duplicate of bug 382036 ***
Comment 11 Christopher Stender 2008-04-24 19:29:38 UTC
I can't see why this bug should be a duplicate of #382036. The following happens:

Case1)
- init 3
- rm /etc/X11/xorg.conf*
- sax2 -a
- result: 3 input (one duplicate) devices, but only two in ServerLayout.
- attached xorg.conf_1 to this bug

Case2)
- init 3
- rm /etc/X11/xorg.conf*
- sax2 -r -m 0=fglrx
- click "ok"
- result: 3 input (one duplicate) devices and all 3 are in ServerLayout section, which leads to a double click every time I use the trackpoint buttons.
Comment 12 Christopher Stender 2008-04-24 19:30:58 UTC
Created attachment 210316 [details]
xorg.conf generated by "sax2 -a"
Comment 13 Christopher Stender 2008-04-24 19:33:15 UTC
Created attachment 210318 [details]
xorg.conf generated by "sax2 -r -m 0=fglrx"
Comment 14 Christopher Stender 2008-04-24 19:41:36 UTC
Created attachment 210321 [details]
Sax2.log generated by "sax2 -a"
Comment 15 Christopher Stender 2008-04-24 19:43:19 UTC
Created attachment 210322 [details]
Sax2.log generated by "sax2 -r -m 0=fglrx"
Comment 16 Marcus Schaefer 2008-04-25 09:35:06 UTC
all this sounds completely strange to me.

* I need such a system for testing since I can't reproduce any of
  the mentioned problems here. Stefan do you have such a system somewhere ?

* I need the output of sax2 -r -a which written to the _console_ window

thanks
Comment 17 Marcus Schaefer 2008-04-25 09:36:34 UTC
*** Bug 368589 has been marked as a duplicate of this bug. ***
Comment 18 Stefan Dirsch 2008-04-25 10:03:15 UTC
Unfortunately I don't have such a system, but it seems Christopher has one. As long as it is not his private laptop I think he will give you access to it.
Comment 19 Jörg Hermsdorf 2008-04-25 10:14:50 UTC
Here's the console output of 'sax2 -r -a' on my ThinkPad T60p:

# sax2 -r -a
SaX: initializing please wait...
SaX: you current configuration will not be read in

SaX: no X-Server is running
SaX: will start own server if needed
ISaX: could not import file: /var/cache/sax/files/config at /usr/sbin/isax line 199.
ISaX: could not import file: /var/cache/sax/files/config at /usr/sbin/isax line 199.
ISaX: could not import file: /var/cache/sax/files/config at /usr/sbin/isax line 199.
ISaX: could not import file: /var/cache/sax/files/config at /usr/sbin/isax line 199.
ISaX: could not import file: /var/cache/sax/files/config at /usr/sbin/isax line 199.
ISaX: could not import file: /var/cache/sax/files/config at /usr/sbin/isax line 199.
ISaX: could not import file: /var/cache/sax/files/config at /usr/sbin/isax line 199.
SPP: prepare device [0] profile: Depth24
SPP: prepare device [0] profile: RadeonHD
SPP: calling device [0] profile script: RadeonHD
SPP: prepare device [1] profile: synaptics
SPP: calling device [1] profile script: synaptics
SPP: prepare device [3] profile: ibm-trackpoint
SPP: profile will add new section(s) -> moving: 3
SPP: including prepared profile(s)...

SaX: startup

SaX: creating config file please wait...
SaX: Automatic configuration is done


So there's nothing mentioned in the console output about device [5], which is the second TrackPoint entry in the written xorg.conf.
Also look at the names of the two devices:
Mouse[3] -> IBM;TPPS/2 Trackpoint
Mouse[5] -> TPPS/2 IBM Trackpoint
Comment 20 Christopher Stender 2008-04-25 10:51:42 UTC
It's my private machine, but if you have time _now_ I could start openSUSE 11.0 and can give you access to the machine.
Comment 21 Marcus Schaefer 2008-04-25 12:11:47 UTC
at the moment I'm working on #379027, could we do that next week ?
Comment 22 Christopher Stender 2008-04-25 12:54:48 UTC
Yes, of course but I'm not in office on tuesday and wednesday.
Comment 23 Marcus Schaefer 2008-04-28 12:54:42 UTC
found the bug and fixed it. The problem was the synaptics.pl profile
script. It does what has been fixed in sysp. According to this the same
check happens twice with wrong result :(