Howdy
I was advised to use the following in xorg.conf if I want to configure
Xorg 1.3 to use a specific USB keyboard
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "Protocol" "VUID"
Option "StreamModule" "usbkbm"
Option "Device" "/dev/usb/hid0"
EndSection
It worked on Xorg 1.3. But when I tried it on Xorg 1.5, the keyboard
does not work and I found the following error in Xerrors:
(EE) Keyboard0: Unable to determine keyboard type: Inappropriate ioctl for
device
(EE) PreInit failed for input device "Keyboard0"
Did I miss something or the method changed?
I thought from version 1.5, Xorg makes use of HAL to discover keyboards and will
open them directly. But the code in xf86-input-keyboard:
> static Bool
> OpenKeyboard(InputInfoPtr pInfo)
> {
> const char *kbdPath = NULL;
> const char *defaultKbd = "/dev/kbd";
>
> if (pInfo->options != NULL) {
> kbdPath = xf86SetStrOption(pInfo->options, "Device", NULL);
> }
> if (kbdPath == NULL) {
> kbdPath = defaultKbd;
> }
>
> pInfo->fd = open(kbdPath, O_RDONLY | O_NONBLOCK);
Shows it still use /dev/kbd as default. I don't know if it is still the case in
the
upcoming 1.6 version.
Thanks,
Aaron
--
You know some birds are not meant to be caged, their feathers are just too
bright.
????????????????????????