[lkml]   [2003]   [Aug]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Input issues - key down with no key up
On Friday August 15, wrote:
> On Fri, Aug 15, 2003 at 03:52:48PM +0200, Andries Brouwer wrote:
> > On Fri, Aug 15, 2003 at 10:46:07PM +1000, Neil Brown wrote:
> >
> > > It seems to work (though some of the keys actually generate 'down'
> > > events for both the down and up transitions, so it seems that the key
> > > is pressed twice.
> >
> > Maybe it really is as you say. But your description sounds fishy.
> > It would be nice to know what really happens.
> > (And it would be nice to know which scancodes are involved.)
> Indeed. Neil, please enable DEBUG in i8042.c ... both with and without the
> i8042_direct=1 and atkbd_set=3 options from my previous e-mail.
> And for Andries, if you can, do the showkey -s test on 2.4, too ...


There are 5 keys in question. Each one is fn + something else.
Some of them (wireless, brighter, darker) cause the bios to do
something, and only generate a keyboard event on a down transition.
The others (battery, cdeject) don't appear to cause the bios to do
anything, and generate a keyboard event on both the up and down
transition, and it is always the same scancode.

Key Meaning 2.6 scancode 2.4 (direct) scancode
fn-F2 wireless 0x13d e0 08
fn-F3 battery 0x136 e0 07
fn-F10 cdeject 0x13e e0 09
fn-down darker 0x125 e0 05
fn-up brighter 0x12e e0 06

The "2.6 scancode" is the scancode reported in the

atkbd.c: Unknown key (set 2, scancode ...)

message, and it is always a "pressed" message. It is also the
scancode I use in the EVIOCSKEYCODE ioctl to associate a keycode with
the key.

The "2.4 (direct) scancode" is what I get back from "showkey -s".

When I set i8042_direct=1, the keyboard doesn't work sensibly at all.
Many keys cause "Unknown key" messages, other cause unrelated
characters to start autorepeating.
The 5 keys in question generate scancodes reported as 0x100 plus the
second number in the "2.4 (direct) scancode" column.

Setting atkbd_set=3 doesn't appear to affect things at all. It is
still reported as an "AT Set 2 keyboard".

When I enable debug in i8042.c, I get lots of messages about bytes to
and from the i8042. There are no surprises in the bytes relating to
keystrokes. They are exactly what is in the "2.4 (direct) scancode"
I can send you the i8042 initialisation conversations if they will

For my purposes, I need to use an "ioctl" to set a keycode for each
scancode, so adding an ioctl to set the no-keyup status is no hassle
for me. However the suggest approach of auto-detecting keys which
have no up event would probably a good idea.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:47    [W:0.112 / U:0.764 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site