web-dev-qa-db-fra.com

Comment obtenir ma clé Fn pour travailler sur un Thinkpad T430?

J'ai installé 16.04 sur un ordinateur portable t430s. La touche FN ne fonctionne pas, ce qui signifie qu'aucune des combinaisons de touches FN ne fonctionne. (par exemple, FN+F8 devrait réduire la luminosité de l'écran.

lancer xev dans le terminal montre que rien n’est enregistré lorsque j’appuie sur FN. FN keycombo n'enregistre que la touche F normale (par exemple, FN + F8 montre le même événement de clé dans xev que F8.

dmesg | grep thin renvoie ceci:

[   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

Lorsque je m'aventure vers /sys/devices/platform/thinkpad_acpi et que je fais un ls -l hotkey_* | cut -d' ' -f9, je récupère 9 fichiers:

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

Qui ont ces valeurs (cat hotkey*)

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

Donc, fondamentalement, je ne sais pas comment faire fonctionner les clés FN. Toute aide très appréciée

2
Andreas

Il semble que mon problème soit dû à une clé FN défectueuse/morte. Un problème de matériel qui est.

Ma 'solution': Permuter ctrl et FN via l'option de bios correspondante. Ensuite, j'étais sans touche ctrl gauche. Alors j'ai échangé ctrl gauche avec majuscule.

le xmapmod pour cela est disponible via Google, mais pour des raisons de postérité, le processus est le suivant:

Commencez par sauvegarder votre xmodmap actuel: xmodmap -pke > Xmodmap_orig. Le créer une copie du xmodmap existant: xmodmap -pke > .Xmodmap. Maintenant, éditez ce fichier: vim .Xmodmap et collez ce qui suit au bas du fichier

! 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 

Enregistrez et sourcez le xmodmap modifié: xmodmap .Xmodmap

si vous êtes nouveau dans vim, choisissez peut-être nano à la place.

0
Andreas