LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-14-2009, 11:21 AM   #1
silencestone
Member
 
Registered: Mar 2006
Location: USA
Distribution: [Current: Ubuntu, openSUSE, Arch] | {Past: Vector, Deli, Mint, Wolvix, OpenSUSE, Slackware, Puppy}
Posts: 71

Rep: Reputation: 15
Question How to disable a faulty key on keyboard, for CLI and GUI


The 'H' key on my laptop keeps sending a nigh-constant stream of keypresses without being touched. It slows down boot-ups, interferes with log-ins, and messes up any program that allows text entry. I've found a way to disable keypresses in X:

xmodmap -e 'keycode 43='

However, this doesn't last through a reboot, help boot-up or pre-login difficulties, or work on the console. How else can I disable a key?
 
Old 08-15-2009, 03:59 AM   #2
ThinkFree
Member
 
Registered: Jan 2009
Location: India
Distribution: Fedora, Arch, OpenSolaris
Posts: 112

Rep: Reputation: 20
See if putting the command you mentioned in /etc/bashrc file.
 
Old 08-15-2009, 04:46 AM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
There is a thing called xmodmap, which allows you to add local programming to your keyboard layout. But there are 2 issues. You may have an .Xmodmap file in xinit/

1. Every geypress (real or imagined) triggers an interrupt in the box. If you slow your typematic rate to near zero, the repeats are slower, but still cost significant processing.

2. Programs may want your specific key as input, and the issue there can not always be got around by tweaking. This is rarer but occurs.
 
Old 08-15-2009, 07:02 AM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
External keyboard is the way to go. Here's the little beauty I use, same dimensions and layout as a laptop keyboard, small and light enough to carry around and great to type on. I have no association with Cherry Corporation except using and liking their products for over 10 years.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Multimedia Keyboard and How to Disable KDE's Default Key Bindings rrrssssss Linux - Software 2 05-25-2009 09:38 AM
Best way to disable compiz from Ubuntu cli suguru Linux - Software 1 06-06-2007 02:25 PM
boot CLI vs GUI weazy Linux - Software 2 08-04-2006 09:15 PM
CLI and GUI Question desmondlewissmith Linux - Software 1 01-20-2006 03:46 PM
changing gui from cli twistedrhymes Linux - Newbie 3 06-14-2005 02:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration