From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.214.176 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795831255; b=U8Qn/V4TBGlpWGCTxETriEvxfOaqdNDYF10SXMN6IQI2Y6rA6i370dZ+X651Xar+3pFG q4q+9389sSoW07wWwcN2txommeSkqLLnMSbShnw7YzRWp4NRcZvIc/ju3hFrlXuFIT85T fkixgWR90o7qjngBZn8HysDiWX59+2Hvt/Mo4Ry1LurB4tOjG2kq2CZXX/So/EL1OMoT8 93nSwOrFvu10+5MZzhirodNeJubWuAqSUfEFz/ODfdZ9x78udltSG+9Cg5rUjYUwdoado xJPMK82hBBStsRdRlRL7u6AVEBpRIUBDBcEXkZlAYzNKij+4c5cpfP9EJeukj2VQOuw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795831255; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; bh=THiOG6yeDwGvR8nJmqjVk5/9O8jrhV6Y0gw1+16ztmY=; b=jD+FyimrfFnmg6fUV0Kn9yBJctAtzc+GNfA/G5v+rCBoqwu37PhV6qImYUdgAthSqo0Y 7h5HQotUKVu6D1Bu9dcSGwl8FoDa6nBu5ca1yNS+EVHrdhw/bzaQ2BLYB/GfFsTlt9Din Xks/2ljJ86WM9IOBdIpilcIQXI5uR4zJsjRkL77dmSy41qr15K0G5bK61B6/+H9039Wym q6gOteleG0GYo/4oRPjTpweeJz9X0+SpzGBg4T5XQdQnjJnyeMKxV41e7jew9Cf1eLZ7j lxjiKE8/VsnEryczx7BAYPgDgJ009SNC1EQhOZXFz57CKWZcZGlh9huHv9rDiP84smA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=dxeRMwCR; arc=none smtp.remote-ip=209.85.214.176 Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 23FCD606A31C for ; Sat, 28 Nov 2026 02:00:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 23FCD606A31C 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.a=rsa-sha256 header.s=20260707 header.b=dxeRMwCR Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-2f045b921caso49850945ad.3 for ; Fri, 27 Nov 2026 18:00:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795831254; x=1796436054; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=THiOG6yeDwGvR8nJmqjVk5/9O8jrhV6Y0gw1+16ztmY=; b=dxeRMwCR5ld93fq20sgEi/k/9/69SDSHHUAUZmz1+nRqmOgoQaSJPe9t+yAFf0JNKy UbajOzgB7dxgeN6YocfeWYqYnKa/HXrHfeYk9eYbI5XmBFPTgqdhi/ijjBpEjJktvwK4 BfAkOdqfguAUSyVb7tYYDJAKepBGfmi41Ke5EV1dnSFMFsxG8LYrk7NDKs6uLJ0Wm5dl tMyJpc+akLa2FCIaRuofbaffyZ5ox8j1ND2K0PJ63FN4f/LQX4We8mPJbCwkGWUMV7Ut P428ycNUBwI6I+XYA/iDBp6/jOBTGZ4TJv8ZGr5FGqsMI68GVT8rnu6rC0RJteLTqaOw kxZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795831254; x=1796436054; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=THiOG6yeDwGvR8nJmqjVk5/9O8jrhV6Y0gw1+16ztmY=; b=hU7neS3lzCSe/43H5CLnYsfZ4jJ62nV3ODGBMw+HPE0M4j799Yys5hkVJYpAoW8jqU /EUmfeJtK39pcljmKICN7O0WVL6E0cz58hnoLlaoRsXSjghWAeQWM8ts4RHW381tQfVC c6B/chuCCRArVwUw7Sfsr5nJl3KgzmJ72rXatexwNbs4HFCx6Hf+/BJbQXZtB478gMIU 233MLebRD7hHvyhaPxjVhE8MdKGkzWCggYIB0t8QOr8UlIbl7fsHRU9AZw9MpIDDKJ87 bQF5uCOX4Xkk24zCDglRyV/30CZ5kJVYkTGZJX5hGw+XLi/az1u3r2Af+d/F40vyBj5M 49cQ== X-Forwarded-Encrypted: i=1; AL+hErHEhsUvo8jqBOJDpJx//7zNCpOmCjlcsZbxoBkznmiXuceUYiWwJuZ24IHWjz9zns1f53aOft4uczZKmm0=@vger.kernel.org X-Gm-Message-State: APuU4Z+Q9S6RzuIdt7aZzoQAG0sHzJMZv4gUvM7oj2FWbuw2id0SgI1B W2YENmQ92Y+WH9E3fzwPXazBmx5ycDFwtt3aRyQV6SVLP2jnQVIEFsN2qgXeEw== X-Gm-Gg: AZFdTZekRpUqB7/uy2zGr61sEUA9DswCfNaaFtWMPAcEOWFH9/Xq9I7sNpOlv1Is/kZ hPH+HaW+nnbERgcF+V9T4MRH/X7EDsrhr3nW7bDELTp2is7MedeazKah3a3bMiSJ7Uz1W9B/qdh Lmg0PtUG49XuW5l4WSrgdqjaNeXPvt8WxZ9LASiqW7MdQQRlcwHZX+t1D1VPi3rBTmaBffiF+Tv mB+Ue5mzFbPlwVD2PEhFRP2bV/5JPZaSSpMcUtlnCYyNuymtn4ja6mP4ykm9s6qKcvYmbaSlYE5 weLN59eKWhR3OTREJbyqt0cypMiNdlvjem7F+cs0kKpF1OArkns3f8MGMGwgT8AYauE42evDpje oU94rhxZcB8MnZwSEMVG6u61S4RcGSHMIW9Mt5N7a7qp4uXfxJo8Djd2GvebpZmkOu7umb0fIn5 RnGL9wabp2OVl1HkZ54fjjMzkyyLoBmKu59baLLOY1cFvETDEQpff5QsoqJr7VzcWuVnPUPInys S9MMFPHuBVIP3wlReQlpQCFAqoBT9XMPxbSQ/nIDFxSC+0IWA+/7IiujnXlOdCOF+KEmjlx7qYL pYfrdFc7dDmIdcopIq4KPC+jtwBN9LMTsw4VjF+LlRQ= X-Received: by 2002:a17:902:cf0b:b0:2f0:25ea:8fa7 with SMTP id d9443c01a7336-2f03f18a1a5mr265082035ad.38.1795831254335; Fri, 27 Nov 2026 18:00:54 -0800 (PST) Received: from localhost ([20.89.137.63]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2f03f15663fsm127058405ad.76.2026.11.27.18.00.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Nov 2026 18:00:52 -0800 (PST) Date: Sat, 28 Nov 2026 10:00:50 +0800 From: Mingyou Chen To: Ferdinand Porsche Cc: platform-driver-x86@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, W_Armin@gmx.de, ilpo.jarvinen@linux.intel.com, hansg@kernel.org, foxido@foxido.dev, wolf109909@outlook.com, Chris Taraszka Subject: Re: [BUG] Xiaomi Book Pro 14 (TM2424): ECON undefined, EC hotkeys (Fn+F4 mic mute) never reported Message-ID: References: X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On 26/11/27 10:29PM, Ferdinand Porsche wrote: > Hi, > > On the Xiaomi Book Pro 14 2026 (Panther Lake, Bitland "MIFS v2" firmware) > the Fn+F4 microphone mute key does not work. The key's LED toggles (driven > by the EC itself), but no input event ever reaches userspace. I think this > is the same firmware issue that breaks lid events on this machine. Armin > asked for an acpidump of this device in the "bitland-mifs-wmi: MIFS v2" > thread. I can provide one, see below. > > Machine: > - DMI: XIAOMI Xiaomi Book Pro 14/TM2424, BIOS XMAPT4B0P0A0A 06/17/2026 > - Kernel: 7.3.0-11-generic (Ubuntu 26.10, based on 7.3.1) > - Secure Boot on (lockdown=integrity), so no debugfs/dynamic debug. > > The kernel is tainted (O) by the out-of-tree xiaomi-book14 module mentioned > below. The ECON errors and the missing Fn+F4 event were the same before I > installed it. I can retest on a vanilla mainline build if that helps. > > Firmware bug: > ECON is referenced as External (ECON, IntObj) in the DSDT and used in > \_SB.PC00.LPCB.Q_EC._STA, Q_EC.ADP1._STA and Q_EC.LID0._STA, but no table > defines it: > > ACPI BIOS Error (bug): Could not resolve symbol > [\_SB.PC00.LPCB.Q_EC._STA.ECON], AE_NOT_FOUND > ACPI Error: Aborting method \_SB.PC00.LPCB.Q_EC._STA due to previous > error (AE_NOT_FOUND) > > acpi-ec still binds to PNP0C09:00 (\_SB.PC00.LPCB.Q_EC) on this kernel: > > ACPI: EC: EC started > ACPI: EC: interrupt unblocked > ACPI: EC: event unblocked > ACPI: EC: GPE=0x6e > > Observed when pressing Fn+F4: > - /sys/firmware/acpi/interrupts/gpe6E increments by 2 per press. > - No EV_KEY on any evdev device. I tried redmi-wmi bound to > 46C93E13-EE9B-4262-8488-563BCA757FEF (keymap has no KEY_MICMUTE), and also > bitland-mifs-wmi bound to that GUID instead (its keymap has KEY_MICMUTE at > scancode 0x04). Neither reported anything. > - Nothing on the acpi_event genetlink group either. I had no positive > control for that, so it is only weak evidence. > > DSDT/SSDT notes: > Most Q_EC._Qxx methods call \_SB.WMID.QV20(One, code) (SSDT "WMID", _UID > "MIFS"). That stores EVTP/EVFN in the XGNS SystemMemory region at > 0x6FDB8000 and does Notify(WMID, 0x20), e.g. _Q04 -> 0x21, _Q08 -> 0x01, > _Q15/_Q16 -> 0x25/0x26. _Q0A/_Q0B/_Q61 (AC/battery notifications) and _Q79 > (UCSI) also live under Q_EC. > > The out-of-tree xiaomi-book14 driver ( > https://github.com/wolf109909/xiaomi-book14-dkms) works around the same > root cause by polling the EC RAM window for the lid. Its author is Cc'd, > and the hotkey part is filed there as > https://github.com/wolf109909/xiaomi-book14-dkms/issues/2 > > Questions: > 1. Since acpi-ec binds anyway, is it expected that the _Qxx handlers > apparently never run, or am I misreading this? If they don't run, would a > DMI quirk that treats ECON as 1 (or forces Q_EC present) be acceptable? > 2. Which driver should eventually map the Fn+F4 event to KEY_MICMUTE on > this machine: redmi-wmi or bitland-mifs-wmi? > > I can send the full acpidump off-list to anyone who wants it, and I can > test patches on this machine. > > Thanks, > Ferdinand Hi, I've noticed lots of temporary workarounds in the xiaomi-book14 dkms driver. This is out-of-scope of a WMI driver. redmi-wmi was removed in the next branch (now replaced by bitland-mifs-wmi). And by-the-way, the TM2424 quirk is already available in the next branch. But I've noticed a problem: The platform profile map is different between the in-tree bitland-mifs-wmi driver and the xiaomi-book14-dkms driver. xiaomi-book14-dkms defined those values: #define QFAN_QUIET 0x02 #define QFAN_BALANCED 0x03 #define QFAN_SPEED 0x04 #define QFAN_EXTREME 0x09 #define QFAN_EXTREME2 0x0A but bitland-mifs-wmi got another: static const struct bitland_profile_entry tm2424_profile_entries[] = { { PLATFORM_PROFILE_LOW_POWER, 0x02 }, { PLATFORM_PROFILE_LOW_POWER, 0x0a, true }, { PLATFORM_PROFILE_BALANCED, 0x09 }, { PLATFORM_PROFILE_PERFORMANCE, 0x04 }, { PLATFORM_PROFILE_PERFORMANCE, 0x03, .battery = true }, }; Here's the answer of your questions: 1. I consider this is a linux-acpi problem...I'm not familiar with it. I'd suggest Cc'ing the linux acpi mailing list and maintainers to see how they want to handle the problem. 2. bitland-mifs-wmi (in linux-next) should handle it. It already maps event ID 0x21 (WMI_EVENT_MIC_MUTE) to KEY_MICMUTE.