You are not logged in.

#1 2006-03-02 10:37:34

orjanp
Member
From: Tromsoe, Norway
Registered: 2004-07-03
Posts: 347

Mouse reduced to a three button mouse when unpluged/repluged

It's me and my mouse again.

This time the problem is that the scroll and side buttons stops working when I unplug and erplug the mouse back in again. It's a Logitech MX518 mouse.

My MX518 use /dev/input/event4.

# cat /proc/bus/input/devices

I: Bus=0003 Vendor=046d Product=c01e Version=2200
N: Name="Logitech USB-PS/2 Optical Mouse"
P: Phys=usb-0000:00:1d.1-2/input0
S: Sysfs=/class/input/input4
H: Handlers=mouse2 event4
B: EV=7
B: KEY=ff0000 0 0 0 0 0 0 0 0
B: REL=103

This is a part of my /etc/X11/xorg,conf

Section "Inputdevice"

# Logitech MX 510/518

    Identifier    "EvdevMouse"
    Driver        "evdev"
    Option        "Device"    "/dev/input/event4" 

EndSection

Section "Inputdevice"

# IBM Thinkpad Touchpad

    Identifier    "Mouse2"
    Driver        "mouse"
    Option        "Protocol"    "auto"
    Option        "Device"    "/dev/psaux"

EndSection

Section "ServerLayout"

# The Identifier line must be present
    Identifier  "Laptop"
    Screen "Laptop single"
    Inputdevice    "EvdevMouse"    "CorePointer"  # Mouse
    InputDevice "Mouse2"        "SendCoreEvents" # Touchpad
    InputDevice "Keyboard1"        "CoreKeyboard"

EndSection

When I unplug my mouse, the /dev/input/event4 is removed. When I replug my mouse back in again, a new event is created named /dev/input/event5. And my mouse is suddently reduced to a three button mouse. To fix this, I have to kill X, unplug/replug my mouse, and start X again.

This is after unplug/replug the mouse without restarting X

# cat /proc/bus/input/devices

I: Bus=0003 Vendor=046d Product=c01e Version=2200
N: Name="Logitech USB-PS/2 Optical Mouse"
P: Phys=usb-0000:00:1d.1-2/input0
S: Sysfs=/class/input/input5
H: Handlers=mouse2 event5 
B: EV=7
B: KEY=ff0000 0 0 0 0 0 0 0 0
B: REL=103

Have tried to create a udev rule, without any luck.

ACTION=="add", 
    KERNEL=="event*", 
    SUBSYSTEM=="input", 
    SYSFS(manufacturer)=="Logitech", 
    SYSFS(product)=="USB Receiver", 
    NAME="input/mx518"

Does anyone have an idea that can be done to fix this.

Orjanp


Ørjan Pettersen

Offline

#2 2006-03-02 15:37:28

Ibex
Member
Registered: 2006-03-02
Posts: 135

Re: Mouse reduced to a three button mouse when unpluged/repluged

Same problem here sad. (except that the mouse isn't working anymore at all when replugging it)

When using udevinfo to look to the info about the mouse, I get the following info:

looking at device '/class/input/input15/mouse2':
    KERNEL=="mouse2"
    SUBSYSTEM=="input"
    SYSFS{dev}=="13:34"

  looking at device '/class/input/input15':
    ID=="input15"
    BUS=="input"
    DRIVER==""
    SYSFS{uniq}==""
    SYSFS{phys}=="usb-0000:00:1d.7-1.1/input0"
    SYSFS{name}=="Logitech USB RECEIVER"

  looking at device '/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1.1/1-1.1:1.0':
    ID=="1-1.1:1.0"
    BUS=="usb"
    DRIVER=="usbhid"
    SYSFS{modalias}=="usb:v046DpC50Ed2510dc00dsc00dp00ic03isc01ip02"
    SYSFS{bInterfaceProtocol}=="02"
    SYSFS{bInterfaceSubClass}=="01"
    SYSFS{bInterfaceClass}=="03"
    SYSFS{bNumEndpoints}=="01"
    SYSFS{bAlternateSetting}==" 0"
    SYSFS{bInterfaceNumber}=="00"

  looking at device '/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1.1':
    ID=="1-1.1"
    BUS=="usb"
    DRIVER=="usb"
    SYSFS{configuration}==""
    SYSFS{product}=="USB RECEIVER"
    SYSFS{manufacturer}=="Logitech"
    SYSFS{maxchild}=="0"
    SYSFS{version}==" 1.10"
    SYSFS{devnum}=="20"
    SYSFS{speed}=="1.5"
    ...

The only rule that creates a link that can be used in xorg.conf is with the information in the first part. However, this information is different almost every time the receiver is plugged out and plugged in again.

When using a rule with the information in the 2nd or 4th part, udev will create everytime the same link like i wanted to, but xorg can't deal with it (crashed when i move the mouse). Probably because it isn't the mouse itself, but only the raw receiver data.

Somebody?

Offline

#3 2006-03-10 21:11:58

big_gie
Member
Registered: 2005-01-19
Posts: 637

Re: Mouse reduced to a three button mouse when unpluged/repluged

I'm using udev to create links for my Logitech MX700 Duo (Logitech Elite keyboard + MX700 mouse).

Here are my udev rules:

# Laptop keyboard
BUS=="serio", SYSFS{description}=="i8042 Kbd Port", SYMLINK+="input/clavier"

# Alps TouchPad
# GlidePoint
BUS=="serio", SYSFS{description}=="i8042 Aux Port", KERNEL=="event?", SYMLINK+="input/touchpad"
# StickPointer
SUBSYSTEM=="input", SYSFS{dev}=="13:32", SYMLINK+="input/stick"

# MX700 Duo
# Keyboard
BUS=="usb", SYSFS{bInterfaceNumber}=="00", SYSFS{bInterfaceProtocol}=="01", NAME="input/%k", SYMLINK+="input/mx700duo_clavier"
# Mouse
BUS=="usb", SYSFS{bInterfaceNumber}=="01", SYSFS{bInterfaceProtocol}=="02", NAME="input/%k", SYMLINK+="input/mx700duo_souris"

The bInterfaceNumber/Protocol are the only thing that can differcienciate the two (same wireless receiver...).
Hope you will be able to adapt it to your kb/mouse.

I've never been able to make work 100% of it. Since the symlinks disapear if I unplug the usb mouse/kb, I can't unplug and replug them if Xorg is running...

I would like to be able to control each of the devices independantly, like this:

Section "InputDevice"
    Identifier    "Clavier"
    Driver    "kbd"
    Option "AutoRepeat" "500 30"
    Option "XkbModel"   "inspiron"
    Option "XkbLayout"    "ca(fr)"
EndSection

Section "InputDevice"
    Driver "synaptics"
    Identifier "Alps Touchpad Glidepoint"
    Option "Device"               "/dev/input/touchpad"
    #Option "Device"               "/dev/input/event2"
    Option "Protocol"             "auto-dev"
    Option "Buttons"              "7"
    Option "LeftEdge"             "120"
    Option "RightEdge"            "830"
    Option "TopEdge"              "120"
    Option "BottomEdge"           "650"
    Option "FingerLow"            "14"
    Option "FingerHigh"           "15"
    Option "MaxTapTime"           "180"
    Option "MaxTapMove"           "110"
    Option "EmulateMidButtonTime" "75"
    Option "VertScrollDelta"      "25"
    Option "HorizScrollDelta"     "25"
    Option "MinSpeed"             "1.2"
    Option "MaxSpeed"             "2.0"
    Option "AccelFactor"          "0.2"
    Option "EdgeMotionMinSpeed"   "15"
    Option "EdgeMotionMaxSpeed"   "30"
    Option "UpDownScrolling"      "1"
    Option "CircularScrolling"    "1"
    Option "CircScrollDelta"      "0.1"
    Option "CircScrollTrigger"    "2"
    Option "TapButton1"           "1"
    Option "TapButton2"           "2"
    Option "TapButton3"           "3"
    Option "SHMConfig"            "on"
EndSection

Section "InputDevice"
    Identifier  "Alps Touchpad Stickpointer"
    Driver      "mouse"
    #Option      "Device"      "/dev/input/event1"
    Option      "Device"      "/dev/input/stick"
    Option      "Buttons"     "2"
EndSection    

Section "InputDevice"
    Identifier  "LogitechMX700Duo_souris"
    Driver    "evdev"
    Option      "Dev Name"     "Logitech USB Receiver"
    Option      "Dev Phys"     "usb-*/input1"
    Option      "Device"       "/dev/input/mx700duo_souris"
    #Option      "Device"       "/dev/input/mice"
    #Option      "Device"       "/dev/input/mouse2"
    Option     "ZAxisMapping"     "9 10"
    Option     "Buttons"          "10"
    Option     "Resolution"       "800"
    Option     "Emulate3Buttons"  "yes"
EndSection

Section "InputDevice"
    # Logitech Elite keyboard (MX700 Duo)
    Identifier  "LogitechMX700Duo_clavier"
    Driver      "kbd"
    Option      "Device"      "/dev/input/mx700duo_clavier"
    Option      "XkbRules"    "xorg"
    #Option      "XkbModel"    "logiinkseusb"
    Option      "XkbModel"   "pc104"
    Option      "XkbLayout"  "ca(fr)"
EndSection

Section "ServerLayout"
    Identifier  "nvidiac"
    Screen "Ecran LCD (nvidia)"
    Option "OffTime" "5"
    InputDevice "Clavier" "CoreKeyboard"
    InputDevice "Alps Touchpad Glidepoint" "SendCoreEvents"
    InputDevice "Alps Touchpad Stickpointer" "SendCoreEvents"
    InputDevice "LogitechMX700Duo_souris" "CorePointer"
    #InputDevice "LogitechMX700Duo_clavier" "SendCoreEvents"
EndSection

If the last line is uncommented, X doesn't work... I really don't know why. And now that Xorg 7 is installed, my mouse is 32 buttons!!!! This is a nightmare...

Offline

#4 2006-03-13 14:10:45

orjanp
Member
From: Tromsoe, Norway
Registered: 2004-07-03
Posts: 347

Re: Mouse reduced to a three button mouse when unpluged/repluged

After an upgrade to xf86-input-mouse, everything seems to be in order.

Orjanp


Ørjan Pettersen

Offline

#5 2006-04-08 21:08:25

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: Mouse reduced to a three button mouse when unpluged/repluged

I'm running into this same problem when I use my KVM to switch between machines.  Whenever I come back, my scroll wheel and extra buttons are gone and quiting X and unplugging/replugging in the mouse doesn't fix it either...I have to restart to get things going again.  I do have the latest <code>xf86-input-mouse</code> and that doesn't seem to solve it.  Any more ideas on this one?

Offline

Board footer

Powered by FluxBB