![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
|
|
Multimedia & Video Have multimedia question? ATI, Nvidia, Sound cards. Just ask here. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Chocolate-Covered Ubuntu Beans
![]() Join Date: Nov 2005
Location: Ireland
Beans: 2,334
Ubuntu Development Release
|
Hi,
I have a Dell Inspiron 510m laptop with an Intel 82801DB-ICH4 (STAC9750/51 / AC'97) sound chipset. Under Windows, sound reproduction is pretty good considering that it's coming from a pair of laptop speakers - clear with good bass. Under linux (Ubuntu, Fedora and others), however, something is wrong... When the volume is beyond around 50%, the sound seems distorted, particularly with bass sounds; it seems as though the speakers are damaged/loose, with a rattling sound at the higher frequencies, and overall sound seems "muffled". Upon experimenting with VLC's equalizers, I managed to tweak sound until it sounded almost perfect, just like XP's sound reproduction. Unfortunately, this only solved audio playback in VLC, so after some research and experimentation, I found out how to equalize sounds system-wide, using ALSA with a LADSPA (audio processing) plugin. If anybody is suffering a similar issue, here's the solution: 1. Install the "C* Audio Plugin Suite" (caps), which contains the required ladspa plugin (requires the universe repository): Code:
$ sudo apt-get install caps Code:
gedit ~/.asoundrc Code:
pcm.!default {
type plug
slave.pcm "equalized";
}
pcm.equalized {
type ladspa
slave.pcm "plug:dmix";
path "/usr/lib/ladspa";
plugins [
{
id 1773
input {
controls [ 8 5 3 -5 -6 -10 -6 -5 8 8 ]
}
}
]
}
Code:
plughw:0,0 Can I ask that anybody who notices a difference (positive, negative or indifferent) report back? This fixes audio for me under Feisty, but may work for earlier releases. Last edited by psyke83; August 21st, 2007 at 02:39 PM.. Reason: Changed equalization settings, added further instructions |
|
|
|
|
|
#2 |
|
5 Cups of Ubuntu
![]() Join Date: Apr 2007
Beans: 32
|
Re: Bad sound? Try this...
This is great, I think it is working but for some reason in VLC while the audio is playing it would randomly start crackling, everything would stop playing in terms of the actual audio and will start to crackle for about 10 seconds then resumes again with the audio. This does not happen in any other media player. And this also only happens with my laptop speakers not my usb headsets. ATI IXP is my laptop audio driver. Great tip though thanks!
|
|
|
|
|
|
#3 |
|
Chocolate-Covered Ubuntu Beans
![]() Join Date: Nov 2005
Location: Ireland
Beans: 2,334
Ubuntu Development Release
|
Re: Bad sound? Try this...
nSTER,
That's a different issue (that I experienced in the past as well) |
|
|
|
|
|
#4 |
|
A Carafe of Ubuntu
![]() Join Date: Feb 2006
Beans: 100
|
Re: Bad sound? Try this...
Wow, the sound on my Dell Inspiron 1300 laptop sounds much better now.
|
|
|
|
|
|
#5 |
|
First Cup of Ubuntu
![]() Join Date: Jun 2007
Beans: 2
|
Re: Bad sound? Try this...
I admire the work, though this is just running circles around the issue which must be in something gone horribly wrong in the sound drivers. You're basically getting bad quality sound, and fixing it artificially, introducing even more noise and distortion, even if it gives the impression of higher quality. The sound you're getting is not so close to how it should sound as it seems, I'm afraid.
|
|
|
|
|
|
#6 | |
|
Chocolate-Covered Ubuntu Beans
![]() Join Date: Nov 2005
Location: Ireland
Beans: 2,334
Ubuntu Development Release
|
Re: Bad sound? Try this...
Quote:
Under XP, I've made a discovery of sorts: Windows XP's generic "Intel AC'97 Audio" driver has the same bad quality as ALSA, whilst the "Sigmatel C-Major Audio" drivers (from Dell's site) has excellent quality.The impression I have been given by the ALSA developers is that the Sigmatel drivers equalize the audio, perhaps because the laptop's speakers can't exploit the full frequency range of the audio chipset. Either way, this is the only way to somewhat fix the poor audio quality on my laptop at the moment. |
|
|
|
|
|
|
#7 |
|
A Carafe of Ubuntu
![]() Join Date: Feb 2006
Beans: 100
|
Re: Bad sound? Try this...
Hmm, yeah, I sort of discovered that's an artificial fix today. In Exaile I put on an album that is very recent (great production and high levels) and the louder parts of songs were distorting.
So now I reverted back to the way my speakers were before I followed these instructions. Unfortunate the drivers/ALSA don't work properly! |
|
|
|
|
|
#8 |
|
Chocolate-Covered Ubuntu Beans
![]() Join Date: Nov 2005
Location: Ireland
Beans: 2,334
Ubuntu Development Release
|
Re: Bad sound? Try this...
Morbett,
You need to keep the PCM volume below 74% to avoid distortions. That's a bug with ALSA's ladspa plugin system. Using the same caps ladspa filter in Audacious with it's ladspa plugin system, there's no distortion at higher volumes. However, keeping the PCM/Master below 74 almost always avoids distortion. This isn't a perfect fix by any means, but the ALSA developers aren't responding to my bug report... |
|
|
|
|
|
#9 |
|
A Carafe of Ubuntu
![]() Join Date: Feb 2006
Beans: 100
|
Re: Bad sound? Try this...
Ah, ok, thank you for the tip! I had it above 74%.
|
|
|
|
|
|
#10 |
|
5 Cups of Ubuntu
![]() Join Date: Jun 2007
Beans: 34
|
Re: Bad sound? Try this...
I have a laptop too and also think this issue is simply from being able to turn up the volume much higher than in Windows, thereby causing distortion to occur on those tinny laptop speakers.
I notice on your equalizer controls that your settings are to reduce the volume of mid-frequencies, which would help by lowering the volume and allowing less audible portions of audio to come through better. |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|