Bug 5668

Summary: [PATCH] Evdev support in kdrive
Product: xorg Reporter: Ander Conselvan de Oliveira <conselvan2>
Component: * OtherAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: enhancement    
Priority: high CC: conselvan2, daniel
Version: unspecifiedKeywords: patch
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Adds evdev support to kdrive
none
changes keymap to default from Xorg evdev driver none

Description Ander Conselvan de Oliveira 2006-01-20 22:36:10 UTC
It would be nice to have evdev support for both mice and keyboard in the kdrive
framework. I made a patch that adds that feature to kdrive.
Comment 1 Ander Conselvan de Oliveira 2006-01-20 22:37:03 UTC
Created attachment 4404 [details] [review]
Adds evdev support to kdrive
Comment 2 Mark Pustjens 2006-04-21 21:03:30 UTC
The default keymapping didn't work for me. I created a patch which contains the
default keymapping from Xorg's evdev driver.
Comment 3 Mark Pustjens 2006-04-21 21:05:52 UTC
Created attachment 5401 [details] [review]
changes keymap to default from Xorg evdev driver

Should be applied after https://bugs.freedesktop.org/attachment.cgi?id=4404
Comment 4 Ander Conselvan de Oliveira 2006-04-25 04:41:29 UTC
(In reply to comment #2)
> The default keymapping didn't work for me. I created a patch which contains the
> default keymapping from Xorg's evdev driver.

I'm not able to test it because I use a Brazillian ABNT2 keyboard. I'm trying to
figure out the right way to map the keyboard. I don't know if I'm supposed to
map the keys in kernel space or within the X server.
Comment 5 Ander Conselvan de Oliveira 2006-04-29 07:35:13 UTC
I'm changing the product field since kdrive was merged in the xorg tree.
Comment 6 Daniel Stone 2006-08-04 04:31:30 UTC
any chance you could rework this so that it applies against the input-hotplug
branch of xserver?
Comment 7 Ander Conselvan de Oliveira 2006-08-04 10:33:54 UTC
I'm willing to do it. Is there any documentation about the changes in this branch?
Comment 8 Daniel Stone 2006-11-04 10:31:38 UTC
not really, though you could look at the diff of, say, linux/ps2.c.

basically, you need to register a driver.  instead of carrying around a type
number, you now just get KdPointerInfo * and KdKeyboardInfo *s for every
function you provide.  so from Init, Enable, Disable, Fini.  pass that as your
closure into KdRegisterFd, and call KdPostPointerEvent (or whatever it's called)
with that, and there's also a z parameter too.  i think that's about it.

fyi, this has now been merged into master.
Comment 9 Daniel Stone 2007-02-27 01:30:06 UTC
Sorry about the phenomenal bug spam, guys.  Adding xorg-team@ to the QA contact so bugs don't get lost in future.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.