mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andries Brouwer <aebr@win.tue.nl>
To: "Dan Van Derveer" <dan@cyberkni.net>
Cc: <linux-kernel@vger.kernel.org>
Subject: Re: PROBLEM: Logitech Wireless Elite Keyboard
Date: Fri, 19 Sep 2003 15:49:25 +0200	[thread overview]
Message-ID: <20030919134925.GA19445@win.tue.nl> (raw)
In-Reply-To: <001a01c37eae$da29d610$0203a8c0@dandesktop>

On Fri, Sep 19, 2003 at 09:06:33AM -0400, Dan Van Derveer wrote:

> The keyboard produces unknown scancodes and escape sequences at
> (seemingly)random intervals. I receive this message when I am at the
> console:
> keyboard: unknown e1 escape sequence
> keyboard: unknown e1 escape sequence
> keyboard: unrecognized scancode (65) - ignored
> 
> This issue also manifests itself in Xfree86 as a q character.
> 
> Where should I start to begin to fix this?

First: always give the kernel version.

Second: if the keyboard produces some garbage every now and then
but otherwise functions well, just ignore. It the printk is
annoying, then look at the C code that produces the message
and comment it out. (For example, that code might live in
drivers/char/keyboard.c in the routine handle_scancode() -
details depend on your kernel version, grep for "keyboard: unknown e1".
In many kernel versions the printout is conditional on
#ifdef KBD_REPORT_UNKN, so you may silence the kernel by changing
#define KBD_REPORT_UNKN into #undef KBD_REPORT_UNKN.)

Third: if it is not garbage but some key or button that produces
a meaningful code that the kernel does not understand, report
what key or button you use and what code it produces.
You may check using the command "showkey -s".
If you do not know how to reproduce the problem you might add
a little bit more detail to the kernel message, for example
	printk(KERN_INFO "keyboard: unknown e1 escape sequence 0x%02x 0x%02x\n",
		prev_scancode, scancode);

Fourth: if a known key produces a scancode to which no keycode is attached,
use the setkeycodes utility to assign a keycode. Then use loadkeys to attach
some function to that keycode.

Andries



      reply	other threads:[~2003-09-19 13:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-19 13:06 Dan Van Derveer
2003-09-19 13:49 ` Andries Brouwer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030919134925.GA19445@win.tue.nl \
    --to=aebr@win.tue.nl \
    --cc=dan@cyberkni.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®