LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Deactivating F7/function keys in Xubuntu on Acer Aspire One (https://www.linuxquestions.org/questions/linux-general-1/deactivating-f7-function-keys-in-xubuntu-on-acer-aspire-one-778007/)

drTronic 12-25-2009 04:38 AM

Deactivating F7/function keys in Xubuntu on Acer Aspire One
 
I have a malfunctioning (stuck on) F7 key. It is driving me NUTS :banghead:

Is there any way to disable my functions keys/F7..?
If possible I want to avoid dismantling my machine :)

drT

drTronic 12-25-2009 02:33 PM

Hows about reassigning F7?
 
If deactivation is not possible (as the silence might suggest), is it possible to re-assign F7?
I found another forum where people are doing so in Windoze.. http://www.autohotkey.com/forum/topic298.html

Any suggestions welcome :)
drT

kellemes 12-26-2009 03:11 AM

First find the keycode of the F7-key..
From terminalwindow..
Code:

xev
You'll see a white box on your screen, have it stay in focus and press the F7-key.. in the terminalwindow you'll see the corresponding keycode (73 in my case)

Now to disable the key enter..
Code:

xmodmap -e 'keycode 73='
To make this permanent you simply have this command execute at startup.
Using XFCE from Arch myself I can enter it from the settings-dialog..
Session and Startup -> Application Autostart -> Add etc..

Good luck.

drTronic 12-26-2009 04:00 AM

A thousand thankyous to you kellemes.

Event Tester showed me that my F7 button does nothing when [U]I[U] press it, but what I could see from the Terminal window was that it was repeatedly activating itself (??) and, like you, my keycode is 73.

Interestingly, Fn+F7, which is a HotKey to toggle my touchpad on/off DOES work and from that I am also able to see that the keycode is 73.

I entered your piece of code and my F7 key is now silent :hattip:

You may or may not be interested to hear that Fn+F7 still toggles my touchpad on/off..
Does this give any clue as to what the problem is?

Next step is to make it permanent.. I will post news of that next and hopefully this can become a useful thread for others.

Sincere thanks,
drTronic

DavidMcCann 12-26-2009 12:51 PM

Quote:

Originally Posted by drTronic (Post 3805020)
You may or may not be interested to hear that Fn+F7 still toggles my touchpad on/off..
Does this give any clue as to what the problem is?

I'm afraid not. Normally, when you press a pair of keys (say Ctrl S) both scancodes are sent to the computer and it works out what it's supposed to do with them. The Fn key on compact keyboards is quite different, however. The keyboard itself intercepts it and sends a special scancode to represent the combination of Fn and the other key.


All times are GMT -5. The time now is 11:33 PM.