Re: Disabling a specific key

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 19/12/14 11:55, Marko Vojinovic wrote:
On Fri, 19 Dec 2014 10:34:54 +1300
Rolf Turner <r.turner@xxxxxxxxxxxxxx> wrote:
On 19/12/14 08:27, jd1008 wrote:

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 .)

You need to run showkey in a proper virtual terminal, aka ctrl-alt-f3
or such. It was not designed to work under X.

HTH, :-)

Did not help, I'm afraid. I did ctrl-alt-f3 and *absolutely nothing* happened.

I (repeatedly) tried using "xev" as was proposed by someone else, to discern the keycode for the key I wished to disable. The output was prolific and profuse and incomprehensible. However after trying *one more time* and scrolling back through the plethora of output I managed to guess that the keycode I needed was "67".

So I did:

xmodmap -e "keycode 67 = NoSymbol"

That was accepted without throwing an error, and blow-me-down, the key in question seemed to be disabled. Success? No, not quite.

I then restarted the system to see if the effect would persist.  It didn't!

It would appear that I have to issue the "xmodmap" command every time that I reboot. Not a *big* deal, but annoying. Is there a way to make
the effect persist?

I tried put the line

keycode 67 = NoSymbol

into the file /etc/X11/Xmodmap, but that seemed to have no effect.

Any other ideas?  Ta.

cheers,

Rolf Turner

--
Rolf Turner
Technical Editor ANZJS
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux