loader image

ASUS UX582L [Linux, No Audio, Fixed]

What makes us different from other similar websites? Forums Tech ASUS UX582L [Linux, No Audio, Fixed]

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #7998
    thumbtak
    Moderator

    Go to:
    https://fedoraproject.org/workstation/download

    Copy Link:

    Goto:

    https://etcher.balena.io/

    Open:

    balenaEtcher

    Do the following:

    Note:

    Verification might fail. This is the last step. Ignore this.

    Next:

    Unmount the USB drive.

    Next:

    Try the live version of Fedora

    Next:

    Open terminal and run the following commands.

    $ sudo dnf install alsa-tools
    
    $ sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x1b
    
    $ sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x4a4b
    
    $ sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0xf
    
    $ sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x74
    
    $ sudo dnf install pavucontrol

    Run the following command:

    $ pavucontrol

    Next:

    Next:

    Goto https://www.onlinemictest.com/sound-test/

    Note:

    If you hear sound, the driver is working. You can now proceed with installing Fedora.

    After you finish installing Fedora:

    We need to make sound work on each reboot.

    How to make the commands run on each system start:

    $ sudo dnf install mousepad
    
    $ sudo mousepad /usr/local/bin/audio_fix.sh

    Save the following text in the blank file:

    #!/bin/bash
    sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x1b
    sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x4a4b
    sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0xf
    sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x74

    Note:

    Save the file.

    Make the script executable:

    $ sudo chmod +x /usr/local/bin/audio_fix.sh

     Create a systemd Service File:

    $ sudo mousepad /etc/systemd/system/audio_fix.service

    Save the following text in the blank file:

    [Unit]
    Description=Audio Fix at Startup
    After=sound.target
    
    [Service]
    Type=oneshot
    ExecStart=/usr/local/bin/audio_fix.sh
    RemainAfterExit=yes
    
    [Install]
    WantedBy=multi-user.target

    Note:

    Save the file.

    Next:

    $ sudo reboot

    Note:
    You should now have audio on each reboot.

    If you experience low volume, run the following command:

    $ alsamixer

    F6 => Select “HDA Intel PCH” => Adjust Master Volume

    • This topic was modified 8 months, 1 week ago by thumbtak. Reason: Added how to fix low volume
    #8058
    thumbtak
    Moderator

    If you find that the sound doesn’t work after a boot, or reboot, do the following.

    Create a service file: Create a new file in /etc/systemd/system/ (e.g., hda-fix.service).

    $ sudo mousepad /etc/systemd/system/hda-fix.service

    Add the service configuration: Paste the following content into the file. The ExecStart lines will execute your commands.

    [Unit]
    Description=HDA-verb commands for audio fix
    After=sound.target
    
    [Service]
    Type=oneshot
    ExecStart=/usr/bin/hda-verb /dev/snd/hwC0D0 0x20 0x500 0x1b
    ExecStart=/usr/bin/hda-verb /dev/snd/hwC0D0 0x20 0x477 0x4a4b
    ExecStart=/usr/bin/hda-verb /dev/snd/hwC0D0 0x20 0x500 0xf
    ExecStart=/usr/bin/hda-verb /dev/snd/hwC0D0 0x20 0x477 0x74
    
    [Install]
    WantedBy=multi-user.target

    Note: I’ve assumed /usr/bin/hda-verb is the correct path. You might need to verify this with which hda-verb.

    Reload systemd and enable the service:

    $ sudo systemctl daemon-reload
    $ sudo systemctl enable hda-fix.service

    Start the service now (optional, to test it):

    $ sudo systemctl start hda-fix.service

    • This reply was modified 5 months, 3 weeks ago by thumbtak. Reason: Fixed the commands
    • This reply was modified 5 months, 3 weeks ago by thumbtak. Reason: Fixed the first line
    #8250
    thumbtak
    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."
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
TAKs Shack
Wishing you and yours a very happy Thanksgiving!
This is default text for notification bar