[vox-tech] Skipping sound

Samuel Merritt vox-tech@lists.lugod.org
Wed, 26 Feb 2003 16:57:35 -0800


--/e2eDi0V/xtL+Mc8
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Feb 26, 2003 at 01:55:06PM -0800, Peter Jay Salzman wrote:
> begin Samuel Merritt <spam@andcheese.org>=20
> > Running twm, mpg123 in an xterm, and Mozilla with X niced to 0, the
> > sound still skips when I scroll in Mozilla.
> >=20
> > The skipping even happens with "play" (wave file player), and this
> > machine is grossly overpowered for just playing music and running X, so
> > I doubt it's a CPU time issue.=20
> =20
> kay.  wasn't sure what kind of machine it was.
>=20
> > I'm actually running Mandrake 9.0 on the machine in question, and X
> > started out niced to -10.=20
> =20
> stupid question.  you looked at top while moving a window around?
> did you see anything interesting?

If I move the mouse pretty fast while dragging a window around in opaque
mode, I can get X to take up 60% CPU or so. I've never seen a media
player take more than 2-3% CPU on this machine.=20
=20
> also, is this a new symptom?  or has it always been happening and you
> just now sent an email out about it?

It's new; my (AGP) good video card's fan died, frying the chip, so while
I wait for a replacement, I'm using an old (PCI) Mystique. It wasn't a
problem with the now-defunct video card.=20

> > Also, I forgot to mention earlier that I've ruled out an IRQ conflict.
> > Theoretically, since they're both PCI devices, the sound and video cards
> > should be able to share an IRQ, but I moved the video card around to
> > ensure that they're on different IRQs.=20
>=20
> i don't think every video card uses irq.   some video cards get polled
> by the CPU and fetch data by explicit read accesses to I/O memory.
> voodoo 4/5, 1/2 and mach cards are like this.  don't know about matrox.
> but you should be able to tell using lspci -vb.

The relevant output is:=20

02:05.0 VGA compatible controller: Matrox Graphics, Inc. MGA 1064SG
[Mystique] (
rev 03) (prog-if 00 [VGA])
        Subsystem: Matrox Graphics, Inc.: Unknown device 1000
        Flags: bus master, stepping, medium devsel, latency 32, IRQ 15
        Memory at fa800000 (32-bit, prefetchable)
        Memory at f8000000 (32-bit, non-prefetchable)
        Memory at f7800000 (32-bit, non-prefetchable)

I don't know what it means, though.=20

> odd.  i guess i'm most curious about the "is this something new or has
> always been a problem" question.
>=20
> pete
>=20
>=20
> > On Wed, Feb 26, 2003 at 12:38:13PM -0800, Peter Jay Salzman wrote:
> > > sam,
> > >=20
> > > have you tried with a different window manager?   do you get the
> > > skipping around when you use mp3blaster/mpg123 under twm?   that migh=
t be a
> > > good litmus test.
> > >=20
> > > also, you run debian, right?  see if the "X" process is un-niced.
> > > debian now asks you if you want to run X with a higher priority.
> > >=20
> > > try to renice X to 0.  see if that helps the skipping around.
> > >=20
> > > pete
> > >=20
> > >=20
> > > begin Samuel Merritt <spam@andcheese.org>=20
> > > > If I have music playing and I move a window around, switch windows,=
 or
> > > > scroll a window, the music stutters. I'm using XFree86 4.2.1 and AL=
SA
> > > > 0.9.0rc2 (defaults for Mandrake 9).=20
> > > >=20
> > > > This happens in any video mode I try, from 1024x768, 24bpp down to
> > > > 640x480, 8bpp, though the stuttering is worse in higher resolutions=
 and
> > > > color depths.
> > > >=20
> > > > I've also tried switching between ALSA and OSS. It makes no differe=
nce.=20
> > > >=20
> > > > The video card is a Matrox Mystique with 4MB video RAM (MGA 1064SG)=
.=20
> > > > The sound card is an onboard CM8738.=20
> > > >=20
> > > > I'd heard about problems like this years ago, having to do with the
> > > > video card drivers hogging the PCI bus for long periods of time. I
> > > > played with the option "PciRetry", found in the mga(4) man page. The
> > > > stuttering is the same whether this option is on or off.=20
> > > >=20
> > > > Google doesn't come up with any relevant results; I did find a whole
> > > > bunch of pages about a setting that goes in system.ini, but I don't=
 have
> > > > one of those. =3D)
> > > >=20
> > > >=20
> > > > --=20
> > > > Samuel Merritt
> > > > OpenPGP key is at http://meat.andcheese.org/~spam/spam_at_andcheese=
_dot_org.asc
> > > > Information about PGP can be found at http://www.mindspring.com/~ae=
greene/pgp/
> > >=20
> > >=20
> > >=20
> > > --=20
> > > First they ignore you, then they laugh at you, then they fight you,
> > > then you win. -- Gandhi, being prophetic about Linux.
> > >=20
> > > Fingerprint: B9F1 6CF3 47C4 7CD8 D33E 70A9 A3B9 1945 67EA 951D
> > > _______________________________________________
> > > vox-tech mailing list
> > > vox-tech@lists.lugod.org
> > > http://lists.lugod.org/mailman/listinfo/vox-tech
> >=20
> > --=20
> > Samuel Merritt
> > OpenPGP key is at http://meat.andcheese.org/~spam/spam_at_andcheese_dot=
_org.asc
> > Information about PGP can be found at http://www.mindspring.com/~aegree=
ne/pgp/
>=20
>=20
>=20
> --=20
> First they ignore you, then they laugh at you, then they fight you,
> then you win. -- Gandhi, being prophetic about Linux.
>=20
> Fingerprint: B9F1 6CF3 47C4 7CD8 D33E 70A9 A3B9 1945 67EA 951D
> _______________________________________________
> vox-tech mailing list
> vox-tech@lists.lugod.org
> http://lists.lugod.org/mailman/listinfo/vox-tech

--=20
Samuel Merritt
OpenPGP key is at http://meat.andcheese.org/~spam/spam_at_andcheese_dot_org=
.asc
Information about PGP can be found at http://www.mindspring.com/~aegreene/p=
gp/

--/e2eDi0V/xtL+Mc8
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+XWJ/W3tuPJ1t7wURApmSAKCKTVqZz08KzPWa4STJPY6ehEWZkgCdFnqg
w9WfJnFNs9xEPocbAnoUKBg=
=JA1U
-----END PGP SIGNATURE-----

--/e2eDi0V/xtL+Mc8--