All of lore.kernel.org
 help / color / mirror / Atom feed
* Annoying keys on AT keyboards
@ 2007-05-29 22:21 Bastien Nocera
  2007-05-30  3:29 ` Dmitry Torokhov
  0 siblings, 1 reply; 2+ messages in thread
From: Bastien Nocera @ 2007-05-29 22:21 UTC (permalink / raw)
  To: linux-input

Heya,

My Dell laptop has a good bunch of keys that show this behaviour:
Apr 25 11:23:10 snoogens kernel: atkbd.c: Unknown key pressed
(translated set 2,
code 0x87 on isa0060/serio0).
Apr 25 11:23:10 snoogens kernel: atkbd.c: Use 'setkeycodes e007 <keycode>' to
make it known.

Given that all Dell laptops generate this kind of behaviour, that all
the keys match on all the models (I know about), would it be
possible/sane to add some code to the AT keyboard driver to handle those
keys when the DMI matches?

I can think of a number of reasons why it would be a bad idea:
- overly complicated driver that handles a lot of "broken" hardware
cases
- slippery-slope (next it's for IBM/Sony/whatever laptops/keyboards,
etc.)

But I'd rather have this done completely in kernel space, where it
belongs (after all, that's the point of drivers to handle hardware
through common interfaces).

Any comments, ideas on how to do this as cleanly and unobtrusively?

Cheers

-- 
Bastien Nocera <hadess@hadess.net> 

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

* Re: Annoying keys on AT keyboards
  2007-05-29 22:21 Annoying keys on AT keyboards Bastien Nocera
@ 2007-05-30  3:29 ` Dmitry Torokhov
  0 siblings, 0 replies; 2+ messages in thread
From: Dmitry Torokhov @ 2007-05-30  3:29 UTC (permalink / raw)
  To: linux-input; +Cc: Bastien Nocera

Hi,

On Tuesday 29 May 2007 18:21, Bastien Nocera wrote:
> Heya,
> 
> My Dell laptop has a good bunch of keys that show this behaviour:
> Apr 25 11:23:10 snoogens kernel: atkbd.c: Unknown key pressed
> (translated set 2,
> code 0x87 on isa0060/serio0).
> Apr 25 11:23:10 snoogens kernel: atkbd.c: Use 'setkeycodes e007 <keycode>' to
> make it known.
> 
> Given that all Dell laptops generate this kind of behaviour, that all
> the keys match on all the models (I know about),

Hmm, mine does not generate e007...

> would it be 
> possible/sane to add some code to the AT keyboard driver to handle those
> keys when the DMI matches?

No, because it is not guaranteed that user will not plug external AT
keyboard with different keys assigned to the same keycodes. For drivers
like atkbd that may drive several devices at once DMI solution will
not work reliably (but it will work and is used for fixed hardware,
such as wistron_btns).

I just put:

setkeycodes e001 171
setkeycodes e002 172
setkeycodes e003 187
setkeycodes e004 189

in my rc.local several years ago and that is it. Distributions may do
that for users automatically during installation.

-- 
Dmitry

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

end of thread, other threads:[~2007-05-30  3:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-29 22:21 Annoying keys on AT keyboards Bastien Nocera
2007-05-30  3:29 ` Dmitry Torokhov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.