Bug 5668 - [PATCH] Evdev support in kdrive
Summary: [PATCH] Evdev support in kdrive
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: * Other (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: high enhancement
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2006-01-20 22:36 UTC by Ander Conselvan de Oliveira
Modified: 2007-08-07 19:29 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Adds evdev support to kdrive (17.24 KB, patch)
2006-01-20 22:37 UTC, Ander Conselvan de Oliveira
no flags Details | Splinter Review
changes keymap to default from Xorg evdev driver (15.26 KB, patch)
2006-04-21 21:05 UTC, Mark Pustjens
no flags Details | Splinter Review

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.