LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-10-2008, 09:39 AM   #1
ciden
Member
 
Registered: Dec 2006
Location: New Delhi, India
Distribution: PCLinuxOS 2010
Posts: 246
Blog Entries: 1

Rep: Reputation: 31
Unhappy How to make the system ignore certain keypresses?


I have a old laptop and it is dying.
The latest symptom is that its F9 and Insert keys have died.

The bigger problem however is that now the keyboard is sending strings of F9s or Inserts to Standard Input randomly by itself.

Is there a way to make the system ignore this input completely since i do not use either F9 or Insert. ?

Quote:
karthik@WOLFCORP:~$
karthik@WOLFCORP:~$
^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~^[[2~
-bash: ~: command not found
karthik@WOLFCORP:~$
karthik@WOLFCORP:~$
If this happens in a text window then the cursor starts blinking like mad as it switches between insert and normal mode.

So basically i want the system to ignore the F9 and Insert keypresses.

Please help....
 
Old 11-10-2008, 11:54 AM   #2
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,228

Rep: Reputation: 2345Reputation: 2345Reputation: 2345Reputation: 2345Reputation: 2345Reputation: 2345Reputation: 2345Reputation: 2345Reputation: 2345Reputation: 2345Reputation: 2345
I haven't tried this, but it's worth attempting (in your situation, anything's worth attempting!)

Find your keyboard driver: I think Debian will use (for US English)

/etc/X11/xkb/symbols/us

though on my distro it would be

/usr/share/X11/xkb/symbols/us

It will have lines like

key <TLDE> { [ grave, asciitilde ] };

Add

key <INS> { [ VoidSymbol, VoidSymbol ] };
key <FK09> { [ VoidSymbol, VoidSymbol ] };

If however you have lines like

key <49> { [ grave, asciitilde ] };

then find the scancodes for F09 and INS by running xev in a terminal, and use them to identify the keys.
 
Old 11-11-2008, 02:42 AM   #3
ciden
Member
 
Registered: Dec 2006
Location: New Delhi, India
Distribution: PCLinuxOS 2010
Posts: 246

Original Poster
Blog Entries: 1

Rep: Reputation: 31
Thank you so much. Using xev I found that the real problem is that the F9 key release event is being recognized as 'Insert'.
The Insert key itself is not to blame !!!

I will restart my laptop and let u know if your approach works.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Make ls ignore symlinks Creep Linux - Software 4 06-11-2020 08:36 PM
How to make cp ignore subdirectories? M4l3k Linux - Newbie 4 02-28-2011 12:48 PM
How do I make WIndows 98 *ignore* my linux partition? dantelives General 9 11-30-2007 05:44 AM
How can I get make to ignore a particular error? SheldonPlankton Linux - Software 1 08-05-2004 01:44 PM
how to make Linux ignore hardware? netmanw00t Linux - Hardware 3 07-11-2004 03:33 AM

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

All times are GMT -5. The time now is 08:26 PM.

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