public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* Modifying the kernel keymap
@ 2009-11-15 20:06 Cory Maccarrone
  2009-11-15 22:31 ` Felipe Balbi
  0 siblings, 1 reply; 4+ messages in thread
From: Cory Maccarrone @ 2009-11-15 20:06 UTC (permalink / raw)
  To: linux-omap

All,

I'm working with the Wing Linux and Linwizard projects in porting
various omap850-based devices to Linux, and was wondering about
keymaps.

In particular, I'm working with the HTC Herald, which uses an Alt key
to access things like numbers and symbols on a physical keyboard.  In
Linux, the keymappings are wrong for this -- Alt does something
different and doesn't allow access to those extra characters.

In Linwizard, we've modified the defkeymap and added makefile rules to
compile our modified defkeymap when a specific board was selected, but
this isn't portable when building a kernel for many boards at once,
each having a different mapping.

So, my question is, what is the best way to go about changing the
defkeymap, or supplying a keymap that allows all the keys to function
correctly, but doesn't require non-portable makefile hacks?

Thanks,
Cory

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

* Re: Modifying the kernel keymap
  2009-11-15 20:06 Modifying the kernel keymap Cory Maccarrone
@ 2009-11-15 22:31 ` Felipe Balbi
  2009-11-15 22:42   ` Cory Maccarrone
  0 siblings, 1 reply; 4+ messages in thread
From: Felipe Balbi @ 2009-11-15 22:31 UTC (permalink / raw)
  To: Cory Maccarrone; +Cc: linux-omap

Hi,

On Sun, 2009-11-15 at 12:06 -0800, Cory Maccarrone wrote:
> All,
> 
> I'm working with the Wing Linux and Linwizard projects in porting
> various omap850-based devices to Linux, and was wondering about
> keymaps.
> 
> In particular, I'm working with the HTC Herald, which uses an Alt key
> to access things like numbers and symbols on a physical keyboard.  In
> Linux, the keymappings are wrong for this -- Alt does something
> different and doesn't allow access to those extra characters.
> 
> In Linwizard, we've modified the defkeymap and added makefile rules to
> compile our modified defkeymap when a specific board was selected, but
> this isn't portable when building a kernel for many boards at once,
> each having a different mapping.
> 
> So, my question is, what is the best way to go about changing the
> defkeymap, or supplying a keymap that allows all the keys to function
> correctly, but doesn't require non-portable makefile hacks?

how about letting xmodmap handle that ? If you use alt key, then kernel
passes alt key. Userland can later remap that key to some other
function.

-- 
balbi



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

* Re: Modifying the kernel keymap
  2009-11-15 22:31 ` Felipe Balbi
@ 2009-11-15 22:42   ` Cory Maccarrone
  2009-11-16 20:54     ` Tony Lindgren
  0 siblings, 1 reply; 4+ messages in thread
From: Cory Maccarrone @ 2009-11-15 22:42 UTC (permalink / raw)
  To: me; +Cc: linux-omap

On Sun, Nov 15, 2009 at 2:31 PM, Felipe Balbi <me@felipebalbi.com> wrote:
> Hi,
>
> On Sun, 2009-11-15 at 12:06 -0800, Cory Maccarrone wrote:
>> All,
>>
>> I'm working with the Wing Linux and Linwizard projects in porting
>> various omap850-based devices to Linux, and was wondering about
>> keymaps.
>>
>> In particular, I'm working with the HTC Herald, which uses an Alt key
>> to access things like numbers and symbols on a physical keyboard.  In
>> Linux, the keymappings are wrong for this -- Alt does something
>> different and doesn't allow access to those extra characters.
>>
>> In Linwizard, we've modified the defkeymap and added makefile rules to
>> compile our modified defkeymap when a specific board was selected, but
>> this isn't portable when building a kernel for many boards at once,
>> each having a different mapping.
>>
>> So, my question is, what is the best way to go about changing the
>> defkeymap, or supplying a keymap that allows all the keys to function
>> correctly, but doesn't require non-portable makefile hacks?
>
> how about letting xmodmap handle that ? If you use alt key, then kernel
> passes alt key. Userland can later remap that key to some other
> function.
>
> --
> balbi
>
>
>

For X-based interfaces that would work, and there's an equivalent for
Android too.  My question is more geared towards the console (i.e. no
X or Android, just plain linux console).

- Cory
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: Modifying the kernel keymap
  2009-11-15 22:42   ` Cory Maccarrone
@ 2009-11-16 20:54     ` Tony Lindgren
  0 siblings, 0 replies; 4+ messages in thread
From: Tony Lindgren @ 2009-11-16 20:54 UTC (permalink / raw)
  To: Cory Maccarrone; +Cc: me, linux-omap

* Cory Maccarrone <darkstar6262@gmail.com> [091115 14:49]:
> On Sun, Nov 15, 2009 at 2:31 PM, Felipe Balbi <me@felipebalbi.com> wrote:
> > Hi,
> >
> > On Sun, 2009-11-15 at 12:06 -0800, Cory Maccarrone wrote:
> >> All,
> >>
> >> I'm working with the Wing Linux and Linwizard projects in porting
> >> various omap850-based devices to Linux, and was wondering about
> >> keymaps.
> >>
> >> In particular, I'm working with the HTC Herald, which uses an Alt key
> >> to access things like numbers and symbols on a physical keyboard.  In
> >> Linux, the keymappings are wrong for this -- Alt does something
> >> different and doesn't allow access to those extra characters.
> >>
> >> In Linwizard, we've modified the defkeymap and added makefile rules to
> >> compile our modified defkeymap when a specific board was selected, but
> >> this isn't portable when building a kernel for many boards at once,
> >> each having a different mapping.
> >>
> >> So, my question is, what is the best way to go about changing the
> >> defkeymap, or supplying a keymap that allows all the keys to function
> >> correctly, but doesn't require non-portable makefile hacks?
> >
> > how about letting xmodmap handle that ? If you use alt key, then kernel
> > passes alt key. Userland can later remap that key to some other
> > function.
> >
> > --
> > balbi
> >
> >
> >
> 
> For X-based interfaces that would work, and there's an equivalent for
> Android too.  My question is more geared towards the console (i.e. no
> X or Android, just plain linux console).

Maybe post the patch for reference to linux-input list? Please Cc this
list too, it will be interesting to see what Dmitry suggests.

IMHO, we should find a way to support various keyboards with platform_data
specified keymaps in order to use the shell with standard distros.

Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2009-11-16 20:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-15 20:06 Modifying the kernel keymap Cory Maccarrone
2009-11-15 22:31 ` Felipe Balbi
2009-11-15 22:42   ` Cory Maccarrone
2009-11-16 20:54     ` Tony Lindgren

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