1 |
On Saturday, April 18, 2015 6:46:37 PM Chris Spackman wrote: |
2 |
> I have an issue with sound during music and sometimes video |
3 |
> playback. Usually it fades out (gets quieter) and then fades back in a |
4 |
> couple of seconds later. This happens randomly maybe a couple of times |
5 |
> in an hour or two, but can sometimes go several hours without |
6 |
> issue. It has happened with quodlibet and mocp (audio - mostly ogg, |
7 |
> some mp3) and with vlc (video - mostly mp4/m4v). I don't use other |
8 |
> music/video software enough to notice it there. |
9 |
> |
10 |
> During heavy load (like emerging packages), the sound will sometimes |
11 |
> stutter or even stop and then restart a few seconds later. The |
12 |
> computer is a few years old, but this has not happened in the past. |
13 |
> |
14 |
> I found somewhere the suggestion to add the following options to |
15 |
> /etc/modprobe.d/sound.conf |
16 |
> |
17 |
> options snd-hda-intel vid=8086 pid=8ca0 snoop=0 |
18 |
> |
19 |
> The fading out/in *seems to be* less frequent since doing that. But |
20 |
> that is my subjective feeling, not based on data. |
21 |
> |
22 |
> Any ideas on what might be wrong and how it can be fixed? |
23 |
> |
24 |
> ** System ** |
25 |
> |
26 |
> Window Manager = PekWM |
27 |
> |
28 |
> kernel = Linux sys76 3.18.11-gentoo #1 SMP PREEMPT Thu Apr 9 13:56:02 EDT |
29 |
2015 x86_64 Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz GenuineIntel GNU/Linux |
30 |
> |
31 |
> |
32 |
> ** Hardware Info ** |
33 |
> |
34 |
> lspci reports: |
35 |
> Audio device: Intel Corporation 82801JI (ICH10 Family) HD Audio Controller |
36 |
> |
37 |
> Modules, from lsmod | grep snd: |
38 |
> |
39 |
> snd_hda_codec_idt 39744 1 |
40 |
> snd_hda_codec_generic 39746 1 snd_hda_codec_idt |
41 |
> snd_hda_intel 17007 2 |
42 |
> snd_hda_controller 13712 1 snd_hda_intel |
43 |
> snd_hda_codec 68033 4 |
44 |
> snd_hda_codec_idt,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller |
45 |
> snd_hwdep 5373 1 snd_hda_codec |
46 |
> snd_pcm 63521 3 |
47 |
> snd_hda_codec,snd_hda_intel,snd_hda_controller |
48 |
> snd_timer 15422 1 snd_pcm |
49 |
> snd 49995 11 |
50 |
snd_hwdep,snd_timer,snd_hda_codec_idt,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel |
51 |
> |
52 |
> ** Software ** |
53 |
> |
54 |
> [I] media-sound/pulseaudio |
55 |
> |
56 |
> Installed versions: 5.0-r7(03:35:44 PM 04/08/2015)(X alsa |
57 |
> alsa-plugin asyncns bluetooth caps dbus gdbm glib gtk ipv6 orc |
58 |
> qt4 ssl tcpd udev webrtc-aec -doc -equalizer -gnome -jack |
59 |
> -libsamplerate -lirc -neon -oss -realtime -system-wide -systemd |
60 |
> -test -xen -zeroconf ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" |
61 |
> ABI_S390="-32 -64" ABI_X86="64 -32 -x32") |
62 |
> |
63 |
> [I] media-plugins/gst-plugins-pulse |
64 |
> |
65 |
> Installed versions: 0.10.31-r1(0.10)^t(12:55:06 PM |
66 |
> 04/11/2015)(ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" |
67 |
> ABI_S390="-32 -64" ABI_X86="64 -32 -x32") 1.4.5(1.0)^t(04:27:00 |
68 |
> PM 04/05/2015)(ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" |
69 |
> ABI_S390="-32 -64" ABI_X86="64 -32 -x32") |
70 |
> |
71 |
> [I] media-sound/moc |
72 |
> |
73 |
> Installed versions: 2.5.0(05:50:51 PM 04/12/2015)(aac alsa |
74 |
> cache ffmpeg flac mad magic unicode vorbis -curl -debug -jack |
75 |
> -libsamplerate -modplug -musepack -oss -sid -sndfile -speex |
76 |
> -timidity -tremor -wavpack) |
77 |
> |
78 |
> (I removed Quodlibet recently for unrelated reasons.) |
79 |
> |
80 |
> Thanks for any and all help and advice. |
81 |
> |
82 |
|
83 |
The Arch wiki has a lot of tips for configure pulseaudio: |
84 |
https://wiki.archlinux.org/index.php/PulseAudio/Troubleshooting#Setting_the_default_fragment_number_and_buffer_size_in_PulseAudio |
85 |
There was another page with tips at freedesktop.org but I can't find it now. |
86 |
|
87 |
Adjusting the fragment size fixed the choppy sound problem for me. Enabling the |
88 |
realtime scheduling may also help (on Gentoo you need to enable the realtime |
89 |
flag too) but for me that just seemed to make it more resource hungry. |
90 |
|
91 |
Also if you haven't enable the pulseaudio flag globally and run emerge -vauDN |
92 |
@world and disable all ALSA features on your kernel (except PCI and HD Audio |
93 |
drivers) and uninstall the alsa mixer. All together these gave me the best |
94 |
results. Sometimes still I start getting choppy audio after large updates and |
95 |
when that happens the only way I've been able to fix it is rebooting. |
96 |
|
97 |
I occassionally have problems with volume, if I lower it sometimes it rases |
98 |
itself back up and if I plug in headphones and unplug them sometimes the |
99 |
builtin speakers stay muted so I have to plug it back in and out. This only |
100 |
happens on one of my laptops and I haven't figured how to fix it. |
101 |
|
102 |
In short, pulseaudio sucks. But I do find that it gives better audio quality |
103 |
than alsa even after tweaking alsa settings and for me it integrates better |
104 |
with KDE. |
105 |
|
106 |
-- |
107 |
Fernando Rodriguez |