All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans de Goede <hansg@kernel.org>
To: Chris Taraszka <chris@miget.com>
Cc: "Mingyou Chen" <qby140326@gmail.com>,
	"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
	"Ilya Gladyshev" <ilya.gladyshev@linux.dev>,
	KentoNion <kento@kekto.ru>,
	platform-driver-x86@vger.kernel.org,
	"ted eric" <ericted8810@gmail.com>, "Armin Wolf" <W_Armin@gmx.de>,
	linux-kernel@vger.kernel.org,
	"Matias Civadda" <matias.civadda2342001@gmail.com>,
	"高 俊文" <btx342@gmail.com>, powerfullz <wleizc7319@gmail.com>,
	"孙 誉铭" <wolf109909@outlook.com>,
	"Miloš Vlku" <vlku.milos.fun@gmail.com>, Rsplwe <i@rsplwe.com>,
	"Bozhen Peng" <bozhenpeng93@gmail.com>,
	"Anton Karasev" <uselessfire@gmail.com>,
	"Jame Jao" <jaojame6@gmail.com>,
	"Serhiy Shliapuhin" <shlyapugin@gmail.com>
Subject: Re: [PATCH v14 RESEND 0/6] Merge redmi-wmi into bitland-mifs-wmi
Date: Mon, 26 Oct 2026 21:02:12 +0100	[thread overview]
Message-ID: <f2dd98be-0551-4857-93c7-59ffad1d3e88@kernel.org> (raw)
In-Reply-To: <CAAcRvKNvBKwVcPQ6vv-+OGZdL2Gxd-ocNyvZO_q-g083QNfR5w@mail.gmail.com>

Hi,

On 26-Oct-26 20:56, Chris Taraszka wrote:
> On Mon, 26 Oct 2026, Hans de Goede wrote:
>> 1) This assumes the event indicates a platform-profile-change has happened, if
>> it is a request for a platform-profile-change then platform_profile_cycle();
>> should be used instead.
> 
> Hi,
> 
> Some data for this and for Mingyou's KBD_BRIGHTNESS question, from the
> Xiaomi Book Pro 14 (TM2424, BIOS XMAPT4B0P0A0A), traced with a kprobe
> on bitland_mifs_wmi_notify() with v13 on v7.3 (v14 has the same event
> handling):

Thank you for the info.
> - Fn+Space (keyboard backlight) sends no WMI event at all, neither 0x05
>   nor anything else, and does not change the backlight under Linux. So
>   this model cannot tell whether the firmware handles KBD_BRIGHTNESS.

Hmm, I wonder if this maybe sends some scan-code on the PS/2 atkbd
interface? Windows must get an event somehow ...

> - Fn+K sends event 0x28 with value_low 0x01 on every press (01 28 01 00),
>   not 0x16. The firmware does not change the mode by itself: the
>   SystemPerMode value (EC 0x68) stays the same across the presses. If
>   0x28 is the performance mode key on this model, it is a request rather
>   than a notification, so platform_profile_cycle() would fit. 0x28 is
>   currently logged as "Unknown WMI event".

Ack, this sounds like a case for calling platform_profile_cycle() if
platform-profile support is present.

> - On Windows on the same machine, with Xiaomi PC Manager not running
>   (it fails to start on this install), neither Fn+K nor Fn+Space does
>   anything either. So Fn+K looks like a request that Xiaomi's software
>   normally acts on, not a mode change made by the firmware.
> 
> - Mic mute sends 0x21 with value_low 1 and 0 and is reported as
>   KEY_MICMUTE, as expected.

Hmm, if the value-low toggles I wonder if the firmware also mutes
the mic itself ?  This may need some special handling.

Regards,

Hans



  reply	other threads:[~2026-10-26 20:02 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-26 10:20 [PATCH v14 RESEND 0/6] Merge redmi-wmi into bitland-mifs-wmi Mingyou Chen
2026-10-26 10:20 ` [PATCH v14 1/6] MAINTAINERS: Add maintainer entry of bitland-mifs-wmi driver Mingyou Chen
2026-10-26 10:20 ` [PATCH v14 2/6] platform/x86: bitland-mifs-wmi: Merge the function of redmi-wmi into the bitland driver Mingyou Chen
2026-10-26 10:20 ` [PATCH v14 3/6] platform/x86: bitland-mifs-wmi: Add Redmi mic-mute key entries Mingyou Chen
2026-10-26 10:20 ` [PATCH v14 4/6] platform/x86: redmi-wmi: Drop redmi-wmi driver Mingyou Chen
2026-10-26 22:21   ` kernel test robot
2026-10-27 10:23   ` Ilpo Järvinen
2026-10-26 10:21 ` [PATCH v14 5/6] platform/x86: bitland-mifs-wmi: Add quirks table Mingyou Chen
2026-10-26 10:21 ` [PATCH v14 6/6] platform/x86: bitland-mifs-wmi: Fallback to balanced platform profile if last performance profile is not available Mingyou Chen
2026-10-26 11:45 ` [PATCH v14 RESEND 0/6] Merge redmi-wmi into bitland-mifs-wmi Hans de Goede
2026-10-26 19:56   ` Chris Taraszka
2026-10-26 20:02     ` Hans de Goede [this message]
2026-10-26 20:20       ` Chris Taraszka
2026-10-28 11:50         ` Hans de Goede

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=f2dd98be-0551-4857-93c7-59ffad1d3e88@kernel.org \
    --to=hansg@kernel.org \
    --cc=W_Armin@gmx.de \
    --cc=bozhenpeng93@gmail.com \
    --cc=btx342@gmail.com \
    --cc=chris@miget.com \
    --cc=ericted8810@gmail.com \
    --cc=i@rsplwe.com \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=ilya.gladyshev@linux.dev \
    --cc=jaojame6@gmail.com \
    --cc=kento@kekto.ru \
    --cc=linux-kernel@vger.kernel.org \
    --cc=matias.civadda2342001@gmail.com \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=qby140326@gmail.com \
    --cc=shlyapugin@gmail.com \
    --cc=uselessfire@gmail.com \
    --cc=vlku.milos.fun@gmail.com \
    --cc=wleizc7319@gmail.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.