xorg problem
Hi there,
I've been developing a keyboard emulator software using xorg and mandrake 10.2. My program works sending AT scancodes to a "virtual device" that the kbd driver reads. As a secondary keyboard, it sends core events. The xserver starts fine, without any comply and the driver gets the appropiate keycode and the correct ASCII symbols are shown on the screen. The problem lays on an excessive increase in CPU usage by the xserver process (up to 99%) after posting the keyboard events. I really don't know what's going on and I'm really stuck at this point, because I don't find any loop or some other code in the source of kbd.c that may be such cpu-consuming.
Thanks for your help,
xavier
Here I post some configuration information:
the AT scancodes written to /dev/input/vkeyb (a buffered special file) are taken from computer-engineering.org/ps2keyboard/scancodes1.html
In the xorg.conf file appears:
Section "ServerLayout"
Identifier "Default Layout"
..
InputDevice "VKeyboard"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "DevInputMice" "AlwaysCore"
...
EndSection
...
Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc105"
Option "XkbLayout" "es"
EndSection
Section "InputDevice"
Identifier "VKeyboard"
Driver "kbd"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc105"
Option "XkbLayout" "es"
Option "Device" "/dev/input/vkeyb"
Option "SendCoreEvents" "true"
EndSection
...
|