Bug 27362 - ThinkPad Fn key types into the console
Summary: ThinkPad Fn key types into the console
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: Input Devices (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: drivers_input-devices
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-22 21:10 UTC by Ferenc Wágner
Modified: 2016-04-22 14:38 UTC (History)
4 users (show)

See Also:
Kernel Version: 3.2.7
Subsystem:
Regression: No
Bisected commit-id:


Attachments
i8042 debug output (9.97 KB, text/plain)
2011-02-01 12:40 UTC, Ferenc Wágner
Details

Description Ferenc Wágner 2011-01-22 21:10:33 UTC
If I start up (eg.) cat on the Linux console, each release of the special Fn key inserts ^@ (that is, an ASCII NUL) into the input stream. Fn is a modifier key, it shouldn't result in anything when pressed alone (apart from a wakeup from S3).

Showkey prints 0x00 0x81 0x8f 0x00 0x81 0x8f on release of the Fn key. Auto-repeat is also active for this key.

The machine is a ThinkPad R50e laptop.
Comment 1 Henrique de Moraes Holschuh 2011-01-23 00:35:13 UTC
The Fn key is active in a thinkpad.  If the kernel map assigns a keycode to it, it will work as any other key (well, as long as it is not pressed together with one of the ThinkPad ACPI hotkeys, that is).

But I do wonder if something is broken in either your userspace, or your kernel. It should not be dumping NULLs in the input stream.

Please inform us what kernel and userspace you're running, and please attach the kernel log.
Comment 2 Ferenc Wágner 2011-01-23 10:38:25 UTC
My kernel is vanilla 2.6.37, its config and dmesg is attached to #27372. The userspace is Debian squeeze, but the issue is present in the early initramfs phase, if I boot with break=top:

(initramfs) cat
^@

This early no modules are loaded, not even thinkpad_acpi, but the issue is present in the fully booted system as well.
Comment 3 Ferenc Wágner 2011-01-23 10:43:00 UTC
Autolinkification actually works differently than I thought, let me try again...

So kernel config is in attachment 44802 [details], and dmesg in attachment 44832 [details] (both belonging to bug 27372).
Comment 4 Dmitry Torokhov 2011-02-01 01:22:21 UTC
Could you please do:

echo 1 > /sys/module/i8042/parameters/debug
<wait 5-10 sec>
Press Fn
Release Fn
<wait 5-10 sec>
echo 0 > /sys/module/i8042/parameters/debug

and post dmesg (lines mentioning i8042) please?
Comment 5 Ferenc Wágner 2011-02-01 12:40:09 UTC
Created attachment 45752 [details]
i8042 debug output

i8042 debug output as requested in comment 4.
Comment 6 Ferenc Wágner 2011-02-24 13:50:05 UTC
Tested with 2.6.38-rc6, the issue is still present.
Comment 7 Pierre Ossman 2012-03-04 09:35:59 UTC
Also seen on a Thinkpad T420s with 3.2.7.
Comment 8 Ferenc Wágner 2016-04-22 14:38:18 UTC
Issue still present under 4.5.

Note You need to log in before you can comment on or make changes to this bug.