[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090622172201.GA21153@elf.ucw.cz>
Date: Mon, 22 Jun 2009 19:22:02 +0200
From: Pavel Machek <pavel@....cz>
To: Jiri Kosina <jkosina@...e.cz>
Cc: David Miller <davem@...emloft.net>,
Dmitry Torokhov <dmitry.torokhov@...il.com>,
linux-input@...r.kernel.org, swetland@...gle.com, arve@...roid.com,
linux@....linux.org.uk, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.arm.linux.org.uk, san@...roid.com,
rlove@...gle.com, Greg KH <greg@...ah.com>
Subject: Re: defkeymap making machine useless (was Re: HTC Dream aka.
t-mobile g1 support)
On Mon 2009-06-22 11:33:31, Jiri Kosina wrote:
> On Fri, 19 Jun 2009, Pavel Machek wrote:
>
> > > > Yeah, I wasn't sure how to handle this. We try to keep the
> > > > msm/dream stuff in a state that doesn't break other parts of the
> > > > tree, but there doesn't seem to be support for different keymaps for
> > > > different devices.
> > > How it's supposed to work is that you have a specific keyboard driver
> > > and that emits PC keyboard codes into the core kernel using a
> > > translation table in your driver.
> > Of course, Dream does that. But that's not _nearly_ enough. Dream
> > lacks keys such as: esc, arrows, symbols (/;'[]\-=). That means that
> > for +, you can't press shift-=, you need to press altgr-P.
>
> I don't seem to have enough context, but wouldn't writing a separate serio
> driver, which would do all the needed translations be enough here?
Umm.
Yes, we could parse the keyboard combinations in the keyboard driver,
and then emulate the PC keyboard. It would be incredibly ugly. Such as:
If user presses Alt+I, (labeled "-" on keyboard), emulate "Shift+="
press, then let the defkeymap.map translate it back to "-".
I... guess it will be nicer if the keyboard driver specifies which
keymap to use?
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists