public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Device files for keyboard(s)?
@ 2005-12-10  8:57 Nico Schottelius
  2005-12-10 14:49 ` Dmitry Torokhov
  0 siblings, 1 reply; 2+ messages in thread
From: Nico Schottelius @ 2005-12-10  8:57 UTC (permalink / raw)
  To: LKML

[-- Attachment #1: Type: text/plain, Size: 1066 bytes --]

Hello dear Kernel-Developers,

I've the problem that I've connected two keyboards
(one via usb and one via ps/2) to my machine and I want to have
different keyboard layout on it.

While I was trying to find out what would be the best way to do that,
I was somehow surprised that keyboards are not presented via
a device file to userspace.

My questions are:

- Is there a reason not to have devices for keyboards?
- If I would implement it into a recent kernel, would it have any chance
  getting into mainline?

I know this would have some consequences for user space, at least those:

- x11 (x.org/xfree) would have to modify their input device section for Linux
  for keyboards
- loadkeys would have to be patched so one could specify which keyboard
  to change the layout for
- kde/gnome would have to be changed in the manner that they support more
  than one keyboard

Nico

P.S.: Please cc me.

-- 
Latest project: cinit-0.2.1 (http://linux.schottelius.org/cinit/)
Open Source nutures open minds and free, creative developers.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 827 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Device files for keyboard(s)?
  2005-12-10  8:57 Device files for keyboard(s)? Nico Schottelius
@ 2005-12-10 14:49 ` Dmitry Torokhov
  0 siblings, 0 replies; 2+ messages in thread
From: Dmitry Torokhov @ 2005-12-10 14:49 UTC (permalink / raw)
  To: Nico Schottelius, LKML

On Saturday 10 December 2005 03:57, Nico Schottelius wrote:
> Hello dear Kernel-Developers,
> 
> I've the problem that I've connected two keyboards
> (one via usb and one via ps/2) to my machine and I want to have
> different keyboard layout on it.
> 
> While I was trying to find out what would be the best way to do that,
> I was somehow surprised that keyboards are not presented via
> a device file to userspace.
>

They are. You need to use event input interface. All input devices can
be accessed via /dev/input/eventX device nodes.
 
> My questions are:
> 
> - Is there a reason not to have devices for keyboards?
> - If I would implement it into a recent kernel, would it have any chance
>   getting into mainline?
> 
> I know this would have some consequences for user space, at least those:
> 
> - x11 (x.org/xfree) would have to modify their input device section for Linux
>   for keyboards
> - loadkeys would have to be patched so one could specify which keyboard
>   to change the layout for
> - kde/gnome would have to be changed in the manner that they support more
>   than one keyboard
> 
> Nico
> 
> P.S.: Please cc me.
> 

-- 
Dmitry

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-12-10 14:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-10  8:57 Device files for keyboard(s)? Nico Schottelius
2005-12-10 14:49 ` Dmitry Torokhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox