[Asus 1101HA] Choppy sound due to excessive rewinding on Atom chipsets
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Undecided
|
David Henningsson |
Bug Description
Description: Ubuntu oneiric (development branch)
Release: 11.10
pulseaudio:
Installed: 1:0.99.1-0ubuntu2
Candidate: 1:0.99.1-0ubuntu2
Version table:
*** 1:0.99.1-0ubuntu2 0
500 http://
100 /var/lib/
Expected behaviour: Play music and sounds without gaps.
What happened: Every system sound or music through any media player follows a pattern of 2 seconds of silence followed by 1 second of sound. This happened only after I updated today.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
simplygades (simplygades-deactivatedaccount) wrote : | #1 |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
David Henningsson (diwic) wrote : | #2 |
Changed in pulseaudio (Ubuntu): | |
status: | New → Incomplete |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
simplygades (simplygades-deactivatedaccount) wrote : | #3 |
Hi David!
:~$ speaker-test -D pulse -t sine -c 2
speaker-test 1.0.24.2
Playback device is pulse
Stream parameters are 48000Hz, S16_LE, 2 channels
Sine wave rate is 440.0000Hz
ALSA lib dlmisc.
Playback open error: -6,No such device or address
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
simplygades (simplygades-deactivatedaccount) wrote : | #4 |
Sorry, I accidentally posted it incomplete, so:
:~$paplay /home/~
Failed to open audio file.
My PC is an Intel Atom-Z520 based Acer. Now updating, and I'll check again. Contact me in case you need any further info, bye!
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
David Henningsson (diwic) wrote : | #5 |
paplay cannot open mp3 files, but you could e g try
paplay /usr/share/
As for the speaker-test (or rather alsa-plugins) problem, that sounds strange, but I know there has been some multiarch updates to that package lately. Maybe an update will help?
As for the root cause, if paplay succeeds, chances are that you are helped by a patch I made this morning. I *think* Dolphin/phonon uses gstreamer internally, but not completely sure.
Thanks for helping out!
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
simplygades (simplygades-deactivatedaccount) wrote : | #6 |
OK, I'm using Kubuntu right now with latest updates (inc. PA). The result of "paplay" is the same "skipping rewind" behaviour.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
David Henningsson (diwic) wrote : | #7 |
Okay, then I don't have any good ideas at the moment. Probably need to have a very low-end machine in order to dig deep enough into the problem.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
simplygades (simplygades-deactivatedaccount) wrote : | #8 |
Shouldn't the cause be found among the changes from the changes from the last working version to the first buggy one? In case you have a clue and want some testing, tell me, ciao!
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Lucazade (lucazade) wrote : | #9 |
same issue here with acer751h
Changed in pulseaudio (Ubuntu): | |
status: | Incomplete → Confirmed |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Lucazade (lucazade) wrote : | #10 |
Can say that I never had any audio issue on this netbook from Hardy Heron 8.04.
Quite sad to have this now, we already have a lot of issue with gfx drivers!
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
simplygades (simplygades-deactivatedaccount) wrote : | #11 |
I dare say that this one is going to be there on the final release...Sad,, cause its a major issue. I'm really curious if that affects other Atom users. Kubuntu and removal of PA will be my last shelter, given the GPU situation.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Li Li (lli5) wrote : | #12 |
My Toshiba N205 works fine when CPU% doesn't reach ~100%. But when CPU is busy (e.g. during chatting with IM SW, the sound sometimes become choppy. The speaker-test works fine also.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Li Li (lli5) wrote : | #13 |
lli5@netbook:
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 28
model name : Intel(R) Atom(TM) CPU N280 @ 1.66GHz
stepping : 2
cpu MHz : 1000.000
cache size : 512 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 1
apicid : 0
initial apicid : 0
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 xtpr pdcm movbe lahf_lm dts
bogomips : 3325.14
clflush size : 64
cache_alignment : 64
address sizes : 32 bits physical, 32 bits virtual
power management:
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 28
model name : Intel(R) Atom(TM) CPU N280 @ 1.66GHz
stepping : 2
cpu MHz : 1000.000
cache size : 512 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 1
apicid : 1
initial apicid : 1
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 xtpr pdcm movbe lahf_lm dts
bogomips : 3323.40
clflush size : 64
cache_alignment : 64
address sizes : 32 bits physical, 32 bits virtual
power management:
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Keng-Yu Lin (lexical) wrote : | #14 |
just for comparison, I tested on Dell Latitude 2110 with Atom N470 CPU, I do not observe the same issue with PulseAudio 0.99.3-0ubuntu5.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Li Li (lli5) wrote : | #15 |
Update: If CPU% is too high, sounds become choppy and won't recover until the application close and reopen (therefore the audio device is re-inited).
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Li Li (lli5) wrote : | #16 |
More:
If CPU% is too high AND AUDIO BUFFER TOO SHORT (say 10ms e.g.), sounds become choppy. If the buffer isn't too short, audio playback is still fine even if I run another application to consume all available CPU resource.
PS: I've upgraded to the latest Oneiric, with pulseaudio version 1:0.99.3-0ubuntu5.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
simplygades (simplygades-deactivatedaccount) wrote : | #17 |
I reinstalled PA on Kubuntu 11.10, seems fixed here with the latest version!
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
simplygades (simplygades-deactivatedaccount) wrote : | #18 |
UPDATE: No it's still acting like that. I'll try to test on a clean installation and report.
Changed in pulseaudio (Ubuntu): | |
status: | Confirmed → Triaged |
summary: |
- Choppy sound in Oneiric after latest pulseaudio update + Choppy sound due to excessive rewinding on low-end (Atom) CPUs |
tags: | added: oneiric |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
David Henningsson (diwic) wrote : Yet another attempt to fight rewinds | #19 |
- 0001-Ratelimit-rewinds-of-sinks.patch Edit (2.4 KiB, text/x-patch; name="0001-Ratelimit-rewinds-of-sinks.patch")
A few Atom users have complained about enternal rewinds since they
upgraded to 0.99.x, see
https:/
So here's just an idea. As a "last resort", ratelimit the number of
rewinds. If there are more than 10 rewinds in 200 ms, go to sleep for
200 ms. The idea is that during those 200 ms, the client application
will produce enough packets to fill up the buffer enough. Those packets
will then be merged into one, due to an earlier rewind patch that is
already in. The 200 ms sleep might cause a noticable glitch, but
hopefully we get that one glitch only instead of complete brokenness.
But I don't have any such setup here currently, so maybe any of you
could check this patch and see if it works as intended, and has real effect?
--
David Henningsson, Canonical Ltd.
http://
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Ubuntu Foundations Team Bug Bot (crichton) wrote : | #20 |
The attachment "0001-Ratelimit
[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]
tags: | added: patch |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Lucazade (lucazade) wrote : Re: Choppy sound due to excessive rewinding on low-end (Atom) CPUs | #21 |
@David
I can try it out on atom..
is there a fast way to compile pulseaudio from source?
is this good?
apt-get source pulseaudio
sudo apt-get build-dep pulseaudio
cat ../0001-
.configure && make && sudo make install
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Lucazade (lucazade) wrote : | #22 |
no luck.. patch doesn't help, it is still choppy.
is there any pulseaudio log to check rewinds?
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
David Henningsson (diwic) wrote : Re: [pulseaudio-discuss] Yet another attempt to fight rewinds | #23 |
On 09/19/2011 07:14 PM, Tanu Kaskinen wrote:
> On Mon, 2011-09-19 at 17:49 +0200, David Henningsson wrote:
>> + if (!pa_ratelimit_
>> + pa_log_warn("Okay, I'm sick and tired of all this rewinding. I'm going to sleep for %lu ms!",
>> + s->thread_
>> + usleep(
>> + pa_log_
>> + }
>
> The patch seems otherwise ok to me, but I'd prefer the log prints to
> include the sink name. When a system has e.g. 6 sinks, all of which may
> be in active use at the same time, I really don't like the sink.c
> messages that don't tell which sink is in question... Also, instead of
> just "waking up", maybe it would be useful to have "waking up; not so
> sick and tired anymore" or something else that clearly connects the
> wakeup message to the preceding warning.
>
Sure. I don't mind changing the log messages. (As for sink names, I
think there was a plan to add that to the thread name in the log?)
I'm more concerned about what happens if we wake up and that sleep has
caused an underrun on the ALSA level, what that will do to the
watermark, etc.
--
David Henningsson, Canonical Ltd.
http://
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
David Henningsson (diwic) wrote : Re: Choppy sound due to excessive rewinding on low-end (Atom) CPUs | #24 |
@Lucazade, Either use debian packages, something like:
apt-get source pulseaudio
cd <pulseaudio dir>
quilt push -a
quilt import <patch name>
quilt push
dch -i
dpkg-buildpackage -b
sudo dpkg -i <debian packages>
or use upstream stuff:
http://
Could you send a PulseAudio log with the patch applied (see http://
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Lu Guanqun (guanqun-lu) wrote : Re: Yet another attempt to fight rewinds | #25 |
On Mon, Sep 19, 2011 at 11:49:03PM +0800, David Henningsson wrote:
> A few Atom users have complained about enternal rewinds since they
> upgraded to 0.99.x, see
> https:/
>
> So here's just an idea. As a "last resort", ratelimit the number of
> rewinds. If there are more than 10 rewinds in 200 ms, go to sleep for
> 200 ms. The idea is that during those 200 ms, the client application
> will produce enough packets to fill up the buffer enough. Those packets
> will then be merged into one, due to an earlier rewind patch that is
> already in. The 200 ms sleep might cause a noticable glitch, but
> hopefully we get that one glitch only instead of complete brokenness.
>
> But I don't have any such setup here currently, so maybe any of you
> could check this patch and see if it works as intended, and has real effect?
Hi David,
Thanks for the patch, rate limiting the rewinding seems a good idea,
however, I don't have Atom machine right on my hand. I met the flood of
rewinds before, but that was later root caused to the wrong report of
timing info from underlying device. After this was fixed, no flood of
rewinds were seen.
--
guanqun
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
David Henningsson (diwic) wrote : | #26 |
On 09/20/2011 10:21 AM, Lu Guanqun wrote:
> On Mon, Sep 19, 2011 at 11:49:03PM +0800, David Henningsson wrote:
>> A few Atom users have complained about enternal rewinds since they
>> upgraded to 0.99.x, see
>> https:/
>>
>> So here's just an idea. As a "last resort", ratelimit the number of
>> rewinds. If there are more than 10 rewinds in 200 ms, go to sleep for
>> 200 ms. The idea is that during those 200 ms, the client application
>> will produce enough packets to fill up the buffer enough. Those packets
>> will then be merged into one, due to an earlier rewind patch that is
>> already in. The 200 ms sleep might cause a noticable glitch, but
>> hopefully we get that one glitch only instead of complete brokenness.
>>
>> But I don't have any such setup here currently, so maybe any of you
>> could check this patch and see if it works as intended, and has real effect?
>
> Hi David,
>
> Thanks for the patch, rate limiting the rewinding seems a good idea,
> however, I don't have Atom machine right on my hand. I met the flood of
> rewinds before, but that was later root caused to the wrong report of
> timing info from underlying device. After this was fixed, no flood of
> rewinds were seen.
>
Hi Lu,
This is interesting. If there was something in the kernel that makes
Atom HDA controllers (?) report the wrong timing info, and this was
later fixed, could you point me to that patch?
Thanks in advance!
--
David Henningsson, Canonical Ltd.
http://
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Lucazade (lucazade) wrote : Re: Choppy sound due to excessive rewinding on low-end (Atom) CPUs | #27 |
- pulseverbose.log Edit (562.7 KiB, text/plain)
@David
repackaged using quilt and your guide but unfortunately didn't help.
this is the log with the patch applied
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Arun Raghavan (arunraghavan) wrote : | #28 |
Adding a testing data point. I've run PA 0.99.4 (on Debian, not Ubuntu) on an Acer Aspire One 722, which has a dual-core (but I disabled 1 core for testing) AMD C-50 processor running at 1 GHz (http://
The audio is smooth in Rhythmbox and Totem (except if I play something reasonably stressful like 720p or 1080p video). It's using gst-plugins-good 0.10.30, and with 720p/1080p video, I do see the rewind madness and messed up sound. It continues to happen when I switch to a less stressful video, and fixes itself if I pause for long enough for the sink to suspend.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Lucazade (lucazade) wrote : | #29 |
any news on this? was the log useful?
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
David Henningsson (diwic) wrote : | #30 |
@Lucazade, thanks for the log. It shows that my attempt to solve the problem was not the right one, as the sleep code was called but it did not help. So back to the drawing board, basically.
Arun seems to have replicated the issue on his side, and he's a PulseAudio developer, so I hope he (and I - to the amount I can be of help) can help to resolve the issue.
@Arun, do you know if/when you'll have time to look into this in more depth?
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Arun Raghavan (arunraghavan) wrote : | #31 |
Sorrt if I was unclear in my previous comment -- I can't actually see this problem unless I'm seriously stressing out the CPU at the same time as playing audio (which it appears to me is not the situation in the original report). It would be great to be able to find a way to isolate whether this problem is actually a regression in 0.99.4 (that is, does it work with 0.9.23).
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Arun Raghavan (arunraghavan) wrote : | #32 |
There is a small possibility that his patch might help. Would be nice if someone could try since I haven't really been able to see the problem.
http://
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
simplygades (simplygades-deactivatedaccount) wrote : | #33 |
I would happily test it, however I don't know the way. Am I supposed to apply the patch via bzr as mentioned in the Ubuntu wiki? Sorry but I'm a bit inexperienced in this, if you have the time to provide a link, or tell e what to do I can test it. Thanks!
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Lucazade (lucazade) wrote : | #34 |
- pulseverbose.log Edit (2.3 MiB, text/plain)
unfortunately latest patch didn't help, still choppy behavior.
attached pulse audio log.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Lucazade (lucazade) wrote : | #35 |
- pulseverbose.log Edit (184.6 KiB, text/plain)
after trying the latest patch I've updated the system (dist-upgrade) and get a new kernel (3.0.0-12) and other packages.
after a reboot no soundcard were present in audio capplet and indicator-sound was muted because no device present.. i was reading in the forum yesterday this issue was present also for other users. (funny thing is alsamixer shows my hda intel sound card).
Tried then to play an .mp3 and it was working good.. unfortunately pulseaudio was not working...
so i tried to restart pulseaudio using the wiki log instructions and mp3 is still playing good, incredible.. attached the new log
(sincerly I don't know if pulseaudio is really employed in this test.. hope i've explained it well with my poor english!)
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Lucazade (lucazade) wrote : | #36 |
found a workaround in the meanwhile
applied workarounds found in arch wiki pulse audio and everything is working now
- Glitches, skips or crackling
- Choppy sound
https:/
Hope this is useful to find a proper fix
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Arun Raghavan (arunraghavan) wrote : | #37 |
Could you remove the Choppy Sounds "fix" (that is go back to the default sample rate of 44.1 kHz), and see if the problem remains fixed or comes back?
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Lucazade (lucazade) wrote : | #38 |
tested and the choppy sound fix is not needed.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Singpolyma (singpolyma) wrote : | #39 |
Just to say, I have an eeePC 1101HA 1.33Ghz Atom processor and was having the same issue. https:/
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
David Henningsson (diwic) wrote : | #40 |
Hi, is any of you able to replicate the eternal rewind errors with a special version of PulseAudio, the one in ppa:diwic/
Changed in pulseaudio (Ubuntu): | |
status: | Triaged → Incomplete |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Stefano Lodi (stefano-lodi) wrote : | #41 |
On my Asus eeePC 1101HA, Atom Z520@1.33GHz, Ubuntu 11.10, kernel 3.0.0.12-generic, there are consistent skips as described in previous posts. I'll try the special PulseAudio as soon as possible.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Jan (jankanis) wrote : | #42 |
- pulseaudio log Edit (21.1 MiB, text/plain)
I have the same problem on an Asus eeePC 1101HA, Ubuntu Oneric, kernel 3.0.0-12.20. The 'speaker-test' test plays without stuttering, paplay stutters. However, this problem also occurs if the processor isn't loaded, just running the music player at around 10% cpu.
I tried the archwiki solution, that solved it.
I undid that and installed the fighting-rewinds ppa build. The problem persists. Attached are the logs.
When opening firefox to post this comment, it turned out a flash video played smoothly, probably because it was not using pulseaudio now.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Jan (jankanis) wrote : | #43 |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Stefano Lodi (stefano-lodi) wrote : | #44 |
- Pulseaudio log of 60s of mp3 playing with vlc Edit (14.8 MiB, text/plain)
I cannot reproduce the previous behaviour with the special pulseaudio version. It works better than the one from the distribution (tested with banshee, vlc and youtube). Skips are hardly noticeable and not frequent.
However, when I played a mp3 file with vlc I heard a crackling sound for several seconds at the beginning. I attach the log.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Stefano Lodi (stefano-lodi) wrote : | #45 |
- pulseaudio log after upgrade Edit (32.4 MiB, text/plain)
I realized I did not start banshee as recommended (and I have not uploaded the 2nd log).
I upgraded pulseaudio from ppa:diwic/
During the test, the sound was indeed broken as expected, with long pauses between short fragments correctly played.
I attach both logs.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Stefano Lodi (stefano-lodi) wrote : | #46 |
- Banshee log with upgraded pulseaudio Edit (26.3 MiB, text/plain)
Here is the 2nd log (Banshee).
The total playing time is about 3 minutes.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
David Henningsson (diwic) wrote : | #47 |
@Stefano, many thanks!
From the pulseverbose log it seems like there is a driver problem of not reporting the hw position correctly.
( 135.836| 0.000) D: [alsa-sink] alsa-sink.c: avail: 336892 (filled: 15876)
( 135.836| 0.000) D: [alsa-sink] alsa-sink.c: 90.00 ms left to play; inc threshold = 0.00 ms; dec threshold = 100.00 ms
( 135.836| 0.000) D: [alsa-sink] alsa-sink.c: work_done = 0
( 135.836| 0.000) D: [alsa-sink] alsa-sink.c: Waking up in 60.00ms (system clock).
( 135.896| 0.060) D: [alsa-sink] alsa-sink.c: avail: 336892 (filled: 15876)
( 135.896| 0.000) D: [alsa-sink] alsa-sink.c: 90.00 ms left to play; inc threshold = 0.00 ms; dec threshold = 100.00 ms
( 135.896| 0.000) D: [alsa-sink] alsa-sink.c: work_done = 0
( 135.896| 0.000) D: [alsa-sink] alsa-sink.c: Waking up in 60.00ms (system clock).
Notice there are 60 ms between the first and second check of "avail", yet "avail" is not increasing (which it should be doing, if the audio was playing back). Then, suddenly:
( 136.170| 0.060) D: [alsa-sink] alsa-sink.c: avail: 336892 (filled: 15876)
( 136.170| 0.000) D: [alsa-sink] alsa-sink.c: 90.00 ms left to play; inc threshold = 0.00 ms; dec threshold = 100.00 ms
( 136.170| 0.000) D: [alsa-sink] alsa-sink.c: work_done = 0
( 136.171| 0.000) D: [alsa-sink] alsa-sink.c: Waking up in 60.00ms (system clock).
( 136.231| 0.060) D: [alsa-sink] alsa-sink.c: avail: 689660 (filled: 4294630404)
( 136.231| 0.000) D: [alsa-sink] alsa-sink.c: 0.00 ms left to play; inc threshold = 0.00 ms; dec threshold = 100.00 ms
And then, two seconds later (with a latency of ~100 ms!), the underrun is a fact.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
David Henningsson (diwic) wrote : | #48 |
So, can you try two different methods of position reporting?
Edit /etc/modprobe.
options snd-hda-intel position_fix=1
Reboot your computer and see if it works better, and also try this version:
options snd-hda-intel position_fix=2
Reboot and retry.
Thanks!
summary: |
- Choppy sound due to excessive rewinding on low-end (Atom) CPUs + Choppy sound due to excessive rewinding on Atom chipsets |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
David Henningsson (diwic) wrote : Re: Choppy sound due to excessive rewinding on Atom chipsets | #49 |
I also noticed that you might have had a volume control opened when you tested? If so, make sure to repeat the test case with the same conditions with the new position_fix versions. Thanks!
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Stefano Lodi (stefano-lodi) wrote : | #50 |
Ok, I'll try first with a volume control open and then closed, as I do not remember whether it was open or not.
I see there is an update (1:1.0-
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Stefano Lodi (stefano-lodi) wrote : | #51 |
I guess not with 1:1.0-0ubuntu3.1 if I have to record logs as that version is listed in the official repositories.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
David Henningsson (diwic) wrote : | #52 |
> Should I perform the tests with the installed version 1:1.0-0ubuntu3+
Please use the 1:1.0-0ubuntu3+
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Stefano Lodi (stefano-lodi) wrote : | #53 |
- Pulseaudio log for options snd-hda-intel position_fix=1 Edit (19.5 MiB, text/plain)
1st test: With
- options snd-hda-intel position_fix=1 in /etc/modprobe.
- autospawn = no in ~/.pulse/
result: fine sound until about 1'30 from start, then a few jumps ahead; finally the sound became distorted until the end of the test (about 3').
I kept a volume control window opened during the test.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Stefano Lodi (stefano-lodi) wrote : | #54 |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Stefano Lodi (stefano-lodi) wrote : | #55 |
- Pulseaudio log for options snd-hda-intel position_fix=2 Edit (32.2 MiB, text/plain)
2nd test: With
- options snd-hda-intel position_fix=2 in /etc/modprobe.
- autospawn = no in ~/.pulse/
result: choppy sound, just as in my initial test (that is without the position fix).
I kept a volume control window open during the test.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Stefano Lodi (stefano-lodi) wrote : | #56 |
- Banshee log for options snd-hda-intel position_fix=2 Edit (26.1 MiB, text/plain)
Here's the log of Banshee.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
David Henningsson (diwic) wrote : | #57 |
Thanks. So the most disturbing in the first log is:
( 262.115| 0.000) D: [alsa-sink] alsa-sink.c: Waking up in 43.01ms (system clock).
( 270.521| 8.405) E: [alsa-sink] alsa-util.c: snd_pcm_avail() returned a value that is exceptionally large: 1822684 bytes (10332 ms).
This was probably where it started to be completely broken.
So - what happened during this 8 seconds, that was running at a higher priority than PulseAudio? PulseAudio should have woken up in 43 ms, but it was 8 seconds until it actually woke up - and then PulseAudio is quite bad at recovering from that situation unfortunately.
Did you notice any sudden 8 second hang of your computer?
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Stefano Lodi (stefano-lodi) wrote : | #58 |
No, I do not remember noticing a hang. But I might have moved the Sound preferences volume slider when or before the sound became corrupted. That is the control I used in the last tests.
I have just repeated the test with position_fix=1. The sound distortion I mentioned in the previous test did not occur. But I have heard several jumps (I mean like edit cuts, not seconds of silence).
Since you mentioned priority problems, I opened the System Monitor during today's test. During playback, CPU load is abut 65-70% for both cores. However, when the volume control is being moved, it jumps to 100% and stays there until I stop moving it. Same behavior when I opened Applications and moved the mouse in it.
I hope I am not going outside of scope---but since I upgraded to 11.10 the Application submenus have been consistently unresponsive for seconds. For example, the Office submenu is displayed instantly, but the selection in it is invisible for a few seconds---moving the mouse does nothing and the CPU load is about 100%, dropping when the selection appears again (pulseaudio not running). However, repeating the test, and keeping moving the mouse inside the submenu for many seconds, the interface become unresponsive and CPU load went to 100% and remained there even long after I exited the area of the submenu---but the sound was not affected.
If you like I can attach the logs.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Stefano Lodi (stefano-lodi) wrote : | #59 |
Note that I have not updated my system, currently there are almost 150 updates involving GNOME and Banshee. My system is exactly as it was when I attached the first logs here.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
David Henningsson (diwic) wrote : | #60 |
Thanks for your continued investigation. I'm wondering what to do next. I could submit an LPIB quirk for your particular machine (for that I'll need an alsa-info, see http://
But if that causes higher CPU usage, I'm unsure if that's the right way to go? Or was the high CPU usage (which was attributed to PulseAudio, or something completely different?) independent of position_fix=1 or position_fix=2 ?
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Stefano Lodi (stefano-lodi) wrote : | #61 |
The high cpu usage is independent of position_fix=1. It looks like a problem related to the interface, which for some reason is slow in handling mouse events in submenus of Applications and in the Places menu, to some extent also in file context menus and in Nautilus menus.
On the other hand I am experiencing too much randomness for reliable testing, because at random banshee does not handle well changes in its window. Examples:
- if I resize the lower right view (Name Artist etc.)
- it randomly locks X (cpu at 100%)
- the sound is corrupted, until playback is stopped and restarted (this case occured with pulseaudio running)
- on startup while recording the log as recommended
- refuses to show the contents of its window (cpu at 95% in the Resources window)
- shows the window and then crashes with a GLib-CRITICAL failed assertion
I wonder if it would not be safer to update all the packages except pulseaudio and see if independent problems have been solved.
To summarize the current state
- no pulseaudio: OK
- pulseaudio & no fix: choppy sound, but not always
- pulseaudio & position_fix=1: OK, sound silenced for one second or less if one rearranges windows etc.
Surely, position_fix=1 is a substantial improvement. But as I said I would be very interested in continuing to test it with updated packages.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
David Henningsson (diwic) wrote : | #62 |
Could you please submit an alsa-info, see http://
Also, banshee uses gstreamer internally, so maybe another player (i e Rhythmbox) would still show the bugs, although with less randomness? Or even a raw gstreamer pipeline (the example is for an ogg file):
gst-launch filesrc location=music.ogg ! oggdemux ! vorbisdec ! audioconvert ! audioresample ! pulsesink
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Stefano Lodi (stefano-lodi) wrote : | #63 |
- Locally saved alsa-info output Edit (19.4 KiB, text/plain)
I attach the output of alsa-info.
I'm trying the methods you suggested in a minute.
BTW yesterday I logged pulseaudio using vlc. No choppy sound, however after a random number of minutes (at most 30) the audio output is trapped into an infinite loop a few seconds long, and finally stops completely after say 100 repetitions. If you think it's worth I can attach the logs (compressed). The cpu usage was quite modest.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Stefano Lodi (stefano-lodi) wrote : | #64 |
- vlc + position_fix=1, 2 logs, compressed archive Edit (14.8 MiB, application/x-tar)
I attach two logs obtained using vlc and position_fix=1. The audio output suddenly stopped in both cases.
In the meantime I am continuing the tests using rhythmbox.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Stefano Lodi (stefano-lodi) wrote : | #65 |
Rhythmbox tests: I can still hear the loops I mentioned two posts ago, however in almost all cases there is a recovery after a few loops, that is, rhythmbox jumps ahead and proceeds normally. Gstreamer pipeline still to test.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
David Henningsson (diwic) wrote : | #66 |
Ok, so I'll send a patch for the LPIB quirk for Stefano Lodi's device. If anybody else with an atom-based box, who can confirm that position_fix=1 works for them, could you file a new bug against the alsa-driver package (this will gather the relevant hw info) and point me to it by posting a comment in this bug? Thanks!
Changed in pulseaudio (Ubuntu): | |
assignee: | nobody → David Henningsson (diwic) |
status: | Incomplete → In Progress |
affects: | pulseaudio (Ubuntu) → linux (Ubuntu) |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
David Henningsson (diwic) wrote : [PATCH] ALSA: HDA: Set position fix to LPIB for an Atom/Poulsbo based device | #67 |
For the Asus 1101HA, reporting position by reading the DMA position
buffer map seems unstable and often wrong. The reporter says that
position_fix=LPIB works much better (although not 100%, but this is
probably due to other issues).
The controller chip is an Intel Poulsbo 8086:811b (rev 07) controller,
and complete alsa-info is available here:
https:/
Cc: <email address hidden> (3.0+)
BugLink: http://
Tested-by: Stefano Lodi
Signed-off-by: David Henningsson <email address hidden>
---
sound/
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/sound/
index d1582dd..0746ab4 100644
--- a/sound/
+++ b/sound/
@@ -2506,6 +2506,7 @@ static struct snd_pci_quirk position_fix_list[] __devinitdata = {
SND_PCI_
SND_PCI_
SND_PCI_
+ SND_PCI_
SND_PCI_
SND_PCI_
SND_PCI_
--
1.7.5.4
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
David Henningsson (diwic) wrote : Re: [Asus 1101] Choppy sound due to excessive rewinding on Atom chipsets | #68 |
Upstream accepted patch.
summary: |
- Choppy sound due to excessive rewinding on Atom chipsets + [Asus 1101] Choppy sound due to excessive rewinding on Atom chipsets |
Changed in linux (Ubuntu): | |
status: | In Progress → Fix Committed |
summary: |
- [Asus 1101] Choppy sound due to excessive rewinding on Atom chipsets + [Asus 1101HA] Choppy sound due to excessive rewinding on Atom chipsets |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
David Ayers (ayers) wrote : | #69 |
Setting:
/etc/modprobe.
options snd-hda-intel position_fix=1
as per comment #48 fixes the same issue for my on a Dell mini 12
00:1b.0 Audio device: Intel Corporation System Controller Hub (SCH Poulsbo) HD Audio Controller (rev 07)
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
David Henningsson (diwic) wrote : | #70 |
Thanks David Ayers, can you also send me your alsa-info so I can send a quirk upstream? See https:/
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
David Ayers (ayers) wrote : | #71 |
Sure! I've let the script upload it to:
http://
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
David Henningsson (diwic) wrote : | #72 |
Upstream has now agreed to move all of Poulsbo to LPIB (i e position_fix=1), which I believe is the right thing to do. This will be in the development release shortly. Thanks for all the testing everybody!
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Lucazade (lucazade) wrote : | #73 |
Thanks guys for the hard work, really appreciated!
Changed in linux (Ubuntu): | |
status: | Fix Committed → Fix Released |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Stefano Lodi (stefano-lodi) wrote : | #74 |
David, in the meantime is the recommended version of pulseaudio the one you released in this thread for testing?
Stefano
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
David Henningsson (diwic) wrote : | #75 |
The recommended version to use is the officially released version of PulseAudio, together with the position_fix=1 workaround.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Stefano Lodi (stefano-lodi) wrote : | #76 |
Upgraded to 12.04. The position_fix=1 workaround must still be in alsa-base.conf, right?
Using totem, audio output loops a large number of times, then recovers. The initial bug (seconds of silence) does not occur.
Stefano
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Stefano Lodi (stefano-lodi) wrote : | #77 |
That happens with the workaround. I am testing without it.
Hi Simply Gades and thanks for testing the new PulseAudio version!
Seems you get stuck in eternal rewinding, which is one of the bugs I've trying to work with this cycle. Unfortunately, it's quite hard to fix it.
Do you still get the same breakups if you're using any of these commands to play back sound?
speaker-test -D pulse -t sine -c 2
paplay <name of media file>
Also, do you have a low-end CPU (e g Atom based)?