Galaxy Book Pro’s Internal Speaker Audio Issue repair: Fixing Silent Speakers on Fedora Using an HDA Verb Script

Galaxy Book Pro’s Internal Speaker Audio Issue repair: Fixing Silent Speakers on Fedora Using an HDA Verb Script

This information walks you thru each step—from putting in required instruments, downloading the script, configuring systemd, and testing your audio system—to make sure your inner audio system are appropriately initialized at boot.

Issue: The Samsung Galaxy Book Pro/Pro 360 collection with Realtek ALC298 codec has silent inner audio system on Linux. The codec is detected, and headphones/Bluetooth audio work, however the built-in audio system get no sound output. This is a recognized problem: the audio driver isn’t initializing the onboard speaker amplifier by default​.

DISCLAIMER 1
Please observe that this can be a workaround that labored for me after months of analysis and trial and error, and with steerage from numerous linux fans, and I’ve tried compiling it in a single doc. You can discover my system specification on the backside of this weblog.

DISCLAIMER 2
The data and directions supplied on this information are supplied "as-is" with none guarantee, categorical or implied. The steps described, together with modifications to system configurations and the usage of HDA verb scripts, are supplied for academic functions solely. Please again up your knowledge and create system restore factors or snapshots earlier than making any adjustments to your system. The writer(s) and writer(s) of this information aren’t liable for any injury, knowledge loss, or different points that will come up from the usage of this data. Use these directions at your individual danger. Always seek the advice of your system’s documentation or search skilled recommendation if you’re unsure about any step within the course of.

1. Installing Required Tools

Purpose:

We wanted the ALSA utilities (which embody hda-verb) to ship low-level instructions to the Realtek ALC298 codec, thereby initializing the interior amplifier.

Action:

Open a terminal and run:

sudo dnf set up alsa-tools

What This Does:

This command installs the alsa-tools package deal on Fedora, offering the hda-verb utility that we’ll use later in our initialization script.

2. Downloading the Speaker Initialization Script

Purpose:

A community-maintained script, named necessary-verbs.sh, accommodates the right sequence of HDA verb instructions that mimics the initialization carried out by the Windows driver. This prompts the interior speaker amplifier.

Action:

Run the next command in your terminal:

wget https://uncooked.githubusercontent.com/joshuagrisham/galaxy-book2-pro-linux/principal/sound/necessary-verbs.sh -O ~/necessary-verbs.sh

What This Does:

This command downloads the script from GitHub and saves it as necessary-verbs.sh in your house listing.

3. Installing the Script in a System Location

Purpose:

Moving the script to a system-wide listing ensures it stays out there throughout reboots and for all system customers.

Actions:

  1. Move the Script:
   sudo mv ~/necessary-verbs.sh /usr/native/sbin/necessary-verbs.sh
  1. Make It Executable:
   sudo chmod +x /usr/native/sbin/necessary-verbs.sh
  1. Verify:
   ls -l /usr/native/sbin/necessary-verbs.sh

You ought to see permissions much like:

   -rwxr-xr-x 1 saif-linux saif-linux 21298 Mar 15 23:44 /usr/native/sbin/necessary-verbs.sh

What This Does:

  • The script is moved to /usr/native/sbin/, a standard listing for system executables.
  • The executable flag (+x) is about in order that the script can run correctly.

4. Creating a systemd Service to Run the Script at Boot

Purpose:

We need the script to run routinely at each boot, initializing the interior speaker amplifier with out guide intervention.

Actions:

  1. Create the Service File:

Open a textual content editor with:

   sudo nano /and so forth/systemd/system/speaker-init.service
  1. Paste the Following Content:
   [Unit]
   Description=Initialize Galaxy Book Speaker Amp at boot
   After=multi-user.goal

   [Service]
   Type=oneshot
   ExecStart=/usr/native/sbin/necessary-verbs.sh
   StayAfterExit=sure

   [Install]
   WishedBy=multi-user.goal
  1. Save and Exit:
    In nano, press Ctrl+O then Enter to save lots of, and Ctrl+X to exit.

What This Does:

  • Description: Provides an outline of the service’s goal.
  • After=multi-user.goal: Ensures the service runs after most system companies have began.
  • Type=oneshot: Runs the script as soon as throughout boot.
  • ExecStart: Specifies the trail to the script.
  • StayAfterExit=sure: Tells systemd to think about the service energetic even after the script completes.
  • WishedBy=multi-user.goal: Integrates the service into the usual boot course of.

5. Enabling and Starting the systemd Service

Purpose:

To register the service with systemd in order that it runs routinely at boot, and to check it instantly.

Actions:

  1. Reload systemd to Recognize the New Service:
   sudo systemctl daemon-reload
  1. Enable the Service (for future boots):
   sudo systemctl allow speaker-init.service
  • This creates a symlink to make sure the service begins at each boot.
  1. Start the Service Immediately:
   sudo systemctl begin speaker-init.service
  1. Check Service Status:
   sudo systemctl standing speaker-init.service
  • Note: Since this can be a oneshot service, its standing will present as “inactive (useless)” after it completes. This is regular if the script executed efficiently.
  1. Review Logs (Optional):
   sudo journalctl -u speaker-init.service
  • You can examine these logs for any potential errors or affirmation messages.

6. Testing Your Internal Speakers

Purpose:

Ensure that the initialization script efficiently activated the interior speaker amplifier.

Actions:

  1. Verify Audio Output Settings:

    • Open GNOME Settings or run pavucontrol to verify that “Internal Speakers” is chosen because the default output gadget.
  2. Run an Audio Test:

    Execute:

   speaker-test -t wav -c 2
  • You ought to hear alternating take a look at sounds on the left and proper audio system.
  • Alternatively, play a media file utilizing your most popular media participant.

7. (Optional) Configuring for Suspend/Resume

Purpose:

Some programs might lose the speaker configuration after suspending. Setting up a further service can re-run the initialization script upon resume.

Actions:

  1. Create a New Service File:
   sudo nano /and so forth/systemd/system/speaker-init-resume.service
  1. Paste the Following Content:
   [Unit]
   Description=Reinitialize Galaxy Book Speaker Amp on resume
   After=droop.goal

   [Service]
   Type=oneshot
   ExecStart=/usr/native/sbin/necessary-verbs.sh

   [Install]
   WishedBy=droop.goal
  1. Save and Exit:

    Save the file and exit the textual content editor.

  2. Reload and Enable the Service:

   sudo systemctl daemon-reload
   sudo systemctl allow speaker-init-resume.service
  • This ensures that the script runs every time the system resumes from droop.

8. Final Verification and Troubleshooting

  1. Double-check Audio Output:

    Ensure that your system’s sound settings are appropriately configured to make use of the interior audio system.

  2. Review the Service Logs:

    Run:

   sudo journalctl -u speaker-init.service

Look for affirmation that the script executed appropriately.

  1. Test After a Reboot:
    Reboot your laptop with:
   sudo reboot

After rebooting, run your speaker take a look at once more to make sure the service auto-executes.

  1. Manually Run the Script for Debugging (Optional):
    If vital, run:
   sudo /usr/native/sbin/necessary-verbs.sh

Check for any error messages or points. You also can add echo statements within the script to get extra detailed output throughout debugging.

Conclusion

By following these detailed steps, you’ve got efficiently:

  • Installed the required ALSA instruments.
  • Downloaded and put in a community-tested HDA verb script.
  • Configured a systemd service to routinely run the script at boot.
  • Verified that the script initializes your inner audio system.
  • Optionally arrange a resume service to reinitialize the audio system after droop.

This workaround successfully replicates the lacking initialization sequence to your Realtek ALC298 codec, permitting your inner audio system to operate as meant. Enjoy your now absolutely operational inner audio setup!

Below talked about are my system specs

Hardware Information:

  • Hardware Model: SAMSUNG ELECTRONICS CO., LTD. 950QED
  • Memory: 16.0 GiB
  • Processor: twelfth Gen Intel® Core™ i7-1260P × 16
  • Graphics: Intel® Iris® Xe Graphics (ADL GT2)
  • Disk Capacity: (null)

Software Information:

  • Firmware Version: P11AKK.750.240404.SH
  • OS Name: Fedora Linux 41 (Workstation Edition)
  • OS Build: (null)
  • OS Type: 64-bit
  • GNOME Version: 47
  • Windowing System: Wayland
  • Kernel Version: Linux 6.13.6-200.fc41.x86_64

Hope this text was useful! I’ve closely use ChatGPT to border this weblog.

Thanks for studying!

HI-FI News

through DEV Community https://dev.to

March 15, 2025 at 08:22PM