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: Wed, 28 Oct 2026 12:50:17 +0100 [thread overview]
Message-ID: <fc016bc8-bc6e-47ed-a85e-891e522c3f24@kernel.org> (raw)
In-Reply-To: <CAAcRvKNYkXr+eor3JAYwO17vckeVAmYT+Dp+-wMobMmL40ukBg@mail.gmail.com>
Hi,
On 26-Oct-26 21:20, Chris Taraszka wrote:
> On Mon, 26 Oct 2026, Hans de Goede wrote:
>> Hmm, I wonder if this maybe sends some scan-code on the PS/2 atkbd
>> interface? Windows must get an event somehow ...
>
> Hi Hans,
>
> It does, but only the plain Space scancode: Fn+Space gives scan 0x39 /
> KEY_SPACE on the atkbd device, the same as Space alone, and Fn on its
> own sends nothing. So there is nothing that tells it apart from Space.
Hmm, so does Fn+space work under Windows ? If it works there, then there
must be some way to make it work under Linux...
>> Ack, this sounds like a case for calling platform_profile_cycle() if
>> platform-profile support is present.
>
> I can send a patch for that on top of Mingyou's series and my TM2424
> patches.
Ack.
>> Hmm, if the value-low toggles I wonder if the firmware also mutes
>> the mic itself ? This may need some special handling.
>
> It does not. I played a 1 kHz tone through the speakers and recorded it
> with the internal microphone while pressing mic mute, with the PipeWire
> source forced unmuted: the level stayed the same with the key's LED on.
>
> The LED is driven by the firmware and follows its own toggle state,
> which is what value_low reports. It does not follow the OS mute: muting
> the source from userspace leaves the LED off. So the two can get out of
> sync, but nothing in the audio path needs special handling.
Ok, so the value-low indicates the state of the LED, right ?
Interesting. Is there someway to manually toggle the LED like we do on
other laptops, so that we can actually sync it to the alsa-mixer
mic-mute state ?
If not then I think we need to add 2 new: KEY_MICMUTE_MUTE and
KEY_MICMUTE_UNMUTE key-codes to:
include/uapi/linux/input-event-codes.h
and send one of those depending on the state of the LED. This will
tell userspace to actually turn the mute on/off to match the LED
state, at least it will once someone takes the time to hook these
up in userspace, which is going to be a chunk of work ...
Being able to override the LED state would be much better.
For something analog (also good for the commit message to add
the new key-codes) see:
#define KEY_TOUCHPAD_TOGGLE 0x212 /* Request switch touchpad on or off */
#define KEY_TOUCHPAD_ON 0x213
#define KEY_TOUCHPAD_OFF 0x214
Where the old KEY_MICMUTE effectively is the toggle variant.
Regards,
Hans
prev parent reply other threads:[~2026-10-28 11:50 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-26 10:20 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
2026-10-26 20:20 ` Chris Taraszka
2026-10-28 11:50 ` Hans de Goede [this message]
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=fc016bc8-bc6e-47ed-a85e-891e522c3f24@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 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®