LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-23-2011, 10:02 AM   #1
GrateWhiteSmurf
LQ Newbie
 
Registered: Jan 2010
Location: State College, PA
Distribution: Gentoo, Ubuntu 10.10 Netbook Remix, OpenSuSE 11.2
Posts: 19

Rep: Reputation: 0
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.
 
Old 04-27-2011, 02:23 AM   #2
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,642

Rep: Reputation: Disabled
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).
 
  


Reply

Tags
gentoo, multiseat, xorg


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
one cpu ,two monitor, two keyboard, two mice..any help?? jeevanism Linux - Networking 9 01-04-2011 08:14 AM
RF Wireless Keyboard and Mice Recommendations Woodsman Linux - Hardware 1 09-07-2009 05:22 PM
Mandriva 2008.0 evdev with usb keyboard for multiseat config darion Mandriva 1 08-02-2008 07:40 AM
problems with mice/keyboard switch ilectrcbob Linux - Hardware 1 01-18-2005 07:21 AM
gentoo and mice Aldebaran Linux - Newbie 2 02-14-2004 04:27 PM


All times are GMT -5. The time now is 08:21 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration