Disabling a specific key
jd1008
jd1008 at gmail.com
Thu Dec 18 23:50:46 UTC 2014
On 12/18/2014 02:34 PM, Rolf Turner wrote:
> On 19/12/14 08:27, jd1008 wrote:
>>
>> On 12/18/2014 12:12 PM, Beartooth wrote:
>>> On Thu, 18 Dec 2014 16:31:49 +0000, Patrick O'Callaghan wrote:
>>> [....]
>>>> I'm sure I would still hit it occasionally. The problem is that I
>>>> often
>>>> don't notice until I've overwritten a bunch of characters, so I prefer
>>>> to put it beyond use.
>>>>
>>>>
>>>>
>> To the original OP:
>> This is what I do in order to disable a key:
>> sudo /bin/loadkeys << 'EOF'
>> keycode TheKeyCodeInQuestion = NoSymbol
>> EOF
>>
>> If you do not know the KeyCode, run the program:
>> showkey
>>
>> and press the key in question
>> and it's code will be displayed.
>> You must wait 10 seconds of idle
>> and showkey program will exit;
>> then run the sudo script above.
>>
>
> This looks very useful to me .... but as usual I fall at the first
> hurdle. When I type showkey or "showkey -k" I get:
>
>> Couldn't get a file descriptor referring to the console
>
> And that's it. Anything I can do about this? (Please note: I am
> running Fedora 17 --- yes, I know --- and using a Mate desktop; Mate
> 1.6.1 .)
>
> Thanks for any advice.
>
> cheers,
>
> Rolf Turner
>
Did you use
sudo ???
Try first to su to root and then
/bin/loadkeys << 'EOF'
keycode TheKeyCodeInQuestion = NoSymbol
EOF
More information about the users
mailing list