From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AAA6AC4363C for ; Sun, 4 Oct 2020 03:55:51 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DF5C020781 for ; Sun, 4 Oct 2020 03:55:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=vt-edu.20150623.gappssmtp.com header.i=@vt-edu.20150623.gappssmtp.com header.b="vmHT9gif" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DF5C020781 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=vt.edu Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94) (envelope-from ) id 1kOv7X-0002d2-IW; Sat, 03 Oct 2020 23:55:35 -0400 Received: from mail-qk1-x731.google.com ([2607:f8b0:4864:20::731]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94) (envelope-from ) id 1kOv7U-0002cw-V0 for kernelnewbies@kernelnewbies.org; Sat, 03 Oct 2020 23:55:33 -0400 Received: by mail-qk1-x731.google.com with SMTP id c2so7898847qkf.10 for ; Sat, 03 Oct 2020 20:55:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vt-edu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:in-reply-to:references:mime-version :content-transfer-encoding:date:message-id; bh=ZDio//ZvQK27239V7d3EEeC2INbggxQY19YezehCqrA=; b=vmHT9gifgL0E6EiguyJcFxF1KlZBri/hNSvuk1gSSUcASJXU1ec4ltiRzJ+2W2iikA PbTLsRYilG/NTUUVzm/1DCi5xvwdJjkzMSN8uwI9NzwM9G7X+Z0rWozpmtD/l7ueBBoz YIP8GdwDjgPlLPH1X2jwL73J8Uy8Patd6HUyi8+TMf8qKB/euD8svuRIMXMwHElj2Hov poFE9wZFiGMD3GOFYiexJIL2hIzjBxlO9hEk8pb41O5VfEoOfz+lLMKgHLEufkCaxPN8 9LJlOLUScpfZCqz/pDPmo6g5ASmY6fBpGnd4rgJzIZq/x7CAWfSQPXk8NcdMpsQVpl5+ 1bQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :mime-version:content-transfer-encoding:date:message-id; bh=ZDio//ZvQK27239V7d3EEeC2INbggxQY19YezehCqrA=; b=IAN8Kuyal7lVs/0n4+hbqul8J2p/rXICrVSRLy3UhB/mUt+TXSp0agYbtBwiXWVU5e 67+88lgI/RSTvrbEfRP/hvBS9Rw+q6e0/WmXGC58IcFlbF8Syjg3Xq58R+o2J2zM5LSx MEpGEgODLRsj5TjjPK6q6pz6166vFxGnyyf92mNOjkxqW1GYg495iR+ZR79H4x26RFTz WvIJr5z9sxmudZ7gpQDAd3UjyOip5kW8p7ZN0GlTl3ualT4PzwMgwgbKnPsI1PQh+lFk xOZGmmq+ve6IbD88U0i9ZNVlytl1yD1pE5nXc38mDDLMt04wBbGG7BHO35SwVduox9Ao WqZQ== X-Gm-Message-State: AOAM531u8RgRyglj9gIU+23TwnN3q2LefR/lX+4Tf4G9nfYWCuPyR1tU 2ZKAKHeH03MuzXTgyiRmU3afJg== X-Google-Smtp-Source: ABdhPJxGdgGYfXjz7rx2aNu0Ov3HPLKr5TJz/TaqkGH+ILGhzeInMTDdDDIWaEBiU4R0aC8T7+2L/Q== X-Received: by 2002:a37:7486:: with SMTP id p128mr8960305qkc.33.1601783670908; Sat, 03 Oct 2020 20:54:30 -0700 (PDT) Received: from turing-police ([2601:5c0:c000:a8c1::359]) by smtp.gmail.com with ESMTPSA id c13sm4791438qtq.5.2020.10.03.20.54.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Oct 2020 20:54:29 -0700 (PDT) From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Google-Original-From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7+dev To: Ave Milia Subject: Re: Fixing keyboard chatter in Linux In-Reply-To: References: Mime-Version: 1.0 Date: Sat, 03 Oct 2020 23:54:28 -0400 Message-ID: <67342.1601783668@turing-police> Cc: "kernelnewbies@kernelnewbies.org" X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============3195400654887028085==" Errors-To: kernelnewbies-bounces@kernelnewbies.org --===============3195400654887028085== Content-Type: multipart/signed; boundary="==_Exmh_1601783668_5006P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --==_Exmh_1601783668_5006P Content-Type: text/plain; charset=us-ascii On Sat, 03 Oct 2020 22:15:08 -0000, Ave Milia said: > Hello, > > I have a faulty key switch on the keyboard that apparently sends multiple > signals upon a single press. And apparently this is called keyboard chatter. > Since no such software exists (or if it does, please share it), I would like > to ask for your advice on how to implement this. I more or less know C, but I > have no idea where to start on this problem: > * what do I need to know about Linux kernel to solve this? > * at which point of Linux input logic can I put this filter? > * does the filter have to be in kernel mode or it can be in user mode (I'd > prefer not to work in kernel mode)? > * do I need to write a special input driver to implement this filter (the key > board is a USB keyboard controlled by usbhid)? > > So, I just need some basic directions and where to start. Step 0: Decide if that amount of effort is even worth it rather than just replacing the keyboard. Step 1: Design your software solution to be able to deal with multiple wonky keys, because if one is broken, there's probably others that are going to give out soon. --==_Exmh_1601783668_5006P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Comment: Exmh version 2.9.0 11/07/2018 iQIVAwUBX3lHcwdmEQWDXROgAQI4zQ/7BB2ph/3r4g52MyGdG6uwmbG0b3CvX2L7 5pWQ7j8WiNZ8x6XtVJ6elcB7y+CbVa9jdeu/rWsuQfirshM+B0FbvCiiBrAb4YzM bhEV7KuoX9OXQEpj/k2E0p669Q7kEjdE6GSJnQeiQ/eoapTK34TrLO5SjLgh53XE ixHboNZu5amOnC9QjbICYGBiQyh/FL+L5B2E1q5nK0mzhx4OkYTkhYHkqG4qlOBV UbZX1Cp+/ZZLZO2O3UNNxw6/MGJI/lZK+8waY9dUPIOUcFbRPsJ0CRqnX2s0bcJv /BeAHmi1zFxEoOApdQo96tYhTt+EImY1hKU0LhBvzp++KuJPxnNsNf6/8Q4ZS4Di KjJr4PeMwYELkJkVrsVRoaa+ngb5HpyRMvdw0dZiphg7debEEOMNHsfx/ochPHc6 Nm2amqRg/Ps6/2+W/vXhgGtkoHHCqYZ2gprRsFXi8nhI5jx7/VyNrHn02BsOj6eO Fos757xymhZKktdh+M3gahL5bEnb5M7rdKw9mNgYSITCqYBC/r5zxZCfsTxPW1Yv YLRxTdktCgeHIKS1cgZH5fNIAjuOHpEt3nP3HMKBr17oThnOJQSTPDZ52dxQWB4e 3KoHOrn9l1w3bnJTwDQh5X257HvIgUiwZrI8LCSKkI3ULhHDduWdr2arEqTd+Own T46Pk21liNo= =t4At -----END PGP SIGNATURE----- --==_Exmh_1601783668_5006P-- --===============3195400654887028085== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============3195400654887028085==--