linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* defkeymap making machine useless (was Re: HTC Dream aka. t-mobile g1 support)
       [not found]     ` <20090618.123845.232783995.davem@davemloft.net>
@ 2009-06-18 23:07       ` Pavel Machek
  2009-06-22  9:33         ` Jiri Kosina
  0 siblings, 1 reply; 3+ messages in thread
From: Pavel Machek @ 2009-06-18 23:07 UTC (permalink / raw)
  To: David Miller, dmitry.torokhov, linux-input, jikos
  Cc: swetland, arve, linux, linux-kernel, linux-arm-kernel, san, rlove,
	greg

Hi!

Debate is about keymaps:

 Ok, I created something useful in the meantime. Question is, what to
 do with the new keymap? I can obviously keep it at local patch,
 but...

 PC defkeymap.map makes HTC Dream useless.

 HTC Dream defkeymap.map makes PC useless :-(.

> > 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.

So yes, mapping keycodes helps (at least you get a-z,0-9), but that's
basically it, and keys it has are not enough to actually type loadkeys
/foo/bar/baz.map :-(.

									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

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

* Re: defkeymap making machine useless (was Re: HTC Dream aka. t-mobile g1 support)
  2009-06-18 23:07       ` defkeymap making machine useless (was Re: HTC Dream aka. t-mobile g1 support) Pavel Machek
@ 2009-06-22  9:33         ` Jiri Kosina
  2009-06-22 17:22           ` Pavel Machek
  0 siblings, 1 reply; 3+ messages in thread
From: Jiri Kosina @ 2009-06-22  9:33 UTC (permalink / raw)
  To: Pavel Machek
  Cc: David Miller, Dmitry Torokhov, linux-input, swetland, arve, linux,
	linux-kernel, linux-arm-kernel, san, rlove, Greg KH

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?

-- 
Jiri Kosina
SUSE Labs

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

* Re: defkeymap making machine useless (was Re: HTC Dream aka. t-mobile g1 support)
  2009-06-22  9:33         ` Jiri Kosina
@ 2009-06-22 17:22           ` Pavel Machek
  0 siblings, 0 replies; 3+ messages in thread
From: Pavel Machek @ 2009-06-22 17:22 UTC (permalink / raw)
  To: Jiri Kosina
  Cc: David Miller, Dmitry Torokhov, linux-input, swetland, arve, linux,
	linux-kernel, linux-arm-kernel, san, rlove, Greg KH

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

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

end of thread, other threads:[~2009-06-22 17:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <d6200be20906171436y5280ed8do561d2d53d73ca78@mail.gmail.com>
     [not found] ` <20090618101309.GC28892@elf.ucw.cz>
     [not found]   ` <a55d774e0906181233p35b60cd2ga401bd1304267643@mail.gmail.com>
     [not found]     ` <20090618.123845.232783995.davem@davemloft.net>
2009-06-18 23:07       ` defkeymap making machine useless (was Re: HTC Dream aka. t-mobile g1 support) Pavel Machek
2009-06-22  9:33         ` Jiri Kosina
2009-06-22 17:22           ` Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).