Re: ThinkPad T480s & LED_MUTE, LED_MICMUTE

From: Pali RohÃr
Date: Thu Jun 21 2018 - 07:30:39 EST


On Monday 18 June 2018 17:35:18 Takashi Iwai wrote:
> On Mon, 18 Jun 2018 13:26:18 +0200,
> Pali RohÃr wrote:
> >
> > On Monday 18 June 2018 13:21:21 Pali RohÃr wrote:
> > > Now I see that in Debian backports is some 4.16.12 kernel version. I can
> > > try this one (and later compile one from Linus tree).
> >
> > Tested, this version is working fine and leds works as expected. And now
> > also snd_hda_codec_realtek is loaded.
>
> Good to hear :)
>
> Below are test patches to allow user choosing the mic mute LED
> behavior on Thinkpad, too. Note: totally untested!
>
> Let me know if these work for you.

I applied them to Debian's kernel (with slightly modification) and they
are working fine. Via "alsamixer -c 0" I can change "Mic Mute-LED Mode"
to "Follow Capture" and then led is ON only when microphone is ON.
Recording from microphone is working in both configurations.

If testing with Debian's kernel is enough, you can add my:

Tested-by: Pali RohÃr <pali.rohar@xxxxxxxxx>

Anyway, (this question is also for Henrique), what can we do with MUTE
led to work? Support for controlling it was there, but was revered in
commit 3530febb5c7636f6b26d15637f68296804d26491.

--
Pali RohÃr
pali.rohar@xxxxxxxxx