What makes us different from other similar websites? › Forums › Tech › ASUS UX582L [Linux, No Audio, Fixed] › Reply To: ASUS UX582L [Linux, No Audio, Fixed]
November 3, 2025 at 5:25 pm
#8250
Moderator
My device name recently changed. This is the fix for me.
1. Check device name:
$ cat /proc/asound/cards
2. If you device name is “hwC1D0”, change nothing in the following script. If it isn’t, make sure the script uses the correct device name.
3. Full script with hwC1Do device name:
#!/bin/bash
# Script to apply hda-verb commands to the HDA Intel PCH device,
# which may have a variable card number (C0, C1, etc.) after a reboot.
# --- 1. FIND THE CORRECT DEVICE ---
# Search /proc/asound/cards for "HDA Intel PCH" and precisely extract its card number (e.g., '1').
# The -P flag enables Perl-compatible regex for lookbehind to match the number without the space.
CARD_NUM=$(cat /proc/asound/cards | grep 'HDA Intel PCH' | grep -oP '^\s*\K\d+')
# Check if the card number was found
if [ -z "$CARD_NUM" ]; then
echo "ERROR: HDA Intel PCH card not found in /proc/asound/cards." >&2
exit 1
fi
# Construct the full device path
# The D0 is correct for the first device on the card.
HDA_DEV="/dev/snd/hwC${CARD_NUM}D0"
# Check if the device file exists
if [ ! -e "$HDA_DEV" ]; then
echo "ERROR: Device file $HDA_DEV does not exist. Check permissions or driver status." >&2
exit 1
fi
echo "Found HDA Intel PCH at Card $CARD_NUM. Corrected device path: $HDA_DEV"
echo "Applying hda-verb commands..."
echo "---"
# --- 2. APPLY THE VERBS ---
sudo hda-verb "$HDA_DEV" 0x20 0x500 0x1b
sudo hda-verb "$HDA_DEV" 0x20 0x477 0x4a4b
sudo hda-verb "$HDA_DEV" 0x20 0x500 0xf
sudo hda-verb "$HDA_DEV" 0x20 0x477 0x74
echo "---"
echo "All commands executed successfully on $HDA_DEV."
