You are not logged in.

#1 2023-01-05 14:07:14

whyaname
Member
From: Netherlands
Registered: 2013-08-09
Posts: 25

Enabling Mute Fn Key LED on HP Laptop

Hello,

I have an HP Laptop (15s eq2xxx) and it has a mute LED on the F6 key. The key itself works but the LED doesn´t reflect the mute status of the system (orange LED -> Muted, no LED -> Unmuted), it stays unlit no matter the mute state.

grep Codec /proc/asound/card*/codec*
/proc/asound/card0/codec#0:Codec: ATI R6xx HDMI
/proc/asound/card1/codec#0:Codec: Realtek ALC236

I found this https://git.kernel.org/pub/scm/linux/ke … models.rst for the various led options however there is no specific ALC236 entry here. In addition, this bugzilla conversation https://bugzilla.kernel.org/show_bug.cgi?id=195827 shows other people having the same issue and this was resolved in kernel 5.10 for someone yet another commenter still had a non working LED (added this link for further information).

I have tried adding the mute led as mentioned for other HP laptops yet that didn´t seem to work.

/etc/modprobe.d/alsa-base.conf
options snd-hda-intel model=mute-led-gpio

I also tried this with hp-mute-led-mic1/2/3 as well.

Any ideas on how to fix this? Thanks.

Last edited by whyaname (2023-01-05 14:10:38)

Offline

#2 2023-01-05 14:38:47

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,284
Website

Re: Enabling Mute Fn Key LED on HP Laptop

If you have /sys/class/leds/platform::micmute/ you could bind the key to a script that changes the mute status and also writes to the brightness file in that directory to change the light. Hacky as hell but it might just work.


Para todos todo, para nosotros nada

Offline

#3 2023-01-05 15:14:53

whyaname
Member
From: Netherlands
Registered: 2013-08-09
Posts: 25

Re: Enabling Mute Fn Key LED on HP Laptop

/sys/class/leds contains the following entries:

ls -lsh /sys/class/leds
total 0
0 lrwxrwxrwx 1 root root 0  5 jan 15:14 input2::capslock -> ../../devices/platform/i8042/serio0/input/input2/input2::capslock
0 lrwxrwxrwx 1 root root 0  5 jan 15:14 input2::numlock -> ../../devices/platform/i8042/serio0/input/input2/input2::numlock
0 lrwxrwxrwx 1 root root 0  5 jan 15:14 input2::scrolllock -> ../../devices/platform/i8042/serio0/input/input2/input2::scrolllock

No platform::micmute it seems.

Last edited by whyaname (2023-01-05 15:15:42)

Offline

#4 2023-01-05 15:53:03

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,284
Website

Re: Enabling Mute Fn Key LED on HP Laptop

Yeah, it was probably a silly suggestion. If that directory existed then the kernel would use it to control the LED correctly. Sorry for the noise.


Para todos todo, para nosotros nada

Offline

#5 2023-01-10 22:37:50

FaeFeyFa
Member
Registered: 2019-08-08
Posts: 20

Re: Enabling Mute Fn Key LED on HP Laptop

So I managed to "fix" this on my laptop with an even hackier script (using the suggestion of testing the GPIO pins from one of OP's links), and binding it to the mute key with acpid:

#!/bin/sh
sudo -u faefeyfa env XDG_RUNTIME_DIR=/run/user/1000 pamixer -t 
hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_MASK 0x04 
hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_DIR 0x04 
if [ $(sudo -u faefeyfa env XDG_RUNTIME_DIR=/run/user/1000 pamixer --get-mute) = "true" ]; then 
	hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_DATA 0x04 
else 
	hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_DATA 0x00
fi

Maybe some variation of this will work for you?
(though hopefully this script is disgusting enough that somebody might come up with an actually good solution :P)

Last edited by FaeFeyFa (2023-01-10 22:39:50)

Offline

#6 2023-01-11 08:49:10

whyaname
Member
From: Netherlands
Registered: 2013-08-09
Posts: 25

Re: Enabling Mute Fn Key LED on HP Laptop

I tried all 40 options (0x01 - 0x40) but none of them worked. Even a hacky script that works would be fantastic at this point.

Offline

#7 2023-01-12 08:55:30

Sir_Potato
Member
Registered: 2023-01-12
Posts: 30

Re: Enabling Mute Fn Key LED on HP Laptop

Hello,
could you provide the exact syntax of the command you used? And which of the arguments did you change when going through all options?
If we can find out how to control this LED you won't need a hacky script. A simple change in the Kernel will be sufficient.

Also there aren't 40 but only 7 options: 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40
since only one bit should be 1 at a time (each bit defines one GPIO pin).

Offline

#8 2023-01-12 09:08:12

Sir_Potato
Member
Registered: 2023-01-12
Posts: 30

Re: Enabling Mute Fn Key LED on HP Laptop

FaeFeyFa wrote:

Maybe some variation of this will work for you?
(though hopefully this script is disgusting enough that somebody might come up with an actually good solution tongue)

There is a better solution:
Adding a quirk to the sound driver in the Kernel will tell it how to correctly access your LED.

Could you provide your alsa-info?
Run alsa-info.sh as root and when prompted, upload the ALSA information.
Then you can post the URL here.

Also, if I understand your script correctly, you can enable your LED using the GPIO pin 0x04.
Setting the GPIO_DATA to 0x04 enables the LED
and setting GPIO_DATA to 0x00 disables it.

Is this correct?

Do you have a mute indicator for your microphone too?

Offline

#9 2023-01-12 09:54:18

whyaname
Member
From: Netherlands
Registered: 2013-08-09
Posts: 25

Re: Enabling Mute Fn Key LED on HP Laptop

I ran the commands in the form as below for all values between 0x01 and 0x40, so replacing the values succeeding the MASK, DIR and DATA commands. Example command with output:   

sudo hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_MASK 0x04 && sudo hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_DIR 0x04 && sudo hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_DATA 0x04
nid = 0x1, verb = 0x716, param = 0x4
value = 0x0
nid = 0x1, verb = 0x717, param = 0x4
value = 0x0
nid = 0x1, verb = 0x715, param = 0x4
value = 0x0

0x04 did not turn on the LED of the mute key for me, and neither did any of the other values in case the commands above were correct.

In case needed my alsa-info output is also here: http://alsa-project.org/db/?f=fb4fd47e3 … a99d2d55d5

Offline

#10 2023-01-12 10:12:59

Sir_Potato
Member
Registered: 2023-01-12
Posts: 30

Re: Enabling Mute Fn Key LED on HP Laptop

According to your Codec grep:

whyaname wrote:
grep Codec /proc/asound/card*/codec*
/proc/asound/card0/codec#0:Codec: ATI R6xx HDMI
/proc/asound/card1/codec#0:Codec: Realtek ALC236

Your Realtek Chip is card 1 codec 0.

Try the following command:

sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_MASK 0x04 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DIR 0x04 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DATA 0x04

Maybe this will access the correct codec.
Again cycle through all 7 options

Last edited by Sir_Potato (2023-01-12 10:13:31)

Offline

#11 2023-01-12 10:19:07

whyaname
Member
From: Netherlands
Registered: 2013-08-09
Posts: 25

Re: Enabling Mute Fn Key LED on HP Laptop

Unfortunately none of the values turned on the LED.

❯ sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_MASK 0x04 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DIR 0x04 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DATA 0x04
nid = 0x1, verb = 0x716, param = 0x4
value = 0x0
nid = 0x1, verb = 0x717, param = 0x4
value = 0x0
nid = 0x1, verb = 0x715, param = 0x4
value = 0x0
❯ sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_MASK 0x01 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DIR 0x01 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DATA 0x01
nid = 0x1, verb = 0x716, param = 0x1
value = 0x0
nid = 0x1, verb = 0x717, param = 0x1
value = 0x0
nid = 0x1, verb = 0x715, param = 0x1
value = 0x0
❯ sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_MASK 0x02 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DIR 0x02 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DATA 0x02
nid = 0x1, verb = 0x716, param = 0x2
value = 0x0
nid = 0x1, verb = 0x717, param = 0x2
value = 0x0
nid = 0x1, verb = 0x715, param = 0x2
value = 0x0
❯ sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_MASK 0x08 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DIR 0x08 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DATA 0x08
nid = 0x1, verb = 0x716, param = 0x8
value = 0x0
nid = 0x1, verb = 0x717, param = 0x8
value = 0x0
nid = 0x1, verb = 0x715, param = 0x8
value = 0x0
❯ sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_MASK 0x10 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DIR 0x10 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DATA 0x10
nid = 0x1, verb = 0x716, param = 0x10
value = 0x0
nid = 0x1, verb = 0x717, param = 0x10
value = 0x0
nid = 0x1, verb = 0x715, param = 0x10
value = 0x0
❯ sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_MASK 0x20 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DIR 0x20 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DATA 0x20
nid = 0x1, verb = 0x716, param = 0x20
value = 0x0
nid = 0x1, verb = 0x717, param = 0x20
value = 0x0
nid = 0x1, verb = 0x715, param = 0x20
value = 0x0
❯ sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_MASK 0x40 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DIR 0x40 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DATA 0x40
nid = 0x1, verb = 0x716, param = 0x40
value = 0x0
nid = 0x1, verb = 0x717, param = 0x40
value = 0x0
nid = 0x1, verb = 0x715, param = 0x40
value = 0x0

Last edited by whyaname (2023-01-12 10:20:34)

Offline

#12 2023-01-12 10:27:45

Sir_Potato
Member
Registered: 2023-01-12
Posts: 30

Re: Enabling Mute Fn Key LED on HP Laptop

Alright then, final test:

Try setting the GPIO_DATA to 0. Sometimes the LEDs have inverted polarity.

Offline

#13 2023-01-12 10:32:31

whyaname
Member
From: Netherlands
Registered: 2013-08-09
Posts: 25

Re: Enabling Mute Fn Key LED on HP Laptop

So the same command as above with hwC1D0 0x00 for the SET_GPIO_DATA also doesn´t seem to work.

❯ sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_MASK 0x01 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DIR 0x01 && sudo hda-verb /dev/snd/hwC1D0 0x00 SET_GPIO_DATA 0x01
nid = 0x1, verb = 0x716, param = 0x1
value = 0x0
nid = 0x1, verb = 0x717, param = 0x1
value = 0x0
nid = 0x0, verb = 0x715, param = 0x1
value = 0x0
❯ sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_MASK 0x02 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DIR 0x02 && sudo hda-verb /dev/snd/hwC1D0 0x00 SET_GPIO_DATA 0x02
nid = 0x1, verb = 0x716, param = 0x2
value = 0x0
nid = 0x1, verb = 0x717, param = 0x2
value = 0x0
nid = 0x0, verb = 0x715, param = 0x2
value = 0x0
❯ sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_MASK 0x04 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DIR 0x04 && sudo hda-verb /dev/snd/hwC1D0 0x00 SET_GPIO_DATA 0x04
nid = 0x1, verb = 0x716, param = 0x4
value = 0x0
nid = 0x1, verb = 0x717, param = 0x4
value = 0x0
nid = 0x0, verb = 0x715, param = 0x4
value = 0x0
❯ sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_MASK 0x08 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DIR 0x08 && sudo hda-verb /dev/snd/hwC1D0 0x00 SET_GPIO_DATA 0x08
nid = 0x1, verb = 0x716, param = 0x8
value = 0x0
nid = 0x1, verb = 0x717, param = 0x8
value = 0x0
nid = 0x0, verb = 0x715, param = 0x8
value = 0x0
❯ sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_MASK 0x10 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DIR 0x10 && sudo hda-verb /dev/snd/hwC1D0 0x00 SET_GPIO_DATA 0x10
nid = 0x1, verb = 0x716, param = 0x10
value = 0x0
nid = 0x1, verb = 0x717, param = 0x10
value = 0x0
nid = 0x0, verb = 0x715, param = 0x10
value = 0x0
❯ sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_MASK 0x20 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DIR 0x20 && sudo hda-verb /dev/snd/hwC1D0 0x00 SET_GPIO_DATA 0x20
nid = 0x1, verb = 0x716, param = 0x20
value = 0x0
nid = 0x1, verb = 0x717, param = 0x20
value = 0x0
nid = 0x0, verb = 0x715, param = 0x20
value = 0x0
❯ sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_MASK 0x40 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DIR 0x40 && sudo hda-verb /dev/snd/hwC1D0 0x00 SET_GPIO_DATA 0x40
nid = 0x1, verb = 0x716, param = 0x40
value = 0x0
nid = 0x1, verb = 0x717, param = 0x40
value = 0x0
nid = 0x0, verb = 0x715, param = 0x40
value = 0x0

Offline

#14 2023-01-12 10:36:52

Sir_Potato
Member
Registered: 2023-01-12
Posts: 30

Re: Enabling Mute Fn Key LED on HP Laptop

Alright then, so it's not GPIO that controls your mute LED...

Time to move to other methods.
Try this:

sudo hda-verb /dev/snd/hwC1D0 0x20 0x500 0x34 && sudo hda-verb /dev/snd/hwC1D0 0x20 0x400 0x00  

Last edited by Sir_Potato (2023-01-12 10:37:06)

Offline

#15 2023-01-12 10:38:47

whyaname
Member
From: Netherlands
Registered: 2013-08-09
Posts: 25

Re: Enabling Mute Fn Key LED on HP Laptop

No update to the LED sad

❯ sudo hda-verb /dev/snd/hwC1D0 0x20 0x500 0x34 && sudo hda-verb /dev/snd/hwC1D0 0x20 0x400 0x00
nid = 0x20, verb = 0x500, param = 0x34
value = 0x0
nid = 0x20, verb = 0x400, param = 0x0
value = 0x0

Offline

#16 2023-01-12 10:40:13

Sir_Potato
Member
Registered: 2023-01-12
Posts: 30

Re: Enabling Mute Fn Key LED on HP Laptop

How about

sudo hda-verb /dev/snd/hwC1D0 0x20 0x500 0x34 && sudo hda-verb /dev/snd/hwC1D0 0x20 0x400 0x20

Offline

#17 2023-01-12 10:41:07

whyaname
Member
From: Netherlands
Registered: 2013-08-09
Posts: 25

Re: Enabling Mute Fn Key LED on HP Laptop

Also not sadly

❯ sudo hda-verb /dev/snd/hwC1D0 0x20 0x500 0x34 && sudo hda-verb /dev/snd/hwC1D0 0x20 0x400 0x20
nid = 0x20, verb = 0x500, param = 0x34
value = 0x0
nid = 0x20, verb = 0x400, param = 0x20
value = 0x0

Offline

#18 2023-01-12 10:43:03

Sir_Potato
Member
Registered: 2023-01-12
Posts: 30

Re: Enabling Mute Fn Key LED on HP Laptop

Damn...
And repeating everything with /dev/snd/hwC0D0 instead of /dev/snd/hwC1D0 probably won't help either.

Offline

#19 2023-01-12 11:04:15

Sir_Potato
Member
Registered: 2023-01-12
Posts: 30

Re: Enabling Mute Fn Key LED on HP Laptop

Ok, this is a total shot in the dark, but it worked on my laptop, though they have nothing in common.

sudo hda-verb /dev/snd/hwC1D0 0x20 0x500 0x0b && sudo hda-verb /dev/snd/hwC1D0 0x20 0x400 0x08

Offline

#20 2023-01-12 11:07:18

whyaname
Member
From: Netherlands
Registered: 2013-08-09
Posts: 25

Re: Enabling Mute Fn Key LED on HP Laptop

Firstly, thanks for all the effort so far. This one also did not manage to turn on the LED and for the suggestion of trying with hwC0D0, I will try that later and update it if changed anything.

❯ sudo hda-verb /dev/snd/hwC1D0 0x20 0x500 0x0b && sudo hda-verb /dev/snd/hwC1D0 0x20 0x400 0x08
nid = 0x20, verb = 0x500, param = 0xb
value = 0x0
nid = 0x20, verb = 0x400, param = 0x8
value = 0x0

Offline

#21 2023-01-12 13:08:41

Sir_Potato
Member
Registered: 2023-01-12
Posts: 30

Re: Enabling Mute Fn Key LED on HP Laptop

whyaname wrote:

So the same command as above with hwC1D0 0x00 for the SET_GPIO_DATA also doesn´t seem to work.

❯ sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_MASK 0x01 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DIR 0x01 && sudo hda-verb /dev/snd/hwC1D0 0x00 SET_GPIO_DATA 0x01
nid = 0x1, verb = 0x716, param = 0x1
value = 0x0
nid = 0x1, verb = 0x717, param = 0x1
value = 0x0
nid = 0x0, verb = 0x715, param = 0x1
value = 0x0
❯ sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_MASK 0x02 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DIR 0x02 && sudo hda-verb /dev/snd/hwC1D0 0x00 SET_GPIO_DATA 0x02
nid = 0x1, verb = 0x716, param = 0x2
value = 0x0
nid = 0x1, verb = 0x717, param = 0x2
value = 0x0
nid = 0x0, verb = 0x715, param = 0x2
value = 0x0
❯ sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_MASK 0x04 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DIR 0x04 && sudo hda-verb /dev/snd/hwC1D0 0x00 SET_GPIO_DATA 0x04
nid = 0x1, verb = 0x716, param = 0x4
value = 0x0
nid = 0x1, verb = 0x717, param = 0x4
value = 0x0
nid = 0x0, verb = 0x715, param = 0x4
value = 0x0
❯ sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_MASK 0x08 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DIR 0x08 && sudo hda-verb /dev/snd/hwC1D0 0x00 SET_GPIO_DATA 0x08
nid = 0x1, verb = 0x716, param = 0x8
value = 0x0
nid = 0x1, verb = 0x717, param = 0x8
value = 0x0
nid = 0x0, verb = 0x715, param = 0x8
value = 0x0
❯ sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_MASK 0x10 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DIR 0x10 && sudo hda-verb /dev/snd/hwC1D0 0x00 SET_GPIO_DATA 0x10
nid = 0x1, verb = 0x716, param = 0x10
value = 0x0
nid = 0x1, verb = 0x717, param = 0x10
value = 0x0
nid = 0x0, verb = 0x715, param = 0x10
value = 0x0
❯ sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_MASK 0x20 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DIR 0x20 && sudo hda-verb /dev/snd/hwC1D0 0x00 SET_GPIO_DATA 0x20
nid = 0x1, verb = 0x716, param = 0x20
value = 0x0
nid = 0x1, verb = 0x717, param = 0x20
value = 0x0
nid = 0x0, verb = 0x715, param = 0x20
value = 0x0
❯ sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_MASK 0x40 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DIR 0x40 && sudo hda-verb /dev/snd/hwC1D0 0x00 SET_GPIO_DATA 0x40
nid = 0x1, verb = 0x716, param = 0x40
value = 0x0
nid = 0x1, verb = 0x717, param = 0x40
value = 0x0
nid = 0x0, verb = 0x715, param = 0x40
value = 0x0

I just realized, that you made a mistake here. You are supposed to set the GPIO_DATA to 0x00. You have set the NID to 0x00:
So the last command should be:

 sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DATA 0x00

The NID 0x01 defines GPIO. The number following the SET_GPIO command is the value to be set.

Offline

#22 2023-01-13 07:56:18

whyaname
Member
From: Netherlands
Registered: 2013-08-09
Posts: 25

Re: Enabling Mute Fn Key LED on HP Laptop

I see, this should hopefully be the correct set of commands then? By fixing the nid to 0x01 and only changing the MASK and DIR values (DATA always 0x00). It still did not manage to turn on the LED.

❯ sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_MASK 0x01 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DIR 0x01 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DATA 0x00
nid = 0x1, verb = 0x716, param = 0x1
value = 0x0
nid = 0x1, verb = 0x717, param = 0x1
value = 0x0
nid = 0x1, verb = 0x715, param = 0x0
value = 0x0
❯ sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_MASK 0x02 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DIR 0x02 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DATA 0x00
nid = 0x1, verb = 0x716, param = 0x2
value = 0x0
nid = 0x1, verb = 0x717, param = 0x2
value = 0x0
nid = 0x1, verb = 0x715, param = 0x0
value = 0x0
❯ sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_MASK 0x04 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DIR 0x04 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DATA 0x00
nid = 0x1, verb = 0x716, param = 0x4
value = 0x0
nid = 0x1, verb = 0x717, param = 0x4
value = 0x0
nid = 0x1, verb = 0x715, param = 0x0
value = 0x0
❯ sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_MASK 0x08 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DIR 0x08 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DATA 0x00
nid = 0x1, verb = 0x716, param = 0x8
value = 0x0
nid = 0x1, verb = 0x717, param = 0x8
value = 0x0
nid = 0x1, verb = 0x715, param = 0x0
value = 0x0
❯ sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_MASK 0x10 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DIR 0x10 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DATA 0x00
nid = 0x1, verb = 0x716, param = 0x10
value = 0x0
nid = 0x1, verb = 0x717, param = 0x10
value = 0x0
nid = 0x1, verb = 0x715, param = 0x0
value = 0x0
❯ sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_MASK 0x20 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DIR 0x20 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DATA 0x00

nid = 0x1, verb = 0x716, param = 0x20
value = 0x0
nid = 0x1, verb = 0x717, param = 0x20
value = 0x0
nid = 0x1, verb = 0x715, param = 0x0
value = 0x0
❯ sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_MASK 0x40 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DIR 0x40 && sudo hda-verb /dev/snd/hwC1D0 0x01 SET_GPIO_DATA 0x00
nid = 0x1, verb = 0x716, param = 0x40
value = 0x0
nid = 0x1, verb = 0x717, param = 0x40
value = 0x0
nid = 0x1, verb = 0x715, param = 0x0
value = 0x0

Offline

#23 2023-01-13 08:25:17

whyaname
Member
From: Netherlands
Registered: 2013-08-09
Posts: 25

Re: Enabling Mute Fn Key LED on HP Laptop

Don´t know if this helps but I do see a Mic ACP LED in alsamixer (after alsactl restore) but toggling this in alsamixer just changes it to capture LR state.
Here is the link to show what I mean: https://imgur.com/a/O6hDeEA

Offline

#24 2023-01-13 08:25:46

Sir_Potato
Member
Registered: 2023-01-12
Posts: 30

Re: Enabling Mute Fn Key LED on HP Laptop

Yes, these are the correct commands.
But it's very unfortunate that we still haven't found the working ones.
I'll have to do some more research to find out which other possible commands are used for the ALC236 Codec.
Maybe there are some bugzilla threads, where possible solutions are discussed.

Have you tried these commands with /dev/snd/HWC0D0?

Last edited by Sir_Potato (2023-01-13 14:08:08)

Offline

#25 2023-01-13 08:45:11

Sir_Potato
Member
Registered: 2023-01-12
Posts: 30

Re: Enabling Mute Fn Key LED on HP Laptop

whyaname wrote:

Don´t know if this helps but I do see a Mic ACP LED in alsamixer (after alsactl restore) but toggling this in alsamixer just changes it to capture LR state.
Here is the link to show what I mean: https://imgur.com/a/O6hDeEA

Interesting.
Do you by any chance still have a model enabled for snd_hda_Intel in your /etc/modprobe.d?

Do you even have a Mic Mute LED?

Offline

Board footer

Powered by FluxBB