LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (http://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Mice and Keyboard shared on Multiseat Gentoo (http://www.linuxquestions.org/questions/linux-desktop-74/mice-and-keyboard-shared-on-multiseat-gentoo-876671/)

GrateWhiteSmurf 04-23-2011 10:02 AM

Mice and Keyboard shared on Multiseat Gentoo
 
I'm running Gentoo with GNOME. I've just installed a second video card, both cards are nvidia and work fine. I'm trying to set up multiseat, i.e. one mouse, one keyboard, one monitor working with one instance of X, the other mouse, keyboard and monitor using a different instance of X.

I've been able to get a seperate instance of X working on each monitor, but both mice and keyboards are being used by each.

Another strange bit I've seen is that I cannot start X with the "startx" or "X" commands, these both throw errors. However the errors should be non-fatal, but X still won't start. I can only start through etc/init.d/xdm start. This has the annoying effect of me not being able to individually test each seat (startx -layout seat0)

I've followed this tutorial:
http://www.gentoo-wiki.info/HOWTO_Multiseat_X

The relevant parts from /etc/X11/xorg.conf:

Section "ServerLayout"
Identifier "Double" # Two Monitors, one login
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Keyboard1" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
InputDevice "Mouse1" "CorePointer"
Option "Xinerama" "0"
EndSection

Section "ServerLayout"
Identifier "Seat0"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "ServerLayout"
Identifier "Seat1"
Screen 1 "Screen1" 0 0
InputDevice "Mouse1" "CorePointer"
InputDevice "Keyboard1" "CoreKeyboard"
EndSection

...

Section "InputDevice"
Identifier "Keyboard0"
Driver "evdev"
Option "Device" "/dev/input/event2"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "evdev"
Option "Protocol" "auto"
Option "Device" "/dev/input/event3"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
Identifier "Keyboard1"
Driver "evdev"
Option "Device" "/dev/input/event0"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Mouse1"
Driver "evdev"
Option "Protocol" "auto"
Option "Device" "/dev/input/event1"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection

Relevant parts of /etc/X11/gdm/custom.conf

[servers]
0=Standard0
1=Standard1

[server-Standard0]
name=Standard server
command=/usr/bin/X -novtswitch -sharevts -isolateDevice PCI:06:00:00 -layout seat0
flexible=false

[server-Standard1]
name=Standard server
command=/usr/bin/X -novtswitch -sharevts -isolateDevice PCI:04:00:00 -layout seat1
flexible=false

Both /var/log/Xorg.0.log and /var/log/Xorg.1.log look fine, but they have lines like what follows for each of my four input devices:
[ 105.520] (**) I-Rocks Technology Co., LTD. Laser Mouse: Device: "/dev/input/event3"
[ 105.559] (WW) I-Rocks Technology Co., LTD. Laser Mouse: device file is duplicate. Ignoring.
[ 105.579] (EE) PreInit returned 8 for " I-Rocks Technology Co., LTD. Laser Mouse"

I've googled the hell out of this and have learned more about Gentoo penguins than this problem.

JZL240I-U 04-27-2011 02:23 AM

Here are some of my experiences: http://www.linuxquestions.org/questi...tiseat-870463/

See the links at the bottom for more information, in particular the Arch-Wiki is a good resource.

Addendum: Please note, that I used e.g. "/dev/input/by-path/pci-0000:04:07.0-usb-0:1:1.0-event-mouse". There are two links per mouse in this directory. You might want to experiment which one to use. (If I remember correctly, one is for extra functions like the numerical keypad (dunno what for for the mice) but AFAIR it still works).


All times are GMT -5. The time now is 03:02 PM.