{"id":45911779,"url":"https://github.com/hello2himel/linux-audio-fix","last_synced_at":"2026-07-03T16:01:15.359Z","repository":{"id":210049894,"uuid":"725584973","full_name":"hello2himel/linux-audio-fix","owner":"hello2himel","description":"Fix audio issue in Linux based operating systems. Realtek Audio Fix.","archived":false,"fork":false,"pushed_at":"2025-04-01T07:55:04.000Z","size":31396,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T08:40:29.874Z","etag":null,"topics":["arch-audio-fix","fedora-audio-fix","linux-audio","linux-audio-fix","linux-audio-scripts","realtek-audio-fix","ubuntu-audio","ubuntu-audio-fix"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hello2himel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-30T13:04:44.000Z","updated_at":"2025-04-01T07:55:07.000Z","dependencies_parsed_at":"2023-12-03T05:26:15.319Z","dependency_job_id":"2d778d8f-b756-4bc0-8f3f-4cb6fa38c9f0","html_url":"https://github.com/hello2himel/linux-audio-fix","commit_stats":null,"previous_names":["hello2himel/linux-audio-fix"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hello2himel/linux-audio-fix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hello2himel%2Flinux-audio-fix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hello2himel%2Flinux-audio-fix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hello2himel%2Flinux-audio-fix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hello2himel%2Flinux-audio-fix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hello2himel","download_url":"https://codeload.github.com/hello2himel/linux-audio-fix/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hello2himel%2Flinux-audio-fix/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35092185,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-03T02:00:05.635Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arch-audio-fix","fedora-audio-fix","linux-audio","linux-audio-fix","linux-audio-scripts","realtek-audio-fix","ubuntu-audio","ubuntu-audio-fix"],"created_at":"2026-02-28T07:00:27.285Z","updated_at":"2026-07-03T16:01:15.351Z","avatar_url":"https://github.com/hello2himel.png","language":"Shell","funding_links":[],"categories":["others"],"sub_categories":[],"readme":"# Linux Audio Fix\n\nThis repository provides a script to help you fix issues with Realtek audio drivers in Linux. There are two methods to resolve the issue: an automated method and a manual method.\n\n## 1. Automated Method\n\nThe automated method allows you to fix the issue by simply running a script. Follow these steps:\n\n### Step-by-Step:\n\n1. **Clone the repository:**\n   ```bash\n   git clone https://github.com/hello2himel/linux-audio-fix.git\n   ```\n\n2. **Navigate to the cloned directory:**\n   ```bash\n   cd linux-audio-fix\n   ```\n\n3. **Give execute permission to the script:**\n   ```bash\n   chmod +x AudioFix.sh\n   ```\n\n4. **Run the script:**\n   ```bash\n   ./AudioFix.sh\n   ```\n\nThe script will automatically install the necessary tools, detect the Realtek chip, disable auto-mute, run `hda-verb` commands, and reboot your system.\n\n---\n\n## 2. Manual Method\n\nIf the automated method does not resolve your issue, you can follow the manual process below to fix your Realtek audio drivers.\n\n### Step-by-Step:\n\n1. **Update Your Motherboard BIOS:**\n   Ensure that your motherboard BIOS is updated to the latest version. Check your motherboard manufacturer's website for the latest BIOS update instructions.\n\n2. **Install alsa-utils (if not already installed):**\n   Open your terminal and type the following command to install `alsa-utils`. For Arch-based systems, use:\n   ```bash\n   sudo pacman -S alsa-utils\n   ```\n\n   For other distributions like Ubuntu/Fedora, `alsa-utils` might already be installed.\n\n3. **Launch alsamixer:**\n   In your terminal, type `alsamixer` and press Enter. If the terminal doesn't detect the command, ensure that `alsa-utils` is installed.\n\n4. **Select the Realtek Sound Card:**\n   - After launching `alsamixer` in your terminal, press `F6` to open the **\"Select Sound Card\"** menu.\n   - You will see a list of available sound cards. The names may appear generic, such as **\"HD-Audio Generic\"** or similar, depending on your system's configuration.\n   - Use the **arrow keys** to navigate through the list of sound cards. Once you highlight a card, press **Enter** to select it.\n   - After selecting a card, if it's a Realtek chip, you'll see its details in the new menu (such as **ALC897**, **ALC1220**, etc.). This confirms that you have selected the correct Realtek sound card.\n\n   If the selected card is not a Realtek chip, you may need to check the system's audio hardware to ensure the correct card is selected.\n\n   **Here’s a tutorial showing how to disable Auto-Mute:**\n\n   ![Disable Auto-Mute](res/disableAutomute.gif)\n\n5. **Disable Auto-Mute:**\n   Using the arrow keys, navigate to the **Auto-Mute** option on the right side and disable it by pressing the `UP/DOWN` arrow keys. Press `ESC` to exit `alsamixer`.\n\n6. **Install hda-verb (if not already installed):**\n   You need to install `hda-verb` to run specific commands. Install it using the following commands:\n\n   For **Debian/Ubuntu/Raspbian/Kali Linux**:\n   ```bash\n   sudo apt-get install alsa-tools\n   ```\n\n   For **Arch Linux**:\n   ```bash\n   sudo pacman -S alsa-tools\n   ```\n\n   For **Fedora**:\n   ```bash\n   sudo dnf install alsa-tools\n   ```\n\n7. **Run the following `hda-verb` commands:**\n   These commands modify audio configurations:\n   ```bash\n   sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x1b\n   sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x4a4b\n   sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0xf\n   sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x74\n   ```\n\n8. **Reboot Your System:**\n   After executing the commands, reboot your system to apply the changes:\n   ```bash\n   sudo reboot\n   ```\n\n---\n\n## Tools Used\n\n### 1. **Git**\n   Git is used to clone the repository onto your system. This allows you to download the necessary scripts and files directly from the source repository.\n\n   **Command:**\n   ```bash\n   git clone https://github.com/hello2himel/linux-audio-fix.git\n   ```\n\n### 2. **chmod**\n   The `chmod` command is used to change the permissions of the `AudioFix.sh` script, allowing it to be executed.\n\n   **Command:**\n   ```bash\n   chmod +x AudioFix.sh\n   ```\n\n### 3. **alsamixer**\n   `alsamixer` is a terminal-based utility to control the volume and settings of your sound card on Linux. We use it to disable the auto-mute function, which is known to cause audio issues with some Realtek sound chips.\n\n   **Command:**\n   ```bash\n   alsamixer\n   ```\n\n### 4. **hda-verb**\n   `hda-verb` is a tool used to send specific commands to the audio hardware via the `hda` driver. It helps in fine-tuning the audio driver settings, which can help resolve issues like no sound or mic problems.\n\n   **Commands:**\n   ```bash\n   sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x1b\n   sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x4a4b\n   sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0xf\n   sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x74\n   ```\n\n---\n\n## FAQ\n\n### 1. **Why should I update my motherboard BIOS?**\n   Updating your motherboard BIOS can fix compatibility issues with various hardware, including sound cards. A new BIOS version may have improvements or fixes related to your Realtek sound card.\n\n### 2. **What if `alsamixer` does not detect my sound card?**\n   If `alsamixer` doesn't detect your sound card, ensure that `alsa-utils` is properly installed. You can try reinstalling it.\n### 3. **What if the automated script does not work?**\n   If the automated script does not fix the issue, try following the manual method. The manual method involves more direct control over your system's audio settings, including disabling auto-mute and running `hda-verb` commands.\n\n### 4. **Do I need to run `hda-verb` commands every time I reboot?**\n   No, after successfully running the `hda-verb` commands and rebooting your system, the changes should persist. You shouldn't need to run them again unless there's a system update or other issue that causes the settings to reset.\n\n### 5. **Can I use this fix on any Linux distribution?**\n   Yes, this fix should work on most Linux distributions that use the ALSA sound system, such as Ubuntu, Fedora, and Arch Linux. You may need to adjust some commands depending on your distro's package manager.\n\n---\n\n## Conclusion\n\nIf the automated method doesn't work for you, follow the manual steps to resolve the issue. By disabling auto-mute and running `hda-verb` commands, you should be able to fix the Realtek audio driver issue on Linux.\n\n---","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhello2himel%2Flinux-audio-fix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhello2himel%2Flinux-audio-fix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhello2himel%2Flinux-audio-fix/lists"}