User:Rustmilian/subpage
This page describes the process to with one can create a Kernel patch for HP Laptop LED issues.
Installation
Install the alsa-tools and alsa-utils package.
You can also use the hw-probeAUR instead of alsa-utils.
Gathering the necessary info
The command below will help identify the codec of your sound card, needed for choosing the correct FIXUP enum.
$ grep Codec /proc/asound/card*/codec*
Example output :
/proc/asound/card0/codec#0:Codec: ATI R6xx HDMI /proc/asound/card1/codec#0:Codec: Realtek ALC236
As you see in the example output the Codec is ALC236; see FIXUP_Enum_Table
Brute Force Script
#!/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
FIXUP Enum Table
In The Below table are the possible FIXUP enum options for each codec.
HP | |
---|---|
Codec | FIXUP Enum |
ALC236 |
ALC236_FIXUP_HP_MUTE_LED_COEFBIT2 |
ALC285 |
ALC285_FIXUP_HP_GPIO_LED |
ALC269 |
ALC269_FIXUP_HP_MUTE_LED |