Skip to contentSkip to conversation

NR_KEYS value

kbd Alexey Gladkov 2 participants 3 messages Jan 2, 2010 – Jan 5, 2010

lore
Share & tools
lore
#0 lore raw

Greetings!

I think that the value of the macro NR_KEYS in kernel much behind the times. Now there are many keyboards with a lot of keys (notebooks, media keyboard, etc).

include/linux/keyboard.h:#define NR_KEYS 256

First way is simple: increase NR_KEYS.
Second way is much more harder: create a sysctl value to define NR_KEYS.

I don't really understand how best to fix it.

Signature · 1 line
Rgrds, legion
#1 lore raw
Quoted 6 lines · On Saturday 02 January 2010 18:55:53 Alexey Gladkov wrote:

Greetings!

I think that the value of the macro NR_KEYS in kernel much behind the times. Now there are many keyboards with a lot of keys (notebooks, media keyboard, etc).

Quoted 6 lines

include/linux/keyboard.h:#define NR_KEYS 256

First way is simple: increase NR_KEYS.
Second way is much more harder: create a sysctl value to define NR_KEYS.

I don't really understand how best to fix it.

since it's a kernel issue, perhaps it'd be better to e-mail lkml about it ? -mike

#2 lore raw
Quoted 1 line · Mike Frysinger

since it's a kernel issue, perhaps it'd be better to e-mail lkml about it ?

First I would like to discuss it with you. :)

Signature · 1 line
Rgrds, legion