Hi,
I'm setting up a FreeBSD workstation for two users so that each one can work at the same time in a X environment.
My setup is:
The integrated Haswell graphics of the Xeon E3-1246v3 cpu is not yet supported, so I'm trying to use vesa driver for seat0.
There's also a radeon graphics card for seat1.
I can already get the screen for user0 and another screen for user1, but either I get both keyboards working in seat0 and both mice scrolling in seat1 or I get no action from keyboards or mice. The keyboards and mice are all connected via USB.
My current xorg.conf is: (relevant parts only)
In /etc/rc.conf there's
When I attach and detach both keyboards and mice, the OS shows that ukbd0 and ukbd1 for the former and ums0 and ums2 are used. But if I include these (with /dev/ as a prefix, so /dev/ubkd0...) neither the keyboards, nor the mice work.
For the mice to work I have to include the
The problem is that I only find one device but have two mice to be assigned to two different screens.
So, how can I assign the correct keyboard and mice to the two seats?
Furthermore, supposing that keyboards may be removed, how to assign the chosen keyboard to the right seat ano not the first one that goes to ubkd0? With devfs?
I'm setting up a FreeBSD workstation for two users so that each one can work at the same time in a X environment.
My setup is:
Code:
# uname -a
FreeBSD leao 10.1-STABLE FreeBSD 10.1-STABLE #0 r281384M: Sat Apr 11 00:32:06 WEST 2015 root@leao:/usr/obj/usr/src/sys/GENERIC amd64
The integrated Haswell graphics of the Xeon E3-1246v3 cpu is not yet supported, so I'm trying to use vesa driver for seat0.
There's also a radeon graphics card for seat1.
I can already get the screen for user0 and another screen for user1, but either I get both keyboards working in seat0 and both mice scrolling in seat1 or I get no action from keyboards or mice. The keyboards and mice are all connected via USB.
My current xorg.conf is: (relevant parts only)
Code:
Section "ServerLayout"
Identifier "seat0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
Section "ServerLayout"
Identifier "seat1"
Screen 1 "Screen1" 0 0
InputDevice "Keyboard1" "CoreKeyboard"
InputDevice "Mouse1" "CorePointer"
Option "AIGLX" "true"
EndSection
Section "ServerFlags"
Option "DontZap" "off"
Option "DefaultServerLayout" "seat0"
#Option "StandbyTime" "10"
#Option "SuspendTime" "20"
#Option "OffTime" "30"
#Option "DRI2" "on"
Option "AutoAddDevices" "false"
Option "AutoEnableDevices" "false"
Option "AllowMouseOpenFail" "on"
Option "AllowEmptyInput" "on"
Option "ZapWarning" "on"
Option "HandleSpecialKeys" "off" # Zapping on
Option "Xinerama" "off"
EndSection
Section "Extensions"
Option "Composite" "Enable"
EndSection
Section "Module"
Load "dbe"
Load "dri"
Load "dri2"
Load "extmod"
Load "record"
Load "freetype"
Load "bitmap"
Load "type1"
Load "glx"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
#Option "Device" "/dev/kbd2"
Option "XkbLayout" "pt"
Option "XkbModel" "pc105"
Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection
Section "InputDevice"
Identifier "Keyboard1"
Driver "kbd"
#Option "Device" "/dev/kbd3"
Option "XkbLayout" "pt"
Option "XkbModel" "pc105"
Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
#Option "Device" "/dev/ums1"
Option "Protocol" "auto"
Option "Device" "/dev/sysmouse"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
#Option "Device" "/dev/ums0"
Option "Protocol" "auto"
Option "Device" "/dev/sysmouse"
Option "ZAxisMapping" "4 5 6 7"
EndSection
In /etc/rc.conf there's
Code:
hald_enable="YES"
dbus_enable="YES"
When I attach and detach both keyboards and mice, the OS shows that ukbd0 and ukbd1 for the former and ums0 and ums2 are used. But if I include these (with /dev/ as a prefix, so /dev/ubkd0...) neither the keyboards, nor the mice work.
For the mice to work I have to include the
Code:
Option "Device" "/dev/sysmouse"
So, how can I assign the correct keyboard and mice to the two seats?
Furthermore, supposing that keyboards may be removed, how to assign the chosen keyboard to the right seat ano not the first one that goes to ubkd0? With devfs?