23 May 2005, 2:26

Comments Off

Getting a true dual head system working (2)

I guess I’m too much bothered with something not working than I expected. When I reread my last post and started removing all the open tabs from my running FireFox , I found a final link on one of the pages, pointing to here. Apparantly, someone has already patched the X.org server for Fedore Core 3! The patch should make this stuff work… I’ve downloaded the current X.org from Mandriva and started applying the patch. It didn’t take after the first run immediately, so I will need to rewrite a little bit. But I might get this working after all…

If all else fails, I can always try those FC3 packages… Wish me luck!

23 May 2005, 1:28

1 comment

Getting a true dual head system working (1)

Okay, I’ve been at it for about four hours now. I thought, time to report my doings and see if I can get this to work tomorrow.

First, what I’m trying to do. I’ve got a setup in which I want to have two users working on a single machine. That means two monitors, two keyboards, two mice and one computer. I actually have done this before, in a very distant past (somewhere in 2000-2001 I think) and I remember spending a lot of time on it. Alas, I didn’t write anything down at the time, so I’m starting all anew here.

The distro I’m running is Mandriva Linux 2005LE. I actually don’t think the distro should be a real problem here. I’m not setting this up using two video cards, but with one dual head Matrox G450 (the link is to the Matrox Millenium G450, which I do not have, but I can’t seem to find a link to the normal G450). Next to this I’m using two LCDisplays (nice 17″ ones, never be cheap about LCD), a PS/2 keyboard and mouse and a USB keyboard and mouse. The mice are all Logitech optical thingies and work seperately great. The PS/2 keyboard is an oldy, but works quite well, as far as I know. The USB keyboard is a brand new Logitech thingy, which I’m using to type this text. So nothing fancy, really.

Well, all information while looking for “x.org true dual head” or anything that looks like that, I can’t really find anything useful. The most useful stuff was on Miguel Freitas’ page Multiple local XFree users under Linux, which details the problems I’m having quite nicely. The thing is, I can only find solutions in which I need to patch the kernel, which I don’t think is an actual solution but more a hack. Also, most of these pages describe XFree86, while I’m using X.org Xserver.

I used to think that both heads couldn’t work independent, but that’s really not the case. The default setup Mandriva gives me is a dual head setup with two desktops, on each monitor another. They are configured completely independent of each other and I can switch from one to the other by moving my mouse pointer off the screen towards the other screen. Like Xinerama would fix it. But that’s just not what I want.

Although it’s quite easy to talk to the heads indepently, the seem to be connect in one way or another. I’ll print the full xorg.conf file on the bottom of this post. That’s the way I’ve at least got a working setup, in which I can type this text, but it’s not dual head. The two heads just show exactly the same information. Definitly not what I want.

Another problem seems to be the input devices. Although multiple mice works fine, multiple keyboards is still a drag. Even with a new kernel (Mandriva packs the 2.6.11, which is quite recent at the time of this writing, with the latest stable being 2.6.11.10), there seem to be several devices that handle the keyboards and they all seem to work differently. The fact is made even more obscure with there only being two keyboard drivers with X.org, being “keyboard” and “kbd” (at least, I cannot find any other drivers that look like they could do keyboard-stuff). When I put a Device option into the InputDevice for my keyboard part of my xorg.conf, pointing towards /dev/input/event0 (the device reported in /proc/bus/input/devices for the PS/2 keyboard), all seems to load well. But when I enter text in the KDM login screen, I’m getting multiple, different characters in a randomish fashion. When I leave the driver out (the default setup), pressing a button on either keyboard will get registered and handled. Again, not what I want.

Something I learned from the sites I read is that I’ll probably need to be running two X-servers, which sounds logical. If I can create several layouts I can simply start X with a “-layout layoutname” option. That way I can start those servers. I could add those lines to /etc/rc.local to have them start at startup (let’s not forget to remove /etc/init.d/dm from startup, the default Mandriva script for starting up the display manager).

All in all, I’m not making any progress tonight and I’m too tired now to look further. Tomorrow, if time permits, I’ll look further. If I can’t find anything decent then, I’ll go recompile a kernel with the ruby-kernel-patch from Linux Console Project. Maybe that will work.

Below my latest xorg.conf:
more »

 
  • Calender

    May 2005
    M T W T F S S
    « Apr   Jun »
     1
    2345678
    9101112131415
    16171819202122
    23242526272829
    3031  
  • Twitter

    Powered by Twitter Tools

  • RSS Delicious feed

  • Archives