You are not logged in.

#26 2023-01-14 09:07:43

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

Re: Enabling Mute Fn Key LED on HP Laptop

I have no models enabled for snd_hda_intel in modprobe.d. I am not completely sure if the Mic Mute (as the name implies) is for the mic status but the LED is supposed to show the audio output mute status. There are no other LEDs (except caps lock). Maybe the LED is being registered as a mic status LED and then muting the system does not toggle it? (but then again muting the digital microphone also doesn´t toggle it)

Also found this link that maybe is specific to Ubuntu but deals with the same codec: https://bugs.launchpad.net/ubuntu/+sour … ug/1884251

Last edited by whyaname (2023-01-14 09:10:00)

Offline

#27 2023-01-15 14:16:20

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

Re: Enabling Mute Fn Key LED on HP Laptop

Alright, I've come up with a (frankly not very elegant) brute-force solution:

#!/bin/bash

read -p "What's your sound card? Form /dev/snd/hwCxDx": card

echo "Testing GPIO pins, polarity 0"
for i in 0x01 0x02 0x04 0x08 0x10 0x20 0x40;
do
  sudo hda-verb $card 0x01 0x716 $i
  sudo hda-verb $card 0x01 0x717 $i
  sudo hda-verb $card 0x01 0x715 $i
  sleep 0.2
done
echo "Testing GPIO pins, polarity 1"
for i in 0x01 0x02 0x04 0x08 0x10 0x20 0x40;
do
  sudo hda-verb $card 0x01 0x716 $i 
  sudo hda-verb $card 0x01 0x717 $i
  sudo hda-verb $card 0x01 0x715 0x00
  sleep 0.2
done
echo "Testing COEF and INDEX"
start=0x1
end=0xff
for (( i=$start; i <=$end; ++i)); 
do
  for j in 0x1 0x2 0x4 0x8 0x10 0x20 0x40 0x80 0x100 0x200 0x400 0x800 0x1000 0x2000 0x4000 0x8000;
  do
    sudo hda-verb $card 0x20 0x500 $i
    sudo hda-verb $card 0x20 0x400 $j
    sleep 0.2
  done
done

This bash script will test all possible inputs (at least all the ones I think are possible).
You can basically put this in a bash file and run it.
While the script is running, you have to be ready to stop it the moment your LED turns on. So you start the script and wait with your fingers over Ctrl-C.
Each combination will be tested for 0.2 seconds, so you have to be quick about it. There are a lot of possible combinations.
14 GPIO and 4096 COEF commands to be exact. Depending in your case, it could take up to 14 minutes.
If you want, you can change the sleep value to decrease the time, but it will make reacting harder.

Then, when you found the combination that works to turn on your LED we can determine the one which turns it back off.

One important thing: This script will temporarily change basically your entire soundcard configuration. There will be crackling and plopping sounds coming from your speakers. But don't worry, after a system restart everything should go back to normal.

If you are unsure what command turned your LED on, post the console output generated when your LED turned on.

Last edited by Sir_Potato (2023-01-15 14:19:00)

Offline

#28 2023-01-16 18:08:14

andy0
Member
Registered: 2023-01-16
Posts: 1

Re: Enabling Mute Fn Key LED on HP Laptop

Offline

#29 2023-01-17 06:56:09

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

Re: Enabling Mute Fn Key LED on HP Laptop

The script also did not turn the LED on (as far as I saw). I also found this ArchWiki article that says the Mute LED is just broken on these systems ( https://wiki.archlinux.org/title/Laptop/HP -> HP 15s-eq1124nw). Mine is the eq2xxx but I imagine its similar. Thanks for all the help so far.

Last edited by whyaname (2023-01-17 06:56:34)

Offline

Board footer

Powered by FluxBB