Laptop's speakers sound bad. Poor sound quality

by Nat Azodnem   Last Updated January 11, 2019 12:02 PM

Problem: laptop's speakers sound quality is much worse than in windows. How to address this issue in Ubuntu 18.04?

Answers 1

According to and

We have to do some manual settings editing on pulse audio config. The path is /etc/pulse/daemon.conf. Open a terminal by pressing ctl + alt + c. First of all, backup the configuration file:

sudo cp /etc/pulse/daemon.conf /etc/pulse/daemon.conf.backup

Then type sudo nano /etc/pulse/daemon.conf

(If your file is empty, it means the file you are looking for is not in this directory. In this case, try to locate it: sudo updatedb, this will update your files database index. Then type locate daemon.conf to find the file location. Replace /etc/pulse/ with the path to your daemon.conf file)

Find the following lines (ctl + W to find text in file) and replace your values with the following (lines might be in a different order in your system):

default-sample-format = float32ne
default-sample-rate = 48000
alternate-sample-rate = 44100
default-sample-channels = 2
default-channel-map = front-left,front-right

default-fragments = 2
default-fragment-size-msec = 125
resample-method = speex-float-5 
enable-lfe-remixing = no
high-priority = yes
nice-level = -11
realtime-scheduling = yes
realtime-priority = 9
rlimit-rtprio = 9
rlimit-rttime = -1
daemonize = no

Press ctl + O to save changes, then press ctl + x to quit

now type nano ~/.asoundrc in terminal and paste te following code:

pcm.!default {
    type plug
    slave.pcm hw

This will bypass dmix for pulseaudio increasing sound quality by a lot. We can’t have more than one resampler because if we do it gets resampled twice and some sound quality is lost (as explained by Calthax in this thread.

Credits to Calthax and AlsaProject wiki page.

Nat Azodnem
Nat Azodnem
January 11, 2019 11:15 AM

Related Questions

Updated December 05, 2015 10:01 AM

Updated April 21, 2019 14:02 PM

Updated September 15, 2015 04:01 AM

Updated November 03, 2016 09:00 AM

Updated November 03, 2015 09:01 AM