From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (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 B185B33556E for ; Tue, 6 Jan 2026 14:05:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767708317; cv=none; b=lsndlRUHtGI4PyKz4Z88edgieb5CxdTBdQYtDDc9hBjDvCLbBzfCTx9AFM8QSGBU5PhOI0xdQnpQ1h0SuNFDFwtLbIVGkDmZwP132WUcOK0M2UxAVntf+dA0cv5foi0GSyDF/uXB8VxZAGKPBazuIHlZLfRp8IICMd6TVsWKma8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767708317; c=relaxed/simple; bh=+w+Ymx4NwlBTr5vP7SyEQ9V0WNLPsZp8VJEG6qxNp8A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hXJEs7Jtlle4R76H4lCOf1+x6v9pycJ6MtsKigLRZAwL5Vgzsbpa5nX9tAIomRDjs4JVRHJ0TDcChIOa0u4HyH4eK07T3tNAGiEOXCeE+sjJaXaCXQACAdrx4ZkmtAm7fZHRUe9A/qg9yec+TMBL5qNTFQXEu2QPbfYLaCiGJdw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=LzXSro8k; arc=none smtp.client-ip=209.85.221.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="LzXSro8k" Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-430f3ef2d37so819385f8f.3 for ; Tue, 06 Jan 2026 06:05:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1767708314; x=1768313114; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=lHbv4naRwvTal0STzf8a6D3E6AatMAi9Skg9LQRXqgs=; b=LzXSro8kbGN/XHo4MZjEXOJ3zKxpQqyG+h8EJ8+wUMYy9YyuBScLgcgmve23P92FSr YrQrHQil6PYuOtkUdB3OgBSGgU1uKt8VhAJ713HFLgYYxt3Trp32tJQZJIy0Mf0+07im A9QOWkue+wkaLV2yfsXNx+vssqCM/ibo2duAxGS7wnEcWoHP7YKaQgKcsuHwXZ2IdEPV BD84E36/GD/vM26umUMLYdxSez4LbH7EScf5FpJFUj8HakpIWVdAZpSRaYbk0dDKfakg ZTJoERqZGmXdAIou5HOnTXsWISYKn1pHWKUHveFGdCnZu5STnvWu5wcPZ0rHE8lkGZid V/Pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767708314; x=1768313114; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=lHbv4naRwvTal0STzf8a6D3E6AatMAi9Skg9LQRXqgs=; b=ZQsDtwOeEGAvaq0ndPFvHEPHdD6TEeG8Zli6KjOxShc4Kjz0ygnd/t+npZo9yI68ol 956ndvQVPSgH1QkTaYUB8EtXLZ/+HQVPRigMHj5A8yCKNbZWviCt9BPEUjzowRevDu37 jxB8y/khrGhcmYGH0q9njIT4g+KAKsjaXRHnDWJfzWK7TlkDHsfKEMVL7eMtQyO24XqK oUqamVy75KJUxDVVoN1EM/un6FP4c7lMQR9HT8+xe3jjsmPtyg2ugZqLOVT9hbEo4IcL 0vRNJXbrLbCJz3dcTcHgqsKDCGdGc71lJUTkOLR8Si5LbA8f42ghSmZNm9LWIpyXXCWe e3zQ== X-Forwarded-Encrypted: i=1; AJvYcCWR9cCcf4K0F8xZ81/Xu4W6X8yWYpofiTEfHcLu9qWCCySQRFDButJ9+aIbjlTJ7hIP9sOFSV3TcwL6bG0=@vger.kernel.org X-Gm-Message-State: AOJu0YzTGzRxo3X/UkgDfTxQYacktwMn2VUGng1Eu7KKJmvPJbGgcGDK g6emUjMCbM8XQAMFQuDVafGJUHsM1j7PMzJStWgSWD1Ujz97pztuCrHG X-Gm-Gg: AY/fxX57DRWwkeaUdrNipoCjtuIJxhBY7MPNfwu05zk0MjkutcPxCMcm8wS28w6V0aa 5MsfEZMX75cU2YxpHK+d9zdQgRI1xxRp0zAJX+9tZKs0igArY+VXeQlNpBd3a0iN2FYvZvVc7ta Y/ep7AuuPLlf1LglhFRu5RggPl/JWyIF9Ua5rIOtG5gGi8zwGMmfQYwjIlDvDsHLJL0rKg0EVRv oqX6bay+PLZBxCY9jdZGTug+3iV4wmNI1p2BW1g98cZht7fQeWyZNsfD077mpGaeO2ZI2+1knPj efJcN+GE6JkXhQIrD7Ads117YYC9uFEwMjIVCtVwpbQTwvSDcucjLJ4sucPo5+k1o+BIFY8YPaF vt+mTVMo2PObbk5hjNsp8p1LrHL8t7bznayxoBjUBnuZUH7EWWlTUhw+zXEsfg263x/wCX1/jHi wvM8kNUiC6xAAOaEFXoKa1JFFTmKjZ5VnV2FXqFQ0= X-Google-Smtp-Source: AGHT+IEnazC597cz4qJRfWHjOUrH5GNphybqPScAHzRmg24ulAXqQNXhM4Bl6q9K3zfd8ff1NygSTw== X-Received: by 2002:a05:6000:1844:b0:431:855:c798 with SMTP id ffacd0b85a97d-432bca3028cmr3876355f8f.19.1767708313613; Tue, 06 Jan 2026 06:05:13 -0800 (PST) Received: from ionutnechita-arz2022.local ([2a02:2f0e:ca09:7000:33fc:5cce:3767:6b22]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-432bd0860f5sm4475238f8f.0.2026.01.06.06.05.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jan 2026 06:05:13 -0800 (PST) From: "Ionut Nechita (Sunlight Linux)" To: Jiri Kosina , Benjamin Tissoires , Mario Limonciello , Ionut Nechita Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/1] HID: asus: Add ROG laptop HID code filtering and fan control Date: Tue, 6 Jan 2026 16:04:50 +0200 Message-ID: <20260106140449.90506-3-sunlightlinux@gmail.com> X-Mailer: git-send-email 2.52.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Ionut Nechita Hi, This patch addresses two issues with Asus ROG G14/G15 laptops: 1. Kernel log spam from unmapped HID vendor codes 2. Non-functional Fn+F5 fan control key Problem: -------- Asus ROG G14 and G15 laptops send several HID vendor usage codes (0xea, 0xec, 0x02, 0x8a, 0x9e) during normal keypresses with no clear purpose. This generates continuous "Unmapped Asus vendor usagepage code" warnings in dmesg, cluttering the kernel log. Additionally, the Fn+F5 key (code 0xae) which should cycle through fan modes is not handled, preventing users from controlling fan behavior through the keyboard shortcut. Solution: --------- - Filter out the spurious HID codes for ROG N-Key keyboards to eliminate log spam - Add asus_wmi_send_event() function to enable communication between hid-asus and asus-wmi drivers - Implement Fn+F5 (0xae) handler that triggers WMI events to toggle fan modes - Replace magic number with HID_UP_ASUSVENDOR constant for clarity Testing: -------- Tested on Asus ROG G14 (2021) and G15 (2022) models: - Kernel log no longer shows unmapped vendor code warnings - Fn+F5 key now cycles through fan modes (silent/balanced/performance) - No regressions observed with other keyboard functionality Impact: ------- Affects Asus ROG laptop users who experience: - Cluttered kernel logs from HID warnings - Non-functional fan control hotkey Ionut Nechita (1): HID: asus: Filter HID vendor codes and add WMI fan control support for ROG laptops drivers/hid/hid-asus.c | 48 +++++++++++++++++++++- include/linux/platform_data/x86/asus-wmi.h | 2 + 2 files changed, 49 insertions(+), 1 deletion(-) -- 2.52.0