Theme editor

Guide Linux Guide to Changing Default Audio Output on Linux Startup 2025

  • Thread starter Thread starter CL4Y
  • Start date Start date
  • Views 182

CL4Y

Keyboard Ninja
Administrator
Thread owner

Guide to Changing Default Audio Output on Linux Startup 2025 🔊

Sometimes on Linux systems, you may notice that every time you start your computer, the audio output device is not automatically set to your preferred device. This can be especially annoying for those using external speakers or headphones. In this guide, I will explain how to permanently fix this issue with just a few simple steps.



Step 1: Check Sound Settings

First, let's check the current audio output devices on your system. Go to Settings > Sound. In the Output tab, select the speaker or headphones you want to use and check if sound is coming through.

jetto-linux-sound-fix-1.gif




Step 2: Find the Default Device Name

Now, to set this device as the default on your system, we need to find the exact name of the device. Open the terminal and run the following command:
Bash:
pactl list short sinks

jetto-linux-sound-fix-2.gif


This command will list all audio output devices on your system along with their names. Copy the name of the device you want to use. In my example, the name I copied was alsa_output.usb-Solid_State_System_Co._Ltd._PUSAT_7.1_HEADSET_LITE_000000000000-00.iec958-stereo. Your system will show a different name.



Step 3: Add Command to Startup Applications

As the final step, we need to make sure this command runs automatically every time your computer starts. Open the "Startup Applications" tool and click the Add button.

In the window that opens:
  • Name: Enter any name you like. For example: "Default Audio Setting".
  • Command: Here, write the following command using the device name you copied:
Bash:
pactl set-default-sink alsa_output.usb-Solid_State_System_Co._Ltd._PUSAT_7.1_HEADSET_LITE_000000000000-00.iec958-stereo

Don't forget to replace the alsa_output.usb-Solid_State_System_Co._Ltd._PUSAT_7.1_HEADSET_LITE_000000000000-00.iec958-stereo part with the device name you found on your own system. To finish, click the Add button.

jetto-linux-sound-fix-3.gif
 
Thread owner
Now, every time you restart your computer, your audio output will automatically be set to your preferred device, eliminating the need for manual adjustment.
 
Back
Top