Skip to contentSkip to conversation

Multiple keyboard/monitor vs linux-2.6?

DISCUSSION William Park 3 participants 6 messages Dec 12, 2003 – Dec 15, 2003 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 22 lines · Boszormenyi Zoltan

Hi,

is there a way to assign different keyboards to different vcs? I would like to set up a machine that has 2 keyboards, 2 mice and 2 videocards and run XFree-4.x on both heads. The videocard/monitor and mouse settings are easy to set up but I cannot find a device setting for the keyboard in man XF86Config. How can I do it with mainline kerne= ls?

After some googleing I found something called "backstreet ruby"
http://startx.times.lv/eng-faq.html
This gave me this info (howto in a nutshell):

1. Boot with kernel option "dumbcon=N" to activate N dummy console.
2. cat /proc/bus/input/devices gives the input devices, search for keyb= oard
entries.
3. To assign a keyboard to a VT, feed the keyboard Phys= entry into a VT, e.g. echo "isa0060/serio0/input0" > /proc/bus/console/00/keyb=
oard
4. Start the X server on the proper VT.

Quoted 3 lines

The functionality can be found at linuxconsole.sourceforge.net. Will this be included into mainline near term? Say 2.6.[12]? The ruby-2.6 is against 2.6.0-test9 so it's almost uptodate.

Does it work?

I have 2 keyboard/mouse/video setup as well, but I followed
http://cambuca.ldhs.cetuc.puc-rio.br/multiuser/
by Miguel Freitas with 2.4.23 kernel, because you have to unload 'keybdev' USB module. Kernel-2.6.0 doesn't seem to give me that choice. In my XF86Config, I had to use

    Section "InputDevice" 
	Identifier	"USB Keyboard"
	Driver	"keyboard"
	Option	"Protocol"	"usbev"
	Option	"Device"	"/dev/input/event2"
	Option	"XkbRules"	"xfree86"
	Option	"XkbModel"	"pc104"
	Option	"XkbLayout"	"us"
    EndSection

for the USB keyboard. Note the /dev/input/event2 and "Xkb*" lines -- they were necessary.

Both are mentioned in XFree-Local-multi-user-HOWTO. Even though the HOWTO is more for Backstreet Ruby, I couldn't make head or tail of it.

Signature · 2 lines
William Park, Open Geometry Consulting, <[email protected]>
Linux solution for data management and processing. 
#2 lore raw
Quoted 8 lines · William Park
Quoted 4 lines · Boszormenyi Zoltan

The functionality can be found at linuxconsole.sourceforge.net. Will this be included into mainline near term? Say 2.6.[12]? The ruby-2.6 is against 2.6.0-test9 so it's almost uptodate.

Does it work?

It works with 2.6.0-test11. Prepare a kernel source tree, check out ruby from cvs, copy the ruby-2.6 parts into the kernel tree.

I run my home machine this way:
2 standard keyboards, one connected to the keyboard port and another connected to the ps2 mouse port.
2 mice, both connected to serial ports.
2 screens, connected to the two outputs of a matrox G550.

One xserver runs using standard mga driver, another xserver uses the unaccelerated framebuffer driver on the framebuffer displayed on the second screen.

The screen with the accelerated server also have accelerated opengl. The other screen uses software opengl, fast enough for frozen-bubble and rocks&diamonds, but not for tuxracer.

xdm manages both screens, so any user can log in at either screen.

The G550 isn't ideal for this, because resetting the accelerated xserver causes the framebuffer screen to blink (accelerated xserver disturbs the other display while setting resolution.)
This is a software problem though.

It seems possible to run accelerated servers at both screens as long as only one uses opengl. I haven't bothered yet because unaccelerated 2D performance seems fine for all purposes with dual 333MHz processors.

Using two video cards AGP+PCI or PCI+PCI solves the interactions between the two displays, but then you need a modified xserver. (Std. Xserver turns off video cards it donesn't use, without worrying about other servers using the other card.)

Letting two servers use a single card don't have this problem, but it could possibly have other problems.

Helge Hafting

#3 lore raw
Quoted 9 lines · Helge Hafting
Quoted 8 lines · William Park
Quoted 4 lines · Boszormenyi Zoltan

The functionality can be found at linuxconsole.sourceforge.net. Will this be included into mainline near term? Say 2.6.[12]? The ruby-2.6 is against 2.6.0-test9 so it's almost uptodate.

Does it work?

Quoted 7 lines

It works with 2.6.0-test11. Prepare a kernel source tree, check out ruby from cvs, copy the ruby-2.6 parts into the kernel tree.

I run my home machine this way:
2 standard keyboards, one connected to the keyboard port and another connected to the ps2 mouse port.

Plug PS/2 keyboard into PS/2 mouse port??? I didn't know you can do that.

Quoted 2 lines

2 mice, both connected to serial ports.
2 screens, connected to the two outputs of a matrox G550.

Signature · 2 lines
William Park, Open Geometry Consulting, <[email protected]>
Linux solution for data management and processing. 
#4 lore raw
Quoted 1 line · William Park

On Sat, Dec 13, 2003 at 02:14:05PM +0100, Helge Hafting wrote:

[...]

Quoted 7 lines
Quoted 3 lines

I run my home machine this way:
2 standard keyboards, one connected to the keyboard port and another connected to the ps2 mouse port.

Plug PS/2 keyboard into PS/2 mouse port??? I didn't know you can do that.

The two ports are the same hardware, which makes sense as they serve the same purpose - serial communication with a slow device.

The common case is one keyboard and one mouse, but two mice or two keyboards works just as well as long as the software expects it. Linux 2.6 have no problems with this.

You need the ruby patch to use the two keyboards independently, the standard kernel merges input from all attached keyboards into one console.

You may attach a lot more keyboards using usb keyboards.

Helge Hafting

#6 lore raw
In reply to William Park

Hi!

Quoted 10 lines
Quoted 10 lines
Quoted 6 lines
Quoted 3 lines

The functionality can be found at linuxconsole.sourceforge.net. Will this be included into mainline near term? Say 2.6.[12]? The ruby-2.6 is against 2.6.0-test9 so it's almost uptodate.

Does it work?

It works with 2.6.0-test11. Prepare a kernel source tree, check out ruby from cvs, copy the ruby-2.6 parts into the kernel tree.

Quoted 6 lines
Quoted 3 lines

I run my home machine this way:
2 standard keyboards, one connected to the keyboard port and another connected to the ps2 mouse port.

Plug PS/2 keyboard into PS/2 mouse port??? I didn't know you can do that.

Yep, that works, with proper software.
Pavel

Signature · 2 lines
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]
#5 lore raw
In reply to Helge Hafting
Quoted 11 lines · Helge Hafting
Quoted 2 lines · William Park

Plug PS/2 keyboard into PS/2 mouse port??? I didn't know you can do that.

The two ports are the same hardware, which makes sense as they serve the same purpose - serial communication with a slow device.

The common case is one keyboard and one mouse, but two mice or two keyboards works just as well as long as the software expects it. Linux 2.6 have no problems with this.

Quoted 5 lines

You need the ruby patch to use the two keyboards independently, the standard kernel merges input from all attached keyboards into one console.

You may attach a lot more keyboards using usb keyboards.

Just tried it... works on 2.6, but not on 2.4.23. Damn, I didn't have to out and pay real money for USB keyboard/mouse. :-)

Signature · 2 lines
William Park, Open Geometry Consulting, <[email protected]>
Linux solution for data management and processing.