Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 359695 - x11-drivers/xf86-input-mouse-1.7.0: mixed input with two mouse devices in multiseat configuration
Summary: x11-drivers/xf86-input-mouse-1.7.0: mixed input with two mouse devices in mul...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: Normal minor
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-21 04:30 UTC by Sergey Novak
Modified: 2017-02-14 19:55 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Novak 2011-03-21 04:30:19 UTC
I use multiseat (doubleheaded) configuration with two mouse sections in xorg.conf:

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "IMPS/2"
        Option      "Device" "/dev/mouse0"
        Option      "ZAxisMapping" "4 5"   ### Wheel mouse
EndSection
Section "InputDevice"
        Identifier  "Mouse1"
        Driver      "mouse"
        Option      "Protocol" "IMPS/2"
        Option      "Device" "/dev/mouse1"
        Option      "ZAxisMapping" "4 5"   ### Wheel mouse
EndSection

Uname:
$ uname -a
Linux goodyhome 2.6.38-gentoo #3 SMP Sun Mar 20 15:12:04 EET 2011 x86_64 AMD Athlon(tm) II X2 215 Processor AuthenticAMD GNU/Linux

$ X -version

X.Org X Server 1.9.5
Release Date: 2011-03-17
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.38-gentoo x86_64 Gentoo
Current Operating System: Linux goodyhome 2.6.38-gentoo #3 SMP Sun Mar 20 15:12:04 EET 2011 x86_64
Kernel command line: root=/dev/sda2
Build Date: 21 March 2011  05:46:34AM
 
Current version of pixman: 0.20.2
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.


Regardless of kernel and xorg versions mouse input is mixed: any event (movements, clicks, scrolls) of two mouse devices is sent to both X process.


Reproducible: Always

Steps to Reproduce:
1. Update to x11-drivers/xf86-input-mouse-1.7.0 
2. Restart X

Actual Results:  
Mouse input is mixed. I can use any of two mouse devices to control both seats on dualheaded station. I can't control only one seat using mouse: events are sent to both seats.

Expected Results:  
Every mouse device should send data to it's own X server (described in xorg.conf sections). Each user on dualheaded station should use own mouse.


Downgrading to x11-drivers/xf86-input-mouse-1.6.0 fixes the problem.

Here is my xorg.conf:

Section "Files"
        ModulePath   "/usr/lib64/xorg/modules"
        FontPath     "/usr/share/fonts/misc/"
        FontPath     "/usr/share/fonts/TTF/"
        FontPath     "/usr/share/fonts/OTF"  
        FontPath     "/usr/share/fonts/Type1/"   
        FontPath     "/usr/share/fonts/100dpi/"
        FontPath     "/usr/share/fonts/75dpi/"
EndSection

Section "Module"
        Load  "glx"
        Load  "extmod"
        Load  "record"
        Load  "dbe"
        Load  "dri"
        Load  "drm"
EndSection

Section "ServerLayout"
        Identifier     "seat0"
        Screen         0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
        Option          "AutoAddDevices"        "off"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "evdev"
        Option      "Device" "/dev/input/event6"    ### event device according to /proc/bus/input/devices
        Option      "XkbModel" "evdev"
        Option      "XkbLayout" "us"   ### Language setting
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "IMPS/2"
        Option      "Device" "/dev/mouse1" 
        Option      "ZAxisMapping" "4 5"   ### Wheel mouse
EndSection
Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        Monitor    "Monitor0"  
        DefaultDepth     24    
        SubSection "Display"   
                Viewport   0 0 
                Depth     1    
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     4   
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     8   
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     15  
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     16  
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24  
        EndSubSection
EndSection

Section "Device"
        Identifier  "Videocard0"
        Driver      "nvidia"
        BoardName   "GeForce 8600GT"
        BusID      "PCI:2:0:0"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        Option      "dpms"
EndSection



Section "ServerLayout"
        Identifier     "seat1"
        Screen         1  "Screen1" 0 0
        InputDevice    "Mouse1" "CorePointer"
        InputDevice    "Keyboard1" "CoreKeyboard"
        Option          "AutoAddDevices"        "off"
EndSection

Section "InputDevice"
        Identifier  "Keyboard1"
        Driver      "evdev"
        Option      "Device" "/dev/input/event4"    ### event device according to /proc/bus/input/devices
        Option      "XkbModel" "evdev"
        Option      "XkbLayout" "us"   ### Language setting
EndSection
Section "InputDevice"
        Identifier  "Mouse1"
        Driver      "mouse" 
        Option      "Protocol" "IMPS/2"
        Option      "Device" "/dev/mouse0"   
        Option      "ZAxisMapping" "4 5"   ### Wheel mouse
EndSection


Section "Screen"
        Identifier "Screen1"
        Device     "Videocard1"
        Monitor    "Monitor1"  
        DefaultDepth     24    

        SubSection "Display"
                Viewport   0 0
                Depth     24  
        EndSubSection

EndSection

Section "Device"
        Identifier  "Videocard1"
        Driver      "nvidia"
        BoardName   "GeForce 7025"
        BusID      "PCI:0:13:0"   
EndSection

Section "Monitor"
        Identifier   "Monitor1"
        Option      "dpms"
EndSection



Section "ServerFlags"
        # Xorg will otherwise not start if it can't find a mouse to use.
        Option  "AllowMouseOpenFail"    "true"
        # Disable xinerama
        Option  "Xinerama"      "0"
        Option         "SwapbuffersWait"     "false"
EndSection


 Section "DRI"
    Mode 0666 
 EndSection
Comment 1 Tolga Dalman 2011-03-22 11:59:15 UTC
Have you tried to use the evdev driver for mouse input ?
Comment 2 Sergey Novak 2011-03-24 13:26:30 UTC
(In reply to comment #1)
> Have you tried to use the evdev driver for mouse input ?

I did try only specified configuration.
I can make some experiments if it can help.
Tell me what to do.
Comment 3 Balint Dobai-Pataky 2012-03-17 18:58:33 UTC
This is how mine looks:
xorg.conf
Section "InputDevice"
        Identifier  "third_mouse"
        Driver      "evdev"
#       Driver          "mouse"
        Option      "Protocol" "imPS/2"
        Option      "Device" "/etc/X11/third_mouse"
        Option      "ZAxisMapping" "4 5 6 7"
EndSection

while
#ls -l /etc/X11/third_mouse
lrwxrwxrwx 1 root root 63 Nov 25 17:48 /etc/X11/third_mouse -> /dev/input/by-path/pci-0000:00:1a.0-usb-0:1.3.2:1.0-event-mouse

Hope it helps.
Comment 4 Matt Turner gentoo-dev 2017-02-14 19:55:11 UTC
I suspect this is (1) long since fixed, or (2) a configuration error. Regardless, using xf86-input-libinput is the recommended path today.