Author Topic: Software solution for double registered keys?  (Read 4476 times)

0 Members and 1 Guest are viewing this topic.

Offline Aardwolf

  • Thread Starter
  • Posts: 43
Software solution for double registered keys?
« on: Sun, 16 December 2012, 08:58:49 »
Hello,

Sometimes a key I press on my mechanical keyboard (Filco) gets registered twice. So that if I type for example "the", it becomes "thee" instead.

This has nothing to do with how I press it or the switch "just triggering" or whatever. It's also not autorepeat. And I don't trust mechanical solutions here.

All I know is, when it happens, the two letters appear immediately on the screen, so the time between the double-registering is REALLY SHORT.

So I'd like a software solution that makes a key not registered when:
1) it's the same key as pressed before
2) the time between this and the last was less than 10 milliseconds (for example).

Does such setting/keyboard driver/... exist?

For Linux by the way. The keyboard driver's source code is apparently in drivers/char/keyboard.c (but that directory only has a Kconfig file on my system :(). Does anyone know if this driver has such a setting? I only found stuff about autorepeat, which is something different. Has anyone ever modified this driver?

Thanks!
« Last Edit: Sun, 16 December 2012, 09:10:45 by Aardwolf »

Offline tp4tissue

  • * Destiny Supporter
  • Posts: 13568
  • Location: Official Geekhack Public Defender..
  • OmniExpert of: Rice, Top-Ramen, Ergodox, n Females
Re: Software solution for double registered keys?
« Reply #1 on: Sun, 16 December 2012, 09:43:46 »
Hello,

Sometimes a key I press on my mechanical keyboard (Filco) gets registered twice. So that if I type for example "the", it becomes "thee" instead.

This has nothing to do with how I press it or the switch "just triggering" or whatever. It's also not autorepeat. And I don't trust mechanical solutions here.

All I know is, when it happens, the two letters appear immediately on the screen, so the time between the double-registering is REALLY SHORT.

So I'd like a software solution that makes a key not registered when:
1) it's the same key as pressed before
2) the time between this and the last was less than 10 milliseconds (for example).

Does such setting/keyboard driver/... exist?

For Linux by the way. The keyboard driver's source code is apparently in drivers/char/keyboard.c (but that directory only has a Kconfig file on my system :(). Does anyone know if this driver has such a setting? I only found stuff about autorepeat, which is something different. Has anyone ever modified this driver?

Thanks!

Ah.. is the keyboard broken? as in it does the same thing on Windows?

If it's broken, just buy a new keyboard... it's honestly a VERY cheap hobby... because it doesn't involve consumables.  ^-^

Offline hasu

  • Posts: 3475
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Software solution for double registered keys?
« Reply #2 on: Sun, 16 December 2012, 12:25:15 »
This is one of solutions on Windows.
http://www.jeroblo.com/2009/02/25/cchattttter/

Offline Aardwolf

  • Thread Starter
  • Posts: 43
Re: Software solution for double registered keys?
« Reply #3 on: Sun, 16 December 2012, 12:50:37 »
This is one of solutions on Windows.
http://www.jeroblo.com/2009/02/25/cchattttter/

Unfortunately I don't speak Japanese. I tried to run it through Google Translate and I sort of can make out that it's saying that Filco Majetouch is known to have a chatter problem (darn I wish I knew that before I got it), but for the rest I can't make out a lot from it. What is it saying? Thanks!

Offline tp4tissue

  • * Destiny Supporter
  • Posts: 13568
  • Location: Official Geekhack Public Defender..
  • OmniExpert of: Rice, Top-Ramen, Ergodox, n Females
Re: Software solution for double registered keys?
« Reply #4 on: Sun, 16 December 2012, 13:55:05 »
This is one of solutions on Windows.
http://www.jeroblo.com/2009/02/25/cchattttter/

Unfortunately I don't speak Japanese. I tried to run it through Google Translate and I sort of can make out that it's saying that Filco Majetouch is known to have a chatter problem (darn I wish I knew that before I got it), but for the rest I can't make out a lot from it. What is it saying? Thanks!

Why bother with all this research and headache,, BUY A NEW KEYBOARD.. easy fast, cheap.

Offline Aardwolf

  • Thread Starter
  • Posts: 43
Re: Software solution for double registered keys?
« Reply #5 on: Sun, 16 December 2012, 14:24:18 »
Who says it won't have the same problem?

Offline asdf

  • Posts: 43
  • Location: USA
  • Tuesday, 11 November 2008, 20:17:05
Re: Software solution for double registered keys?
« Reply #6 on: Sun, 16 December 2012, 14:51:10 »
Too bad you can't use AutoHotKey on Linux. Would have been this easy
Code: [Select]
$z::
    If (A_TimeSincePriorHotkey < 10)
        Return
    send z
Return

Offline Sifo

  • Alter
  • * Exquisite Elder
  • Posts: 7492
  • Location: #GOLDSPRINGS, #LEGITBALLIN
  • Illustrious
Re: Software solution for double registered keys?
« Reply #7 on: Sun, 16 December 2012, 15:45:06 »
I have the same problem but the double registry is much more delayed (biggest issue is with "a",  like "anad" for "and", "asa" for "as", etc...)  might be mechanical issue, been too lazy to check.
I love Elzy

Offline hasu

  • Posts: 3475
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Software solution for double registered keys?
« Reply #8 on: Sun, 16 December 2012, 18:59:09 »
Filco Majestouch1 was infamous for chattering or bouncing in Japan. It might be exaggerated by some people who experienced the problem. I guess its firmware has a problem on debouncing.
But Majestouch2 seems to have no problem or rare reportedly.

If you have bouncing key problem I think you should change defect switch for best result.

Offline Sifo

  • Alter
  • * Exquisite Elder
  • Posts: 7492
  • Location: #GOLDSPRINGS, #LEGITBALLIN
  • Illustrious
Re: Software solution for double registered keys?
« Reply #9 on: Sun, 16 December 2012, 19:56:32 »
Yeah, changed my switch just now we'll see how it goes :)
I love Elzy

Offline Aardwolf

  • Thread Starter
  • Posts: 43
Re: Software solution for double registered keys?
« Reply #10 on: Mon, 17 December 2012, 11:44:46 »
Filco Majestouch1 was infamous for chattering or bouncing in Japan. It might be exaggerated by some people who experienced the problem. I guess its firmware has a problem on debouncing.
But Majestouch2 seems to have no problem or rare reportedly.

If you have bouncing key problem I think you should change defect switch for best result.

I remember a long time ago when Majestouch2 was being released they posted a changelist somewhere and one of the things was something like "fixes some problem of the Majestouch but we're not telling what".

Could that be this problem?

Offline laffindude

  • Posts: 1521
  • ( ̽ ¬ ˳¬)
Re: Software solution for double registered keys?
« Reply #11 on: Mon, 17 December 2012, 13:42:20 »
Linux... Windows have it built in @ FilterKeys.

Offline davkol

  •  Post Editing Timeout
  • Posts: 4994
Re: Software solution for double registered keys?
« Reply #12 on: Mon, 17 December 2012, 14:40:30 »
Too bad you can't use AutoHotKey on Linux. Would have been this easy
Code: [Select]
$z::
    If (A_TimeSincePriorHotkey < 10)
        Return
    send z
Return
I'm not sure if it's possible to use such conditions in Pystromo, but it shouldn't be hard to add such feature.