LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 12-08-2009, 11:17 PM   #1
ignisuti
LQ Newbie
 
Registered: Dec 2009
Posts: 13

Rep: Reputation: 0
Input Devices not working with xorg.conf multiseat setup


I'm trying to setup my first multi-seating PC using Ubuntu 9.10. I'm using a Nvidia Geforce 9400 video card along with the Nvidia Settings driver.

It appears that I've gotten the video to output to two seperate X screens. However, my input devices are all tied to screen0! That is with the following strange exception:
Right after I bootup, Both keyboards appear to control screen1. However, they quickly loose control of screen1 and permanently gain control of screen0 when I press the WindowsKey & E or click the mouse button.

Here are the contents of my xorg.conf file:
Code:
##### XORG.CONF #####

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 1.0  (buildd@palmer)  Sun Feb  1 20:21:04 UTC 2009

# xorg.conf file based on this tutorial: http://wiki.archlinux.org/index.php/Xorg_multiseat

# Important TV Output Format Info: http://http.download.nvidia.com/solaris/1.0-9629/README/appendix-h.html


Section "Files"
    RgbPath         "/usr/share/X11/rgb"
    FontPath        "/usr/share/fonts/misc"
    FontPath        "/usr/share/fonts/75dpi"
    FontPath        "/usr/share/fonts/100dpi"
    FontPath        "/usr/share/fonts/TTF"
    FontPath        "/usr/share/fonts/Type1"
    FontPath        "/usr/share/fonts/msfonts"
    FontPath        "/usr/share/fonts/misc2"
    FontPath        "/usr/share/fonts/local"
    FontPath        "/usr/local/share/fonts"
EndSection

Section "Module"
    Load           "dbe"   # Double buffer extension
    SubSection     "extmod"
        Option         "omit xfree86-dga"   # don't initialize the DGA extension
    EndSubSection
    Load           "type1"
    Load           "speedo"
    Load           "freetype"
    Load           "glx"
EndSection

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



### SERVER LAYOUT ###
## A definition of which screen, keyboard and mouse to use.
## seat: A workplace with a physical monitor, physical keyboard and physical mouse. 
Section "ServerLayout"
    Identifier     "seat0"
    Screen      0  "Screen0" 0 0
    Screen      1  "Screen1" RightOf "Screen0"
    InputDevice    "mouse0" "CorePointer"
    InputDevice    "keyboard0" "CoreKeyboard"
EndSection
Section "ServerLayout"
    Identifier     "seat1"
    Screen         "screen1" 0 0
    InputDevice    "mouse1" "CorePointer"
    InputDevice    "mouse2" "CorePointer
    InputDevice    "mouse3" "CorePointer
    InputDevice    "keyboard1" "CoreKeyboard"
EndSection

### MICE ###
## Identify mouse #'s "gedit /proc/bus/input/devices". 
## OR... Find out which mouse is which: "sudo cat /dev/input/mouse1". If you then move your mouse and you see all weird things happening than that is the mouse you're moving. 
## Common Mouse Protocols: http://www.faqs.org/docs/Linux-mini/XFree86-Second-Mouse.html
Section "InputDevice"
    Identifier     "mouse0"
    Driver         "mouse"
    Option         "Protocol" "PS/2"
    Option         "Device" "/dev/input/mouse2"
EndSection
Section "InputDevice"
    Identifier     "mouse1"
    Driver         "mouse"
    Option         "Protocol" "IMPS/2"
    Option         "Device" "/dev/input/mouse2"
EndSection
Section "InputDevice"
    Identifier     "mouse2"
    Driver         "mouse"
    Option         "Protocol" "IMPS/2"
    Option         "Device" "/dev/input/mouse2"
EndSection
Section "InputDevice"
    Identifier     "mouse3"
    Driver         "mouse"
    Option         "Protocol" "IMPS/2"
    Option         "Device" "/dev/input/mouse2"
EndSection

### KEYBOARDS ###
## Identify keyboards Event #'s "gedit /proc/bus/input/devices". 
Section "InputDevice"
    Identifier     "keyboard0"
    Driver         "evdev"
    Option         "Device" "/dev/input/event3"
    Option         "XkbModel" "evdev"
    Option         "XkbLayout" "be"
EndSection
Section "InputDevice"
    Identifier     "keyboard1"
    Driver         "evdev"
    Option         "Device" "/dev/input/event7"
    Option         "XkbModel" "evdev"
    Option         "XkbLayout" "be"
EndSection

### MONITORS ###
## A physical monitor like the one you're now sitting in front of
Section "Monitor"
    Identifier     "monitor0"
    VendorName     "Unknown"
    ModelName      "DELL 1901FP"
    HorizSync       30.0 - 80.0
    VertRefresh     56.0 - 76.0
    Option         "dpms"
EndSection
Section "Monitor"
    Identifier     "monitor1"
    VendorName     "Unknown"
    ModelName      "DELL 1901FP"
    HorizSync       30.0 - 80.0
    VertRefresh     56.0 - 76.0
    Option         "dpms"
EndSection

### GRAPHICS CARD ###
## Run "lspci" in Terminal to find Graphics card PCI location. NOTE: Convert from HEX to DECIMAL
Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 9400 GT"
    BusID          "PCI:1:0:0"
    Screen          0
EndSection
Section "Device"
    Identifier     "Device1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 9400 GT"
    BusID          "PCI:1:0:0"
    Screen          1
EndSection

### SCREENS ###
## A screen is something Xorg can display its stuff on. A screen has a monitor and a graphics card assigned to it
Section "Screen"
    Identifier     "screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "DPI" "100x100"
    Option         "TwinView" "0"
    Option         "metamodes" "DFP: 1280x1024 +0+0; DFP: 1024x768 +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
Section "Screen"
    Identifier     "screen1"
    Device         "Device1"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "DPI" "100x100"
    Option         "TwinView" "0"
    Option         "metamodes" "CRT: nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
This multi-seating project has been a goal of mine for a long time now. Please help me figure out what I may be doing wrong.
 
Old 12-09-2009, 09:41 PM   #2
ignisuti
LQ Newbie
 
Registered: Dec 2009
Posts: 13

Original Poster
Rep: Reputation: 0
Bump? It's been a full day and no responses. Please let me know if I can clarify anything.
 
Old 12-09-2009, 10:00 PM   #3
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
Code:
Section "InputDevice"
    Identifier     "mouse0"
    Driver         "mouse"
    Option         "Protocol" "PS/2"
    Option         "Device" "/dev/input/mouse2"
EndSection
Section "InputDevice"
    Identifier     "mouse1"
    Driver         "mouse"
    Option         "Protocol" "IMPS/2"
    Option         "Device" "/dev/input/mouse2"
EndSection
Section "InputDevice"
    Identifier     "mouse2"
    Driver         "mouse"
    Option         "Protocol" "IMPS/2"
    Option         "Device" "/dev/input/mouse2"
EndSection
Section "InputDevice"
    Identifier     "mouse3"
    Driver         "mouse"
    Option         "Protocol" "IMPS/2"
    Option         "Device" "/dev/input/mouse2"
EndSection
All of your mice are using the same device "Device" "/dev/input/mouse2" if you have more then one they should be listed separately.
 
Old 12-09-2009, 10:27 PM   #4
ignisuti
LQ Newbie
 
Registered: Dec 2009
Posts: 13

Original Poster
Rep: Reputation: 0
Okay, it was pretty late that night when I posted that. I've since fixed that error, but am getting the same results.

I've also tried swapping Mouse 0 & 1 in the Server Layout sections for Seat 0 & 1 thinking that would the other screen control, but no change was noticed after restarting X.
 
Old 12-09-2009, 11:14 PM   #5
ignisuti
LQ Newbie
 
Registered: Dec 2009
Posts: 13

Original Poster
Rep: Reputation: 0
I read the following steps on one of Chris Tyler's page:

Code:
0=Standard0
1=Standard1
...

- Add these sections:
[server-Standard0]
name=Standard server
command=/usr/X11R6/bin/X0 -novtswitch -sharevts -layout seat0
flexible=false

[server-Standard1]
name=Standard server
command=/usr/X11R6/bin/X1 -novtswitch -sharevts -layout seat1
flexible=false
I updated my gdm.conf file with this code, but don't think it's quite right for my situation. Since I'm using Ubuntu 9.10, I'm guessing I'm using the latest X.Org release (X11R7.5). However, I don't see an X11R7.5 folder in the /usr folder. What do I need to do?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to make Xorg recognise different mice as different input devices automatically? 10110111 Linux - Software 2 11-28-2009 10:35 AM
[SOLVED] After messing up xorg.conf, touch-pad usb devices and cant connect to the internet. brozell Linux - Hardware 2 09-30-2009 02:26 PM
help with /dev/input/ & xorg.conf adamruss Linux - Hardware 2 08-13-2007 06:22 PM
Multiseat configuration on xorg gamers2000 Linux - General 1 05-10-2007 09:25 AM
Trying to get my Wacom Intuos3 working, problem with input devices/events. Ancient_Blade Slackware 17 02-18-2006 03:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 09:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration