[Solved] Terrible sound in linux, much better in windows

Some one should create a GUI for this, since it’s something most windows users are used to. And to have all sound in linux be “bland” and “tamb” compared to WIndows’ rich default settings, it could be nice to have at least a GUI option to set these in Linux as well.

Maybe a sub-package for pulseaudio is in order.

6 Likes

It really depends on what sound card is being used. I guess the Windows driver offers some audio enhancements that the Linux module doesn’t, because of some proprietary firmware crap.

The CA0132 has a bad reputation when it comes to Linux. One ALSA developer wrote (https://bugzilla.opensuse.org/show_bug.cgi?id=969239):

Actually, SoundBlaster Z is a known notorious device. There are way too many variants, and only a few of them actually work with the current upstream driver, because of the incompatible binary firmware.

Just set your pulseaudio to a healthy bitrate and resampling and buy a good set of speakers instead.
Fancy soundcards focus on adding “effects” rather than playing the music the way composer intended. Install beep from repo and check if every frequency sounds equally loud to you.

Do note (<—pun) that aural perception varies from person to person, so install beep on your laptop when you visit your retailer to try out the speakers and spend some time.

after that, it boils down to how much signal is lost before you hear the music

  • all onboard soundcards today are HD quality, unless you’re using one from soviet era.
  • bitrate/resample in pulseaudio
  • file format. High bitrate *.flac is good, 128kbps *.mp3 is ~meh~
  • don’t buy those cheap chinese speakers. High rms or PMPO isn’t meaningful. My 15 watt 2.1 creative inspire has shattered more glasses than 50 watt ching-chuang-7.1s.

Agreed, buy an audio interface instead like I do. The cheap Focusrite Scarlett Solo + Audio Technica M40x combo is simply awesome. PCI soundcards gives me nothing but noise, USB soundcards are mostly cheap sh¡t :slight_smile:
Speaker is not for me though, I enjoy privacy when listening to something on my computer, if you know what I mean :stuck_out_tongue:

1 Like

Then why do you need high quality sound for that ? You can enjoy those by hitting the mute button too.

I think he wanted to say that headphones is the way to go for him (and for me, too :smile:)

1 Like

Never need a mute button once you own a pair of headphones man. :wink:

1 Like

I just used your advice and put above settings to ~/.config/pulse/daemon.conf and music quality boosted a lot!
Now it’s good! It’s a bit different then in windows and I can’t put my fingers on it to decide what is better or different, but luckily now there is no dynamicless and can-like sound like before!

It looks like linux is capable of higher quality sound, only generic settings a crappy as hell.

Now I can only learn more above music settings and how to change them to tweak sound more but it’s comparable to windows now. The wow effect and dynamic is also on linux :smiley:

Again, where is it or where to create this asound.conf? If the first piece of linux magic worked, I am curious if this would do something to ;). And yes, it’s all terribly complicated and sounds more like magic: say this spell and you will get X. Still it’s joy if it works!

1 Like

its

/etc/asound.conf

:wink:

facepalm…

Sorry to be so blind. @Calthax did say it’s in etc. Thanks @cscs for reminding me of this.

I adjusted asound.conf as pointed above and it does improve sound, however the difference is not so huge to hear on laptop speakers.

Is there a way to use this file in user folder? I prefer my home location for better backup/restore possibilities.

Anyway, I’m happy now! :smile: :sunny: I can hear music on linux and there is no need to switch to windows!

Just few more things to solve and system will be perfect :slight_smile:

Configuration

The system configuration file is /etc/asound.conf, and the per-user configuration file is ~/.asoundrc.

https://wiki.archlinux.org/index.php/Advanced_Linux_Sound_Architecture#Configuration
Actually, you can read the entire wiki page if you want. Arch Wiki is the best we have, don’t waste it! :wink:

2 Likes

Thanks. Will copy the file there.

Arch wiki can be very helpful but often there are articles that are not too helpful for newbies (too technical, over packed with details or… having not enough info to go on - for more advanced users that know what to do with the info). For me going through those articles and making something out of it, it’s a project for many weeks if not months… I just have couple free hours at evening and my mind is not fresh enough to lean so new and foreign content. Not all linux users are technical geeks ;).

1 Like

After that I don’t have any sound anymore. pavucontrol only says “Establishing connection to PulseAudio. Please wait…” and stays there.

Had that too, but realized I pasted settings with @Calthax’s comments… :stuck_out_tongue: When I corrected the text in the file and rebooted, sound came back and with a kick!

First I did the same mistake (he should format the text :smile:), but I found it out by myself and changing it didn’t help. Did you only change the deamon.conf or both files?

I changed the daemon.conf first (you made a spell mistake in your post - in your file name, check if your file doesn’t have the same mistake) and it worked incredibly well so I went to change the second file, which did make some difference but not so stellar as the first one.

No problem, we got you covered here :wink:

I did some trial and error with the result, that changing the asound.conf works for my system, changing the daemon.conf doesn’t.
Are there some lines that don’t work with all hardware?
So to be sure I didn’t do any mistake, I post how my not working daemon.conf looks like:

default-sample-format = float32le
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 = soxr-vhq
enable-lfe-remixing = no
high-priority = yes
nice-level = -11
realtime-scheduling = yes
realtime-priority = 9
daemonize = no

I forgot a piece of the settings put this after realtime-priority but before daemonize
rlimit-rtprio = 9
realtime-priority and rlimit-rtprio have to be used in conjunction with each other to work
If that doesn’t solve your problem
try switching to speex-float-10
also float32le should be float32ne

Should I change those two if it works for me? Are those spelling mistakes or alternative version if it doesn’t work so I would have to not worry about it? Ah wait, I can google it… facepalm…

OK. found this:

default-sample-format=  The default sampling format. Specify one of u8,
       s16le, s16be, s24le, s24be, s24-32le, s24-32be, s32le, s32be float32le,
       float32be,  ulaw,  alaw.  Depending  on  the  endianness of the CPU the
       formats s16ne, s16re, s24ne, s24re, s24-32ne, s24-32re,  s32ne,  s32re,
       float32ne,  float32re  (for native, resp. reverse endian) are available
       as aliases.

So those are alternatives so in my case if it works I don’t have to do anything aside adding rlimit-rtprio = 9

EDIT: Added rlimit-rtprio = 9 and have impression that sound improved a little but at this already improved qualitry level and laptop speakers possibilities, the difference is no obvious or sure, but sound works, it didn’t mess anything so that’s a good thing :slight_smile:

Anyway, music can be listened in comfortable manner in linux. There is only an issue left of jack not working, see the thread:

Forum kindly sponsored by Bytemark