When I run either xev
or showkey
I'm able to get keycodes for Fn+F6.
Example
When I use showkey -k
I get the following on a Thinkpad T410 laptop.
$ sudo showkey -k
kb mode was ?UNKNOWN?
[ if you are trying this under X, it might not work
since the X server is also reading /dev/console ]
press any key (program terminates 10s after last keypress)...
keycode 28 release
keycode 143 press <--- Fn press + release
keycode 143 release
^[[17~keycode 64 press <--- F6 press + release
keycode 64 release
keycode 212 press <--- Fn + F6 press + release
keycode 212 release
keycode 29 press <--- Ctrl + C press + release
^Ccaught signal 2, cleaning up...
Perhaps it's not supported?
I found this Arch Linux wiki articled titled: Lenovo Ideapad Yoga 2 Pro, which would seem to be showing that this key isn't directly being mapped. Will continue digging but thought I'd add this info here as well.
excerpt
Keyboard special keys
BIOS has a setting to flip the behavior of the FN key.
fn+F1 XF86AudioMute
fn+F2 XF86AudioLowerVolume
fn+F3 XF86AudioRaiseVolume
fn+F4 Alt_L+<F4>
fn+F5 <F5>
fn+F6 n/a
fn+F7 n/a
fn+F8 Alt_L+Tab
fn+F9 n/a?
fn+F10 super_L+p
fn+F11 XF86MonBrightnessDown
fn+F12 XF86MonBrightnessUp
Use the modified ideapad_laptop module?
I found this page titled: Lenovo IdeaPad Yoga 2 Pro on the LinLap Wiki. The article discusses a patched version of the ideapad_laptop
module which may resolve your issues with certain keys not working.
excerpt
Blacklist ideapad_laptop
to get it to work, by adding blacklist ideapad_laptop to /etc/modprobe.d/blacklist.conf
. The patched ideapad_laptop
module available from https://github.com/pfps/yoga-laptop in the yoga_laptop directory makes wireless work correctly and also handles the Airplane Mode key.
The README
for this patched module also had this to say about the F6
key:
Disable Touchpad (F6) produces scan codes that are not recognized. This can
be fixed manually by sudo setkeycodes e03f 191
and then setting
XF86TouchPadToggle
to trigger a script to toggle the state of the touchpad.
Pause and Break produce the same character. This can be fixed by
sudo setkeycodes e046 194; xmodmap -e "keycode 202 = Break"
. A better way to do this is via udev rules - see the yoga_laptop/README for more information.
References
sudo showkey -k
? – slm Apr 18 '14 at 23:47