Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-14-2006, 11:43 PM
|
#1
|
Senior Member
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Rep:
|
I'm sick and tired of sound braking up!!!!
I've had it with linux sound. I want to have a sinple stright answer to this problem.
I have tried all possible sound arrangements so that I can have reliable sound in a long time... but every single one fails. Let's see the ones I've tried:
OSS output: forget it. I want to have a shared sound and not every application complaining because another is using the device.
ALSA output: This is the most stable one.... but very often, when one application starts playing while there's another already polaying something.... or if one application stops playing when another is playing, it simply hangs all sound applications... and I HATE IT, because I have to restart all sound applications.
ESD on top of OSS or ALSA: sometimes applications complaing because ESD is busy.
so.... what am I missing here? Does anyone of you have a reliable sound environment? or I'm just the only one with this problem?
Code:
0000:02:03.0 Multimedia audio controller: ESS Technology ES1983S Maestro-3i PCI Audio Accelerator (rev 10)
Subsystem: Dell ES1983S Maestro-3i (Dell Inspiron 8100)
Flags: bus master, medium devsel, latency 32, IRQ 5
I/O ports at dc00 [size=256]
Memory at f6ffe000 (32-bit, non-prefetchable) [size=8K]
Capabilities: [c0] Power Management version 2
|
|
|
04-15-2006, 01:09 AM
|
#2
|
Senior Member
Registered: Jun 2004
Posts: 2,553
Rep:
|
Quote:
Originally Posted by eantoranz
I've had it with linux sound. I want to have a sinple stright answer to this problem.
I have tried all possible sound arrangements
|
we could help -- but the situation like most things Linux/Unix is more complex and of course more powerfull and diverse than you are willing to admit or deal with or figure out.
|
|
|
04-15-2006, 01:21 AM
|
#3
|
Senior Member
Registered: Jun 2004
Posts: 2,553
Rep:
|
ok i felt lousy just blowing you off so here my one simple solution
(of course i have about 50 others if this one doesn't help)
Code:
setpci -v -s 02:03.0 latency_timer=ff
|
|
|
04-15-2006, 11:49 AM
|
#4
|
Senior Member
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Original Poster
Rep:
|
can you explain me what it does? and when should I run that command? boot time? 
|
|
|
04-15-2006, 10:30 PM
|
#5
|
Senior Member
Registered: Jun 2004
Posts: 2,553
Rep:
|
first just run it as root to see if it helps
it set the "latency 32" setting shown in your lspci output to
latency 176
it seems counterintuitive to increase latency but this will make less writes across the pci buss to the soundcard and increase the burst size for each write. hopefully the results will be less sound coagulations.
if it works and its all you need to do you can add the command to the bottom of any boot script that runs late in the sequence
i put junk like this at the bottom of my firewall (terrible teribble hackery)
i think after this we need to address if you are using sofware sound mixing "dmix" or relying on your soundcards hardware.
Last edited by foo_bar_foo; 04-15-2006 at 10:33 PM.
|
|
|
04-16-2006, 12:23 AM
|
#6
|
Senior Member
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Original Poster
Rep:
|
and you're gonna help me in every step of the process? ;  :-D
I'll try the latency and tell you how it goes in the coming days. ff means 255 in this case? 
|
|
|
04-16-2006, 02:59 AM
|
#7
|
Member
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666
Rep:
|
For combining several streams into single there's arts.
|
|
|
04-16-2006, 03:50 PM
|
#8
|
Senior Member
Registered: Jun 2004
Posts: 2,553
Rep:
|
Quote:
Originally Posted by eantoranz
ff means 255 in this case? 
|
yea -- for some reason setpci turn it into 248
i put 176 earlier not thinking
176 is b0
definitely use ff (255) for the soundcard
it might also help to increase latency across the PCI bridge to 176 (b0)
|
|
|
04-16-2006, 03:59 PM
|
#9
|
Senior Member
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Original Poster
Rep:
|
so far, sound hasn't crashed, but right now is happening something that usually happens to me with alsa: Sound is in 2X right now. with mplayer: if I play a video or sound file, it's played at twice the normal speed (video & sound) (tried as my normal mortal user and with sudo just in case... both were played at 2X).
|
|
|
04-16-2006, 04:07 PM
|
#10
|
Senior Member
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Original Poster
Rep:
|
I'm listening to something with amarok now..... god! It sounds so sureal. The time pace is OK, but sounds are one octave high.... so I guess amarok is sending streams at a time and measuring the times that goes by. alsa would be playing them at twice the speed. :-S
|
|
|
04-16-2006, 04:08 PM
|
#11
|
Senior Member
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Original Poster
Rep:
|
oh... and there are many gaps per second in amarok.
|
|
|
04-16-2006, 04:10 PM
|
#12
|
Senior Member
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Original Poster
Rep:
|
I kept changing latency while playing in amarok... but it didn't change anything. (I feel like I'm stumbling agains wall after wall).
|
|
|
04-16-2006, 04:36 PM
|
#13
|
Senior Member
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Original Poster
Rep:
|
this is crazy. Sound is back to normal again. I have configured amsn to use mplayer to "ring the bells". One of those events caused the sound to go back to normal pace. 
|
|
|
04-16-2006, 10:49 PM
|
#14
|
Senior Member
Registered: Jun 2004
Posts: 2,553
Rep:
|
when you say alsa you mean alsaplayer ?
this is very confusing because i can't examine the files you are playing and their format.
sometimes if you record a raw audio file without headers another program if left to defaults will assume 2 channels. if it's just one chanel it will come out twice as fast.
you havn't said what kind of machine this is ?
does the clock run normally ?
at first impression it sounds like a hardware problem like your BIOS are all screwed up from overclocking or from a storm or something.
you will have to be more specific about file formats
show output from the "file" command on the test file you are playing
and all settings like output method and what not before any meaningfull discussion can go forward.
|
|
|
04-17-2006, 09:45 AM
|
#15
|
Senior Member
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Original Poster
Rep:
|
I mean I'm using the alsa driver for my sound card (and the clients use alsa as their engine).
Last edited by eantoranz; 04-17-2006 at 09:49 AM.
|
|
|
All times are GMT -5. The time now is 02:51 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|