LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 07-06-2005, 04:22 AM   #1
airportugal
LQ Newbie
 
Registered: Jul 2005
Posts: 1

Rep: Reputation: 0
Unhappy 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
...
 
Old 07-09-2005, 10:26 PM   #2
sekelsenmat
Member
 
Registered: Apr 2005
Location: São Paulo - Brazil
Distribution: Mageia Linux 1
Posts: 353

Rep: Reputation: 30
This is not a Mandrake-specific problem. This is a very advanced programming problem ... you should try:

- Posting on x.org mailing list

or

- Posting on a Forum dedicated to programming
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
xorg 6.8.1 (dri?) problem tox2ik Linux - Software 3 05-19-2008 10:14 PM
replace 'xfree86' by 'xorg' in your xorg config file dindoung Linux - Newbie 2 02-26-2005 04:43 AM
Xorg 6.8.1 compile problem drowbot Linux From Scratch 3 12-26-2004 03:47 PM
xorg 6.8 problem Mystified Linux - Software 0 11-27-2004 04:33 PM
Xorg Hard Crashes and corrupts xorg.conf Advocator Linux - General 0 07-15-2004 01:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 04:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration