* User-space Keyboard input?
@ 2004-07-23 10:36 Mario Lang
2004-07-23 10:54 ` Marcel Holtmann
2004-07-24 1:02 ` Samuel Thibault
0 siblings, 2 replies; 5+ messages in thread
From: Mario Lang @ 2004-07-23 10:36 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1013 bytes --]
Hi.
I'm working on BRLTTY[1], a user-space daemon which handles braille displays
on UNIX platforms. One of our display drivers recently gained the ability
to receive (set 2) scancodes from a keyboard connected directly to the display.
This is a very cool feature, since the display in question has
a bluetooth interface, making it effectively into a complete wireless
terminal (input and output through the same connection).
However, this creates some problems. First of all, we now have to deal
with keyboard layouts. Additionally, since we currently insert via
TIOCSTI I think this might get problematic as soon as one switches
to an X Windows console and modifiers come into play.
Does anyone know (and can point me into the right direction) if
Linux has some mechanism to allow for user-space keyboard data to
be processed by the kernel as if it were received from the system
keyboard? I.e., keyboard layout would be handled by the same
mapping which is configured for the system.
--
Thanks,
Mario
[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: User-space Keyboard input?
2004-07-23 10:36 User-space Keyboard input? Mario Lang
@ 2004-07-23 10:54 ` Marcel Holtmann
[not found] ` <87bri6n7nz.fsf@lexx.delysid.org>
2004-07-24 1:02 ` Samuel Thibault
1 sibling, 1 reply; 5+ messages in thread
From: Marcel Holtmann @ 2004-07-23 10:54 UTC (permalink / raw)
To: Mario Lang; +Cc: Linux Kernel Mailing List
Hi Mario,
> I'm working on BRLTTY[1], a user-space daemon which handles braille displays
> on UNIX platforms. One of our display drivers recently gained the ability
> to receive (set 2) scancodes from a keyboard connected directly to the display.
> This is a very cool feature, since the display in question has
> a bluetooth interface, making it effectively into a complete wireless
> terminal (input and output through the same connection).
tell me more about this Bluetooth device.
> However, this creates some problems. First of all, we now have to deal
> with keyboard layouts. Additionally, since we currently insert via
> TIOCSTI I think this might get problematic as soon as one switches
> to an X Windows console and modifiers come into play.
>
> Does anyone know (and can point me into the right direction) if
> Linux has some mechanism to allow for user-space keyboard data to
> be processed by the kernel as if it were received from the system
> keyboard? I.e., keyboard layout would be handled by the same
> mapping which is configured for the system.
Take a look at the user level driver support (uinput).
Regards
Marcel
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: User-space Keyboard input?
2004-07-23 10:36 User-space Keyboard input? Mario Lang
2004-07-23 10:54 ` Marcel Holtmann
@ 2004-07-24 1:02 ` Samuel Thibault
2004-07-24 6:09 ` Mario Lang
1 sibling, 1 reply; 5+ messages in thread
From: Samuel Thibault @ 2004-07-24 1:02 UTC (permalink / raw)
To: Mario Lang; +Cc: linux-kernel
Hi Mario,
About modifiers, I submitted a patch to Dave to handle them
properly.
But ascii to scancode translation still depends on scancode to ascii
translation performed by the kernel indeed and the question still
applies. I'll have a look at uinput.
Regards,
Samuel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: User-space Keyboard input?
2004-07-24 1:02 ` Samuel Thibault
@ 2004-07-24 6:09 ` Mario Lang
0 siblings, 0 replies; 5+ messages in thread
From: Mario Lang @ 2004-07-24 6:09 UTC (permalink / raw)
To: linux-kernel
Samuel Thibault <samuel.thibault@ens-lyon.org> writes:
> About modifiers, I submitted a patch to Dave to handle them
> properly.
>
> But ascii to scancode translation still depends on scancode to ascii
> translation performed by the kernel indeed and the question still
> applies. I'll have a look at uinput.
uinput support is now committed to scr_linux.c. I am using the exernal
keyboard of my bluetooth capable braille display to type this email already
via uinput :-). The same layout is used as is configured on the box.
Our generic AT2 support maps to VAL_PASSKEY commands and
the AT2 support for Linux maps the AT2 scancode set to what Linux internally
uses for scancodes (a sort of XT scancode set, but not really).
--
CYa,
Mario
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-07-24 6:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-23 10:36 User-space Keyboard input? Mario Lang
2004-07-23 10:54 ` Marcel Holtmann
[not found] ` <87bri6n7nz.fsf@lexx.delysid.org>
2004-07-23 14:52 ` Marcel Holtmann
2004-07-24 1:02 ` Samuel Thibault
2004-07-24 6:09 ` Mario Lang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox