LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-10-2006, 01:15 PM   #1
frem
LQ Newbie
 
Registered: Feb 2005
Posts: 3

Rep: Reputation: 0
Unhappy [WORK-AROUND] If 2 keys are held down, no input from 3rd key


Hello. Debian sarge here, running on a Compaq Prosignia laptop. (pp2050)
kernel is 2.6.8-2-686

I have this funny problem with gaming. I like to play Super Mario (Yes, I own the Super Mario AllStars + World cartrage. It's legal.), but there are problems with input.In every single emulator I've tried (ZSNES, snes9x, fceu) if two keys are being held down (for example "right" and "a"), a no input from a third key can get though.In practical terms, this means that if I'm holding down the "dash" key in game, I can't jump unless I either release the dash key or the directional key. This is very akwrd. Similerly, I cannot move left or right if I jump while holding the dash key.
This only happens on THIS laptop, not any of my other machines, even though I have a Gateway Solo 2500 running nearly exactly the same software.
I've tried different emulators, different images, remapped keys, and different window managers. I'm starting to suspect that this is either a problem with my keyboard's buffer or a problem with XFree86.

Does anyone have any ideas?

Last edited by frem; 01-10-2006 at 02:25 PM.
 
Old 01-10-2006, 01:31 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
I suspect that the problem lies in the way the PC keyboard works. Most keys, such as the alphabetic characters, arrow keys, function keys, et. al. are a complete character. When you press two complete character keys together the keyboard i/o system won't read both simultaneously. It is impossible due to the keyboard wiring.

Other keyboard keys will flip a bit in the keyboard i/o buffer but don't tell the operating system that there is a complete character. These keys include the Alt, Shift, and Cntrl. Since these keys simply flip a bit in the buffer you can AND them with a complete character code to get a second complete code.

Long story => short. You could probably emulate the functions that you want by creating a keyboard binding. You still would not be able to press right arrow and "a" simultaneously to acheive a given effect. That is a limitation of how the keyboard is wired. You could create a substitute combination using one "complete" character key and one "bit flip" key.
 
Old 01-10-2006, 01:35 PM   #3
RedShirt
Senior Member
 
Registered: Oct 2005
Location: Denver
Distribution: Sabayon 3.5Loop2
Posts: 1,150

Rep: Reputation: 45
I recall having heard of issues like this before... The issue is called ghosting, and the way many keys are mapped(hardware wise in the keyboard) but you made me do a little searching around to see I think it is something the keyboard is stuck with. I am not sure about software side ghost allowment, but I woudl think short of using a key mapper to map 3 key presses to another key, you may be out of luck. Try searching around for ghosting though, maybe you can find something.
 
Old 01-10-2006, 02:24 PM   #4
frem
LQ Newbie
 
Registered: Feb 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Hey, thanks for your answers.
Dang, I was hoping it was a software thing and not a limitation of my keyboard. I'll test this out in Windows too, just to make sure.

I was thinking about how stress_junkie said that ctrl, alt and shift don't send a complete character code, so I remapped my three main control buttons (A, B, and X) using them. Not what quite I'm used to, (Ctrl + right + alt vs. Z + right + X) but they work! Thanks. :-)
 
  


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
SSH public/private key authentication with GnuPG keys? thinksincode Linux - Security 1 02-25-2005 03:33 PM
Keyboard Problem - I have to press a key twice for certain keys daedius Linux - Hardware 4 01-13-2005 07:32 AM
fluxbox key bindings without meta keys brassfish Linux - General 2 05-04-2004 01:32 AM
Emacs 8-bit input as meta key cilantro Linux - Software 5 12-12-2003 12:21 AM
Repeating key actions when keys are held down? carlos123 Linux - Newbie 0 01-29-2003 07:36 AM


All times are GMT -5. The time now is 04:09 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration