From: Eric.Brunet@lps.ens.fr
To: linux-input@vger.kernel.org, dmitry.torokhov@gmail.com
Subject: Bug with keyboard input
Date: Thu, 15 May 2008 14:02:25 +0200 [thread overview]
Message-ID: <20080515120225.GA20070@platane.lps.ens.fr> (raw)
Hi list,
The following bug is on uptodate Fedora 7 on a Dell D430 laptop. It
happens both with the Fedora kernel-2.6.23.15-80.fc7 and with a vanilla
2.6.25.
In short, if I do
echo -n "i8042" > /sys/bus/platform/drivers/i8042/unbind
followed by
echo -n "i8042" > /sys/bus/platform/drivers/i8042/bind
everything works fine, EXCEPT if I hit a key on the keyboard between the
unbind and the bind (tested with leftcontrol and spacebar). If I did hit a
key, it looks like the keyboard isn't taking release events anymore and
the next key I hit is forever repeated. When my keyboard is in its working
state, I read
N: Name="AT Translated Set 2 keyboard"
in /proc/bus/input/devices. When it is in its non-working state (I hit a
key between unbind and bind), I read
N: Name="AT Raw Set 2 keyboard"
in the same file, and each time I hit a key, I have messages such as
atkbd.c: Unknown key pressed (raw set 2, code 0x11f on isa0060/serio0).
atkbd.c: Use 'setkeycodes 1f <keycode>' to make it known.
atkbd.c: Unknown key pressed (raw set 2, code 0x11e on isa0060/serio0).
atkbd.c: Use 'setkeycodes 1e <keycode>' to make it known.
in my logs.
Note that the key doesn't have to be pressed while the bind happens, it
is sufficient that the key have been pressed and released before the
bind.
So, is there a way to make it work and have the input layer automatically
recognize the correct keyboard type or keyboard mode ? If not, is there a
way to keep it from guessing and to force it to treat the keyboard as an
"AT Translated Set 2 keyboard" ?
As a final note, I get hit by this bug quite often during suspend/resume
cycles. I had found that the keyboard wasn't all the time properly waking up,
(it was getting stuck) so I've added a file in /etc/pm/sleep.d to do the
unbind at suspend time and the bind at resume time. This fixed my
problem, except that at times I stupidly press a key in the hope that the
resume is done and that the screen is black only because of the
screensaver, and that hitting a key will make appear the unlocking
window...
Thanks,
Éric Brunet
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
reply other threads:[~2008-05-15 12:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20080515120225.GA20070@platane.lps.ens.fr \
--to=eric.brunet@lps.ens.fr \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-input@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;
as well as URLs for NNTP newsgroup(s).