doc:appunti:linux:sa:touchpad_disable
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
doc:appunti:linux:sa:touchpad_disable [2021/05/12 10:10] – created niccolo | doc:appunti:linux:sa:touchpad_disable [2021/05/12 18:16] – [Mapping Fn+ESC on the Teclast F6] niccolo | ||
---|---|---|---|
Line 41: | Line 41: | ||
Replace the **zero** with **1** to re-enable it. | Replace the **zero** with **1** to re-enable it. | ||
+ | |||
+ | ===== Mapping Fn+ESC on the Teclast F6 ===== | ||
+ | |||
+ | The ESC key on the **Teclast F6 notebook** has the blue label indicating that the shortcut **Fn+ESC** should trigger the **touchpad toggle** function, but it does not work in GNU/Linux. | ||
+ | |||
+ | Using the **evtest** tool we can see that the Fn+ESC keys produces three events, i.e. it is the same as pressing three keys together: | ||
+ | |||
+ | < | ||
+ | Event: time 1620808296.082667, | ||
+ | Event: time 1620808298.469045, | ||
+ | Event: time 1620808298.469045, | ||
+ | Event: time 1620808298.469045, | ||
+ | Event: time 1620808298.471997, | ||
+ | Event: time 1620808298.471997, | ||
+ | Event: time 1620808298.471997, | ||
+ | Event: time 1620808298.473572, | ||
+ | Event: time 1620808298.473572, | ||
+ | </ | ||
+ | |||
+ | The keys are **Left Control**, **Left Meta** and the key used to toggle from Zenkaku (full-width) to Hankaku (half-width) Japanese character spacing :-O | ||
+ | |||
+ | Using **udev** I remapped the '' | ||
+ | |||
+ | < | ||
+ | evdev: | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | Finally, using the XFCE **Settings** => **Keyboard**, | ||
+ | |||
+ | <code bash> | ||
+ | #!/bin/sh | ||
+ | STATE=" | ||
+ | set_on() { | ||
+ | xinput set-prop 11 154 1 | ||
+ | echo " | ||
+ | } | ||
+ | set_off() { | ||
+ | xinput set-prop 11 154 0 | ||
+ | echo " | ||
+ | } | ||
+ | case " | ||
+ | on|yes|1) | ||
+ | set_on | ||
+ | ;; | ||
+ | off|no|0) | ||
+ | set_off | ||
+ | ;; | ||
+ | *) | ||
+ | if [ " | ||
+ | set_off | ||
+ | else | ||
+ | set_on | ||
+ | fi | ||
+ | ;; | ||
+ | esac | ||
+ | </ | ||
+ | |||
+ | ===== Web References ===== | ||
+ | |||
+ | * **[[https:// | ||
+ | |||
+ |
doc/appunti/linux/sa/touchpad_disable.txt · Last modified: 2021/05/13 09:42 by niccolo