[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: changing sound parameter on startup

On Sat, 2012-05-26 at 23:55 +0300, Volkan YAZICI wrote:
> /etc/rc.local?
The comment says
# This script is executed at the end of each multiuser runlevel.
which doesn't sound like the right place.  I'm also not sure if that
means it executes when you exit the run level, or it it means it runs as
the last thing before you enter the run level.  The first sense seems to
be the literal meaning of the comment, though I suspect the second is
> On Sat, 26 May 2012 13:40:01 -0700, Ross Boylan writes:
> > Simple version: what's the best way to get the effect of 
> > echo 1024 > /proc/asound/card0/pcm0p/sub0/prealloc
> > every time I start, preferably before KDE starts?
> >
> > I've seen indications I should put something in rcS.d/, but also some
> > things saying stuff there gets executed at every run level change.
> > Also, I'm not sure where in the sequence it needs to be.
> >
> > Longer version: The underlying issue is that I've been having problems
> > with sound under mythtv.  Hardware:
> > Audio device: Intel Corporation 82801G (ICH7 Family) High Definition
> > Audio Controller (rev 01) on a Pentium 4.
> >
> > When myth starts it was complaining that I had a buffer too small and
> > that its attempts to reset it with the above command failed.  After
> > disabling sound on KDE I was able to resize the buffer.  I'm still
> > having sound problems, though I think not quite as frequently as before.
> >
> > One solution would be to resolve the permission problem.
> >
> > There are a lot of things I can think of that might be relevant to
> > either the permission issue or the buffer size issue: udev, module
> > parameters (e.g., /etc/modutils.d/), sysctl.conf (but I think that's
> > only for /proc/sysfs), maybe some other alsa-specific place.
> >
> > So I'd appreciate any guidance you can offer.
> >
> > Thanks.
> > Ross Boylan

Reply to: