mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mingyou Chen <qby140326@gmail.com>
To: Ferdinand Porsche <akiletschne@gmail.com>
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 <chris@miget.com>
Subject: Re: [BUG] Xiaomi Book Pro 14 (TM2424): ECON undefined, EC hotkeys (Fn+F4 mic mute) never reported
Date: Sat, 28 Nov 2026 10:00:50 +0800	[thread overview]
Message-ID: <awoz1BKtliVN7dk4@qby-laptop> (raw)
In-Reply-To: <CAPQ11N91cTtpeynVHOE4zkO3UTMKm_3iNR5iN8PEp_Byo_EQug@mail.gmail.com>

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.

           reply	other threads:[~2026-11-28  2:00 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <CAPQ11N91cTtpeynVHOE4zkO3UTMKm_3iNR5iN8PEp_Byo_EQug@mail.gmail.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=awoz1BKtliVN7dk4@qby-laptop \
    --to=qby140326@gmail.com \
    --cc=W_Armin@gmx.de \
    --cc=akiletschne@gmail.com \
    --cc=chris@miget.com \
    --cc=foxido@foxido.dev \
    --cc=hansg@kernel.org \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=wolf109909@outlook.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®