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 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7998
    thumbtak
    Keymaster

    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 3 months ago by thumbtak. Reason: Added how to fix low volume
    #8058
    thumbtak
    Keymaster

    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 2 weeks, 5 days ago by thumbtak. Reason: Fixed the commands
    • This reply was modified 2 weeks, 5 days ago by thumbtak. Reason: Fixed the first line
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
TAKs Shack