[Hardy] External mouse on laptop will only double-click

Bug #188351 reported by Andrew Oakley
30
Affects Status Importance Assigned to Milestone
xorg (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Binary package hint: xorg

In Ubuntu Hardy (Alpha) with all updates to date (2008-02-02, xorg 1:7.3+10ubuntu) on a Dell Inspiron 1520, when I connect an external USB mouse, all single-clicks are taken as double-clicks.

This does not happen on the trackpad; I can single-click or double-click as normal.

I have tested the USB mouse on other systems and it works fine.

Revision history for this message
Andrew Oakley (andrew-aoakley) wrote :

The following changes to /etc/X11/xorg.conf fix this problem:

Section "InputDevice"
        Identifier "Configured Mouse"
        Option "Device" "/dev/input/mice"
        Option "Protocol" "ExplorerPS/2"
        Option "SendCoreEvents" "true"
        Option "CorePointer"
        Driver "mouse"
EndSection

...however this bug should remain open, since this should have been set up by default upon install, or upon first connection of a USB mouse.

Revision history for this message
Thomas Novin (thomasn80) wrote :

Hello

I also have this problem (bug 188387) but my trackpad doesnt work very good either. I can single click in in the top panel, in applications but I cannot use the mouse on the desktop (not as it supposed to work anyways)

Changed in xorg:
status: New → Confirmed
Revision history for this message
Mircea Deaconu (mirceade) wrote :

Confirming this bug on a Sempron desktop with USB A4Tech battery free mouse.

Revision history for this message
marbud (marbud) wrote :

I have a IBM Thinkpad and it's builtin mouse keys have the same problem. In my case, it's not the kernel support, as the problem is not present in gpm (console).

An external USB mouse behaves the same.

Running:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.04
DISTRIB_CODENAME=hardy
DISTRIB_DESCRIPTION="Ubuntu hardy (development branch)"
Alpha 4...

Xorg version:
ii xorg 1:7.3+10ubuntu X.Org X Window System

Revision history for this message
Chris (csitter) wrote :

I have a Thinkpad T61, with the trackpad mouse key and an external USB mouse i'm experiencing the same problem. (Touchpad click and touchpad keys are working fine).

Running:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.04
DISTRIB_CODENAME=hardy
DISTRIB_DESCRIPTION="Ubuntu hardy (development branch)"
Alpha 4...

Xorg version:
ii xorg 1:7.3+10ubuntu X.Org X Window System

Revision history for this message
Chris (csitter) wrote :

With the workaround from above I'm still facing the same problem.

My xorg.conf
Section "InputDevice"
        Identifier "Configured Mouse"
        Option "Device" "/dev/input/mice"
        Option "Protocol" "ExplorerPS/2"
        Option "SendCoreEvents" "true"
        Driver "mouse"
        Option "EmulateWheel" "true"
        Option "EmulateWheelButton" "2"
EndSection

Revision history for this message
Andrew Oakley (andrew-aoakley) wrote :

Chris wrote:
>With the workaround from above I'm still facing the same problem.

1. The workaround is an addition to, not a replacement for, your "Synaptics Touchpad" section. Ergo no need for the EmulateWheel nor EmulateWheelButton lines in the "ConfiguredMouse" section, but these should remain in the "Synaptics Touchpad" section.

2. You should have both "Configured Mouse" and "Synaptics Touchpad" listed in the ServerLayout section.

Here's my /etc/X11/xorg.conf for my Dell Inspiron 1520:

# Andrew Oakley's xorg.conf for Ubuntu Hardy Alpha 3/4 on Dell Inspiron 1520

Section "Module"
        Load "synaptics"
EndSection

Section "InputDevice"
        Identifier "Generic Keyboard"
        Driver "kbd"
        Option "XkbRules" "xorg"
        Option "XkbModel" "pc105"
        Option "XkbLayout" "gb"
EndSection

Section "InputDevice"
        Identifier "Configured Mouse"
        Option "Device" "/dev/input/mice"
        Option "Protocol" "ExplorerPS/2"
        Option "SendCoreEvents" "true"
        Option "CorePointer"
        Driver "mouse"
EndSection

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

Section "Device"
        Identifier "Configured Video Device"
# Workaround Intel 965 Compiz driver window border bug - use EXA
        Option "EXANoComposite" "true"
EndSection

Section "Monitor"
        Identifier "Configured Monitor"
EndSection

Section "Screen"
        Identifier "Default Screen"
        Monitor "Configured Monitor"
EndSection

Section "ServerLayout"
    Identifier "Default Layout"
    Screen "Default Screen"
    InputDevice "Generic Keyboard"
    InputDevice "Configured Mouse"
    InputDevice "Synaptics Touchpad"
EndSection

Revision history for this message
Chris (csitter) wrote :

Andrew wrote:
>1. The workaround is an addition to, not a replacement for, your "Synaptics Touchpad" section.

Sorry I explained myself wrong. I didn't replace my xorg with the workaround.
>My xorg.conf
>Section "InputDevice"
> Identifier "Configured Mouse"
> Option "Device" "/dev/input/mice"
> Option "Protocol" "ExplorerPS/2"
> Option "SendCoreEvents" "true"
> Driver "mouse"
> Option "EmulateWheel" "true"
> Option "EmulateWheelButton" "2"
>EndSection
This is only an extract from my xorg.conf.

Without EmulateWheel and EmulateWheelButton I'm unable to scroll with the Trackpad.

Revision history for this message
Andrew Oakley (andrew-aoakley) wrote :

Hmm. I don't understand why your Trackpad is taking instructions from the ConfiguredMouse section. Trackpad functionality in ConfiguredMouse is obsolete and should have been replaced by Synaptics Touchpad.

Synaptics Touchpad should be where the Trackpad configuration takes place. ConfiguredMouse should only be for actual mice, not trackpads, these days. Are you definitely using Ubuntu Hardy? Is Synaptics Touchpad installed?

dpkg --list xserver-xorg-input-synaptics
dpkg --list gsynaptics

If this wasn't installed by default, you should consider raising another new bug.

On the other hand, maybe this is deliberate for IBM Thinkpads? Try searching through: http://ubuntuforums.org/forumdisplay.php?f=140

Revision history for this message
Chris (csitter) wrote :

Andrew wrote:
>Are you definitely using Ubuntu Hardy?
I'm definietly using Ubuntu Hardy.

>dpkg --list xserver-xorg-input-synaptics
>dpkg --list gsynaptics
xserver-xorg-input-synaptics and gsynaptics are both installed. gsynaptics is not installed by default, I installed it manually couple days ago. I don't remember if I installed xserver-xorg-input-synaptics manually too.

>Try searching through: http://ubuntuforums.org/forumdisplay.php?f=140
Okay i will browse thru the forum

Revision history for this message
Chris (csitter) wrote :

I generated a new xorg.conf with dpkg-reconfigure -phigh xserver-xorg and modfied it to get touchpad and trackpad scrolling to work.

Now if I out comment Section "ServerLayout" the external USB mouse will work alright but I'm unable to scroll with the touchpad.And can't configure the touchpad because "SHMConfig" is not active.

Revision history for this message
jask (jaskiern) wrote :

I am experiencing the double-clicking symptoms, but not with the same setups as many people are reporting. I provided a fix for the double-clicking in a separate bug (https://bugs.launchpad.net/ubuntu/+bug/188387/comments/1), though it was marked as a Duplicate. The fix involves adding 'Option CorePointer' to my touchpad InputDevice section.

Section "InputDevice"
    Identifier "Synaptics Touchpad"
    Driver "synaptics"
    Option "SendCoreEvents" "true"
    Option "Device" "/dev/psaux"
    Option "Protocol" "auto-dev"
    Option "HorizScrollDelta" "0"
    Option "CorePointer" # This line gets my touchpad and external mouse to stop double-clicking.
EndSection

Revision history for this message
Chris (csitter) wrote :

p0troast wrote
>Option "CorePointer"
Great, works for me too.

Revision history for this message
mikko (mikko-) wrote :

Editing xorg.xonf fixed the problem in my machine.

Same bug:
https://bugs.launchpad.net/ubuntu/+bug/190536

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Option "CorePointer"

Fixes problem on Thinkpad T61p Trackpoint Mouse

Revision history for this message
malaiwah (michel-belleau) wrote :

I have the same bug on my eMachine mini-tower, I'll try the fix today.

Revision history for this message
Arthur Schiwon (blizzz) wrote :

I have the same problem on a Dell Dimension 4300 (Desktop) with a wireless Logitech Mouse. Except the Device-Option adding the lines given in the first comment to my xorg.conf file it is working.

Revision history for this message
Jerome Jolidon (jerome-jolidon) wrote :

Same problem with Dell D800 and Logitech wired mouse. However, Option "CorePointer" solved this.

Revision history for this message
Grillo (novalkar) wrote :

had the same problem on my dell Vostro 1400, but fixed it by restoring a backup of my old Gutsy xorg.conf

---{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"
EndSection
---{xorg.conf}---

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

The current dexconf generates a ServerLayout section again. Could you check if removing the keyboard and mouse from that section helps anything, or if the CorePointer is still needed.

Changed in xorg:
importance: Undecided → High
status: Confirmed → Incomplete
Revision history for this message
enigma_0Z (enigma-0za) wrote :

I am having a similar problem, intermittently, a single click will be taken as a double click, or there will be a second delayed click after dragging something.

Has anyone had this issue? I'm trying the fixes mentioned here to see how it goes.

Revision history for this message
Lowell Alleman (lowell-alleman) wrote :

Same issue here. I've been able to determine that I'm seeing this issue ONLY when two pointer devices are enabled at once. Let me be clear on that point, I'm talking about two different "InputDevice" sections, I have my track point and USB mouse defined separately. (I am not using the all-in-one "/dev/input/mice" device since each device is configured differently). Based on the configuration, and which pointer is enabled, I've seen the "out of control auto-clicking" behavior that others have described. Normally, one of the pointer devices works fine and then the other has massive clicking issues. By disabling one of the devices I can make the other device work properly. This can be done either by switching (1) changing the xorg.conf file (as other have mentioned) or (2) using xsetpointer during and X session.

I'm also seeing this bug with just one device connected, but enabled twice... (Yes, very werid).. Take a look at my list of pointers in the output below. Just so no one asks, I only have one InputDevice section for "TpMouse" in my xorg.conf; and "TpMouse" is only referenced once in ServerLayout. However, I do have a device named "UsbMouse" which is missing from list, but it wasn't plugged in when I started X so that may explain it.

xsetpointer -l
0: "Virtual core keyboard" [XKeyboard]
1: "Virtual core pointer" [XPointer]
2: "TpMouse" [XExtensionPointer]
3: "TpMouse" [XExtensionPointer]
4: "Generic Keyboard" [XExtensionKeyboard

Does anyone else show the same device twice in their output from "xsetpointer -l"?

If I run "xsetpoint -c TpMouse" to disable the device, then my mouse works fine. If I re-enable it with "xsetpointer +c TpMouse", I start to see the odd mouse behavior again. Any ideas on how I have the same device loaded twice? I would think that device "Identifier"s would have to be unique, but according to Xorg.0.log, the TpMouse device was setup twice. Here is a small section of the log (the entire log is attached where you can see that the "TpMouse" device is setup twice and then enabled twice)

(II) XINPUT: Adding extended input device "TpMouse" (type: MOUSE)
(II) evaluating device (TpMouse)
(II) XINPUT: Adding extended input device "TpMouse" (type: MOUSE)
(II) evaluating device (Generic Keyboard)
(II) XINPUT: Adding extended input device "Generic Keyboard" (type: KEYBOARD)
(II) TpMouse: ps2EnableDataReporting: succeeded
(II) TpMouse: ps2EnableDataReporting: succeeded

Revision history for this message
Pasi (pasi-lehtimaki) wrote :

I had this same issue with my Dell Latitude D820 after upgrading from gutsy to hardy. It did affect all my pointer devices (taping the touch pad, mouse buttons next to the touch pad and USB mouse)

Andrew Oakley's xorg conf did fix the problem for me.

This xorg.conf section caused the problem:

Section "InputDevice"
        Identifier "Generic Keyboard"
        Driver "keyboard"
        Option "CoreKeyboard"
        Option "XkbRules" "xfree86"
        Option "XkbModel" "pc105"
        Option "XkbLayout" "fi"
EndSection

Section "InputDevice"
        Identifier "Configured Mouse"
        Driver "mouse"
        Option "CorePointer"
        Option "Device" "/dev/psaux"
        Option "Protocol" "PS/2"
        Option "ZAxisMapping" "4 5"
EndSection

Revision history for this message
Bryce Harrington (bryce) wrote :

Fixed in Ubungu's xorg, commit 1e793f0f84e55ab4ed12d561048a567709b87d69, April 10th.

Changed in xorg:
status: Incomplete → Fix Released
Revision history for this message
Dorian Scholz (dorianscholz) wrote :

I just upgraded today from Gutsy to Hardy and experienced the same problem.
Adding these two lines to my mouse section in the xorg.conf fixed it for me:

  Option "SendCoreEvents" "true"
  Option "CorePointer"

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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