[XFree86] alternate keyboard device?

2003-12-23 Thread Alexander Gordeyev
Hello!

xc/programs/Xserver/hw/xfree86/os-support/linux/lnx_kbd.c OpenKeyboard
routine has following code:

s = xf86SetStrOption(pInfo-options, Device, NULL);
if (s == NULL) {
   pInfo-fd = xf86Info.consoleFd;
   pKbd-isConsole = TRUE;
} else {
   pInfo-fd = open(s, O_RDONLY | O_NONBLOCK | O_EXCL);
   if (pInfo-fd == -1) {
   xf86Msg(X_ERROR, %s: cannot open \%s\\n, pInfo-name, s);
   xfree(s);
   return FALSE;
   }
   pKbd-isConsole = FALSE;
   xfree(s);
}


My XF86Config-4 snippet:


Section InputDevice
 Identifier Generic Keyboard
 Driver  keyboard
 Option  CoreKeyboard
 Option  XkbRules xfree86
 Option  XkbModel pc104
 Option  XkbLayout us
 Option  Device /dev/keyboard
EndSection


It seems XFree-4.3.0 ignores Device option within keyboard section,
instead uses keyboard from VT. How to make X open another keyboard device?


With best regards, Alexander Gordeyev.  E-mail: [EMAIL PROTECTED]

___
XFree86 mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xfree86


Re: [XFree86] alternate keyboard device?

2003-12-23 Thread Aivils Stoss
It seems XFree-4.3.0 ignores Device option within keyboard section,
instead uses keyboard from VT. How to make X open another keyboard device?

One parameter of xf86 works nice - vtXX , where XX is number of TTY device
I use that parameter in association with some hacks:
http://startx.times.lv

Anyway if You use another device for keyboard, then xf86 is TTY depended
and
allways open TTY device.


Aivils Stoss

___
XFree86 mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xfree86