4
1
I am using a laptop with Ubuntu 12.04 and I want to send a Fn+F8 from a script in order to disable my touchpad.
When i type the command xdotool key fn
, it prints
(symbol) No such key name 'fn'. Ignoring it.
(symbol) No such key name 'fn'. Ignoring it.
How can I send the Fn key?
----------------------------update June 13 ----------------------------------
So the Fn key can't be sent via program language? By looking at /usr/include/linux/input.h
line 614 , I see:
#define KEY_FN 0x1d0
it also don't work by sending signal? Or it isn't the Fn key code?
----------------------------update June 26 ----------------------------------
in rencently, I did some test about Fn+F8 using C . I cat /dev/input/event3
and can see the Fn+F8 code is 240
which is
#define KEY_UNKNOWN 240
and some other code. I'm feeling blue. Maybe the touchpad is handled directly by the hardware as user49740 had said.
but the command can disable touchpad by os
xinput set-prop 'ETPS/2 Elantech Touchpad' 'Device Enabled' 0
however it can't change the touchpad light status. And the Fn+F8 can't enable or disable the touchpad .
Then, How come that Fn-F8 doesn't work with Linux, on my laptop ? – Camion – 2018-05-12T18:50:26.900
so, the Fn key don't work using program language? only by hardware ? But I see C++ source code at line 614 in /linux/input.h . #define KEY_FN 0x1d0 it also don't work by sending signal? Or it isn't the Fn key code? – Cyd – 2012-06-13T12:13:11.117