如何使 Fn 键在 Thinkpad T430s 上发挥作用?

如何使 Fn 键在 Thinkpad T430s 上发挥作用?

我在 t430s 笔记本电脑上安装了 16.04。FN 键不起作用,这意味着所有FN组合键都不起作用。(例如,FN+F8应该降低屏幕亮度。

xev在终端中运行显示,当我按下时没有任何内容注册FNFN按键组合仅注册正常的 Fkey (例如FN+F8显示与 xev 中相同的按键事件F8

dmesg | grep thin返回此:

[   15.600090] thinkpad_acpi: ThinkPad ACPI Extras v0.25
[   15.600093] thinkpad_acpi: http://ibm-acpi.sf.net/
[   15.600094] thinkpad_acpi: ThinkPad BIOS G7ET60WW (2.02 ), EC unknown
[   15.600096] thinkpad_acpi: Lenovo ThinkPad T430s, model 2356LNG
[   15.608778] thinkpad_acpi: detected a 16-level brightness capable ThinkPad
[   15.608878] thinkpad_acpi: radio switch found; radios are enabled
[   15.608895] thinkpad_acpi: This ThinkPad has standard ACPI backlight brightness control, supported by the ACPI video driver
[   15.608896] thinkpad_acpi: Disabling thinkpad-acpi brightness events by default...
[   15.610449] thinkpad_acpi: rfkill switch tpacpi_bluetooth_sw: radio is blocked
[   15.611064] thinkpad_acpi: rfkill switch tpacpi_wwan_sw: radio is unblocked
[   15.614049] thinkpad_acpi: Standard ACPI backlight interface available, not loading [   15.600090] thinkpad_acpi: ThinkPad ACPI Extras v0.25
[   15.600093] thinkpad_acpi: http://ibm-acpi.sf.net/
[   15.600094] thinkpad_acpi: ThinkPad BIOS G7ET60WW (2.02 ), EC unknown
[   15.600096] thinkpad_acpi: Lenovo ThinkPad T430s, model 2356LNG
[   15.608778] thinkpad_acpi: detected a 16-level brightness capable ThinkPad
[   15.608878] thinkpad_acpi: radio switch found; radios are enabled
[   15.608895] thinkpad_acpi: This ThinkPad has standard ACPI backlight brightness control, supported by the ACPI video driver
[   15.608896] thinkpad_acpi: Disabling thinkpad-acpi brightness events by default...
[   15.610449] thinkpad_acpi: rfkill switch tpacpi_bluetooth_sw: radio is blocked
[   15.611064] thinkpad_acpi: rfkill switch tpacpi_wwan_sw: radio is unblocked
[   15.614049] thinkpad_acpi: Standard ACPI backlight interface available, not loading native one
[   15.623189] input: ThinkPad Extra Buttons as /devices/platform/thinkpad_acpi/input/input8
[ 4532.846826] thinkpad_acpi: deprecated sysfs attribute: access by process with PID 4434
[ 4532.846832] thinkpad_acpi: WARNING: sysfs attribute hotkey_enable is deprecated and will be removed. Hotkey reporting is always enabled
[ 4665.791698] thinkpad_acpi: deprecated sysfs attribute: access by process with PID 4491
[ 4665.791706] thinkpad_acpi: WARNING: sysfs attribute bluetooth_enable is deprecated and will be removed. Please switch to generic rfkill before year 2010native one
[   15.623189] input: ThinkPad Extra Buttons as /devices/platform/thinkpad_acpi/input/input8
[ 4532.846826] thinkpad_acpi: deprecated sysfs attribute: access by process with PID 4434
[ 4532.846832] thinkpad_acpi: WARNING: sysfs attribute hotkey_enable is deprecated and will be removed. Hotkey reporting is always enabled
[ 4665.791698] thinkpad_acpi: deprecated sysfs attribute: access by process with PID 4491
[ 4665.791706] thinkpad_acpi: WARNING: sysfs attribute bluetooth_enable is deprecated and will be removed. Please switch to generic rfkill before year 2010

当我冒险去做/sys/devices/platform/thinkpad_acpi并执行时ls -l hotkey_* | cut -d' ' -f9,我得到了 9 个文件:

hotkey_all_mask
hotkey_bios_enabled
hotkey_bios_mask
hotkey_enable
hotkey_mask
hotkey_poll_freq
hotkey_radio_sw
hotkey_recommended_mask
hotkey_source_mask

具有以下值(cat hotkey*

0x07fffffb
0
0x00000808
1
0x078c7ffb
10
1
0x078c7ffb
0x00000000

所以基本上 - 我不知道如何让 FN 键工作。任何帮助都非常感谢

答案1

看来我的问题一定是由于 FN 键故障/失效造成的。这是一个硬件问题。

我的“解决方案”:通过相关的 bios 选项交换 ctrl 和 FN。然后我没有左 ctrl 键。所以我用 caps lock 交换了左 ctrl。

这个的 xmapmod 可以通过 google 获得,但为了方便后人理解,这个过程如下:

首先备份您当前的 xmodmap:。然后xmodmap -pke > Xmodmap_orig创建现有 xmodmap 的副本:xmodmap -pke > .Xmodmap。现在编辑此文件:vim .Xmodmap并将以下内容粘贴到文件底部

! Switch caps lock and (left) control
remove Lock = Caps_Lock
remove Control = Control_L
keysym Control_L = Caps_Lock
keysym Caps_Lock = Control_L
add Lock = Caps_Lock
add Control = Control_L 

保存并获取修改后的 xmodmap:xmodmap .Xmodmap

附言:如果您是 vim 新手,那么也许可以选择nano

相关内容