From patchwork Thu Mar 13 14:03:16 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Werner Sembach X-Patchwork-Id: 14015119 Received: from mail.tuxedocomputers.com (mail.tuxedocomputers.com [157.90.84.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 85E3435944; Thu, 13 Mar 2025 14:05:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=157.90.84.7 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741874706; cv=none; b=u/oKbyRZR3wTm98StzLphhLNnMvGRqyuaF+uNdCREbXUp+7gVRVQ3mKVoIZ/buDN7Yqn/kZMpnAY3UbfUlYSZO+LYfkr1CMNWRXHobb73kWQ4PdyB9QCdTYNJfvZGPD6XwZ+c1rmq49Xm8+J/h6BUMDUa4l4ki8ToTdPiX/kwO8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741874706; c=relaxed/simple; bh=SUkFfMMGjZXkXjndznsz1O+j0aDSp62NV3N4OYP+YQQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=tmyXMUqX4eBULfk7gAw2mahry2iiUxMSO29i9x6Pf7qLneumtBH0w1rJApW1/AUSTY+Xol8M3R85nwVU9YIwnu6r7NlpgdJIj3SByMucCpJMWtR/0HaLGV+5AO4z3SBXn88fLkCwT7SWoUPukp2yWrJ9+sykDCF1Tx52UUhlJDM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=tuxedocomputers.com; spf=pass smtp.mailfrom=tuxedocomputers.com; dkim=pass (1024-bit key) header.d=tuxedocomputers.com header.i=@tuxedocomputers.com header.b=MDHOFjjc; arc=none smtp.client-ip=157.90.84.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=tuxedocomputers.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tuxedocomputers.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=tuxedocomputers.com header.i=@tuxedocomputers.com header.b="MDHOFjjc" Received: from wse-pc.fritz.box (p5b164989.dip0.t-ipconnect.de [91.22.73.137]) (Authenticated sender: wse@tuxedocomputers.com) by mail.tuxedocomputers.com (Postfix) with ESMTPA id 7945A2FC0189; Thu, 13 Mar 2025 15:04:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxedocomputers.com; s=default; t=1741874699; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=AEN5MFrPOszMtKfE2DQy0exP89FiGYuXVSqeWG07cqA=; b=MDHOFjjcsVqlfB/1II4leCNizlVKW2dYvM83XTzpWLf2sxV/cTELuNDMTLy0Nn68y2EHVo QfR4xs/v9dWx2ryZLyqZxolyRxnDhYRpo6vNTqyn85gaAdftJwGJ1iptUeHrmNlghfU/wO dW6nGlAXcenUUBBRympJ3nBcr38DeRc= Authentication-Results: mail.tuxedocomputers.com; auth=pass smtp.auth=wse@tuxedocomputers.com smtp.mailfrom=wse@tuxedocomputers.com From: Werner Sembach To: ilpo.jarvinen@linux.intel.com, hdegoede@redhat.com Cc: linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, Werner Sembach Subject: [PATCH v5 0/1] Input: atkbd - Fix TUXEDO NB02 notebook keyboards touchpad toggle key Date: Thu, 13 Mar 2025 15:03:16 +0100 Message-ID: <20250313140458.621438-1-wse@tuxedocomputers.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: platform-driver-x86@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Some notebooks send Super + Control + KEY_ZENKAKUHANKAKU¹ upon pressing the touchpad toggle key. It can be mapped to correctly touggle the touchpad purely in userspace with these patches: - https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config/-/merge_requests/810 - https://invent.kde.org/plasma/kwin/-/merge_requests/7278 - https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2873 But as you can see, this requires per desktop environment patches. GNOME already has the correct mapping and KDE does with the patches above, but smaller ones might also need patches. As an alternative soltuion I also wanted to suggest this i8042 filter + virtual input device. v2: Coding style fixes v3: Send F21 keypress via virtual input device instead of serio interrupts v4: Add cover letter Fix copy paste error "GPL-2.0-only" to "GPL-2.0-or-later" Add missing Copyright lines v5: Fix cover letter subject line Werner Sembach (1): Input: atkbd - Fix TUXEDO NB02 notebook keyboards touchpad toggle key MAINTAINERS | 6 ++ drivers/platform/x86/Kconfig | 2 + drivers/platform/x86/Makefile | 3 + drivers/platform/x86/tuxedo/Kbuild | 8 ++ drivers/platform/x86/tuxedo/Kconfig | 8 ++ drivers/platform/x86/tuxedo/nb02/Kbuild | 9 ++ drivers/platform/x86/tuxedo/nb02/Kconfig | 17 ++++ drivers/platform/x86/tuxedo/nb02/platform.c | 107 ++++++++++++++++++++ 8 files changed, 160 insertions(+) create mode 100644 drivers/platform/x86/tuxedo/Kbuild create mode 100644 drivers/platform/x86/tuxedo/Kconfig create mode 100644 drivers/platform/x86/tuxedo/nb02/Kbuild create mode 100644 drivers/platform/x86/tuxedo/nb02/Kconfig create mode 100644 drivers/platform/x86/tuxedo/nb02/platform.c