[pulseaudio-discuss] Adding "timeout=0" to module module-suspend-on-idle
Harsha, Priya
priya.harsha at intel.com
Sat Sep 19 00:18:31 PDT 2009
Thanks,
Harsha.
>
>> Hi,
>>
>> Can anyone help understand this behavior on my system?
>>
>> 1. I try playing a 50 min file using paplay and
>> it works perfectly fine
>>
>> 2. I try playing the following script and it works
>> perfectly fine
>> for ((i=0; i<5; i++)); do echo $i; aplay
>> /usr/share/sounds/alsa/Front_Center.wav; sleep(1); done
>>
>> 3. I try playing the following script (without delay in-between
>> each file playback) and it stops during 5th playback
>> for ((i=0; i<5; i++)); do echo $i; aplay
>> /usr/share/sounds/alsa/Front_Center.wav; done
>
>Stops? In which way? The command just freezes?
The command does not come out to the prompt. On pressing ctrl+C, it comes out and next paplay works. But again running in a script stops after 4th time.
>
>> Somehow, if I change in /etc/pulse/default.pa, add "timeout=0" to
>module module-suspend-on-idle, the 3rd scenario also plays
>> perfectly fine.
>>
>> Can anyone help explain what could be going wrong in 3rd scenario?
>> And why setting timeout=0 solves the issue? Is setting timeout=0
>> the right solution?
>
>Could you run PA as "pulseaudio -vvvvvv" and provide me with the last
>100 lines of output when this 'stopping' happens?
>
Here is the last 100 lines when I ran PA as above.
I: sink-input.c: Freeing input 3 "/usr/share/sounds/alsa/Front_Center.wav"
W: module-audiomanager.c: Get Msg(AM_APP_TERMINATE)
I: client.c: Freed 4 "paplay"
I: protocol-native.c: Connection died.
I: client.c: Created 5 "Native client (UNIX socket client)"
D: protocol-native.c: Protocol version: remote 15, local 15
I: protocol-native.c: Got credentials: uid=500 gid=500 success=1
D: protocol-native.c: SHM possible: yes
D: protocol-native.c: Negotiated SHM: yes
D: module-suspend-on-idle.c: Sink alsa_card0device0.output becomes busy.
W: resampler.c: Support for resampler 'src-linear' not compiled in, reverting to 'auto'.
I: resampler.c: Using resampler 'speex-float-3'
I: resampler.c: Using float32le as working format.
I: resampler.c: Choosing speex quality setting 3.
D: memblockq.c: memblockq requested: maxlength=33554432, tlength=0, base=2, prebuf=0, minreq=1 maxrewind=0
D: memblockq.c: memblockq sanitized: maxlength=33554432, tlength=33554432, base=2, prebuf=0, minreq=2 maxrewind=0
I: sink-input.c: Created input 4 "/usr/share/sounds/alsa/Front_Center.wav" on alsa_card0device0.output with sample spec s16le 1ch 48000Hz and channel map mono
I: protocol-native.c: Requested tlength=250.00 ms, minreq=20.00 ms
D: protocol-native.c: Traditional mode enabled, modifying sink usec only for compat with minreq.
D: memblockq.c: memblockq requested: maxlength=4194304, tlength=24000, base=2, prebuf=22082, minreq=1920 maxrewind=0
D: memblockq.c: memblockq sanitized: maxlength=4194304, tlength=24000, base=2, prebuf=22082, minreq=1920 maxrewind=0
I: protocol-native.c: Final latency 349.95 ms = 210.00 ms + 2*20.00 ms + 99.95 ms
W: module-audiomanager.c: name:paplay
W: module-audiomanager.c: index:4
W: module-audiomanager.c: prio:1
W: module-audiomanager.c: mixable:1
W: module-audiomanager.c: device:(null)
W: module-audiomanager.c: action:0
W: module-audiomanager.c: exceptions:
W: module-audiomanager.c: stream inputs:
W: module-audiomanager.c: name:paplay
W: module-audiomanager.c: index:0
W: module-audiomanager.c: prio:1
W: module-audiomanager.c: mixable:1
W: module-audiomanager.c: device:(null)
W: module-audiomanager.c: current device:(null)
W: module-audiomanager.c: action:0
W: module-audiomanager.c: sink_input driver:protocol-native.c
W: module-audiomanager.c: exceptions:
W: module-audiomanager.c: stream ouputs:
W: module-audiomanager.c: Get Msg(AM_APP_NEW)
E: module-mrst-specific.c: mrst-device-migrate gets called
E: module-mrst-specific.c: mrst_device_migrate: src:NULL, dst:alsa_card0device0.PCM
E: module-mrst-specific.c: pauldebug: do_migration: src:NULL, dst:alsa_card0device0.PCM
W: policy-actions.c: stream(paplay) move to device(alsa_card0device0.PCM) successed!
E: policy-actions.c: stream paplay pre_dev (null)
W: module-audiomanager.c: active streams:
W: module-audiomanager.c: name:paplay, index:0, state:0
W: module-audiomanager.c: internal paused streams:
W: module-audiomanager.c: user paused streams:
W: module-audiomanager.c: Get Msg(AM_STREAM_INPUT_NEW) name:paplay
D: protocol-native.c: Requesting rewind due to end of underrun.
D: protocol-native.c: Underrun on '/usr/share/sounds/alsa/Front_Center.wav', 0 bytes in queue.
D: alsa-sink.c: Requested to rewind 8816 bytes.
D: alsa-sink.c: Limited to 7052 bytes.
D: alsa-sink.c: before: 3526
D: alsa-sink.c: after: 3526
D: alsa-sink.c: Rewound 7052 bytes.
D: sink.c: Processing rewind...
D: source.c: Processing rewind...
W: module-audiomanager.c: Get Msg(AM_STREAM_INPUT_TERMINATE)
W: module-audiomanager.c: active streams:
W: module-audiomanager.c: internal paused streams:
W: module-audiomanager.c: user paused streams:
D: core-subscribe.c: Dropped redundant event due to remove event.
W: module-audiomanager.c: active streams:
W: module-audiomanager.c: internal paused streams:
W: module-audiomanager.c: user paused streams:
D: module-suspend-on-idle.c: Sink alsa_card0device0.output becomes idle.
D: module-suspend-on-idle.c: Sink alsa_card0device0.output becomes idle.
D: core.c: Hmm, no streams around, trying to vacuum.
I: sink-input.c: Freeing input 4 "/usr/share/sounds/alsa/Front_Center.wav"
W: module-audiomanager.c: Get Msg(AM_APP_TERMINATE)
I: client.c: Freed 5 "paplay"
I: protocol-native.c: Connection died.
I: client.c: Created 6 "Native client (UNIX socket client)"
D: protocol-native.c: Protocol version: remote 15, local 15
I: protocol-native.c: Got credentials: uid=500 gid=500 success=1
D: protocol-native.c: SHM possible: yes
D: protocol-native.c: Negotiated SHM: yes
D: module-suspend-on-idle.c: Sink alsa_card0device0.output becomes busy.
W: resampler.c: Support for resampler 'src-linear' not compiled in, reverting to 'auto'.
I: resampler.c: Using resampler 'speex-float-3'
I: resampler.c: Using float32le as working format.
I: resampler.c: Choosing speex quality setting 3.
D: memblockq.c: memblockq requested: maxlength=33554432, tlength=0, base=2, prebuf=0, minreq=1 maxrewind=0
D: memblockq.c: memblockq sanitized: maxlength=33554432, tlength=33554432, base=2, prebuf=0, minreq=2 maxrewind=0
I: sink-input.c: Created input 5 "/usr/share/sounds/alsa/Front_Center.wav" on alsa_card0device0.output with sample spec s16le 1ch 48000Hz and channel map mono
I: protocol-native.c: Requested tlength=250.00 ms, minreq=20.00 ms
D: protocol-native.c: Traditional mode enabled, modifying sink usec only for compat with minreq.
D: memblockq.c: memblockq requested: maxlength=4194304, tlength=24000, base=2, prebuf=22082, minreq=1920 maxrewind=0
D: memblockq.c: memblockq sanitized: maxlength=4194304, tlength=24000, base=2, prebuf=22082, minreq=1920 maxrewind=0
I: protocol-native.c: Final latency 349.95 ms = 210.00 ms + 2*20.00 ms + 99.95 ms
W: module-audiomanager.c: name:paplay
W: module-audiomanager.c: index:5
W: module-audiomanager.c: prio:1
W: module-audiomanager.c: mixable:1
W: module-audiomanager.c: device:(null)
W: module-audiomanager.c: action:0
W: module-audiomanager.c: exceptions:
W: module-audiomanager.c: stream inputs:
W: module-audiomanager.c: name:paplay
W: module-audiomanager.c: index:0
W: module-audiomanager.c: prio:1
W: module-audiomanager.c: mixable:1
W: module-audiomanager.c: device:(null)
W: module-audiomanager.c: current device:(null)
W: module-audiomanager.c: action:0
W: module-audiomanager.c: sink_input driver:protocol-native.c
W: module-audiomanager.c: exceptions:
W: module-audiomanager.c: stream ouputs:
W: module-audiomanager.c: Get Msg(AM_APP_NEW)
E: module-mrst-specific.c: mrst-device-migrate gets called
E: module-mrst-specific.c: mrst_device_migrate: src:NULL, dst:alsa_card0device0.PCM
E: module-mrst-specific.c: pauldebug: do_migration: src:NULL, dst:alsa_card0device0.PCM
W: policy-actions.c: stream(paplay) move to device(alsa_card0device0.PCM) successed!
E: policy-actions.c: stream paplay pre_dev (null)
W: module-audiomanager.c: active streams:
W: module-audiomanager.c: name:paplay, index:0, state:0
W: module-audiomanager.c: internal paused streams:
W: module-audiomanager.c: user paused streams:
W: module-audiomanager.c: Get Msg(AM_STREAM_INPUT_NEW) name:paplay
D: protocol-native.c: Requesting rewind due to end of underrun.
D: protocol-native.c: Underrun on '/usr/share/sounds/alsa/Front_Center.wav', 0 bytes in queue.
D: alsa-sink.c: Requested to rewind 8816 bytes.
W: module-audiomanager.c: Get Msg(AM_STREAM_INPUT_TERMINATE)
W: module-audiomanager.c: active streams:
D: alsa-sink.c: Limited to 7052 bytes.
W: module-audiomanager.c: internal paused streams:
D: alsa-sink.c: before: 3526
W: module-audiomanager.c: user paused streams:
D: alsa-sink.c: after: 3526
D: alsa-sink.c: Rewound 7052 bytes.
D: sink.c: Processing rewind...
D: source.c: Processing rewind...
D: core-subscribe.c: Dropped redundant event due to remove event.
W: module-audiomanager.c: active streams:
W: module-audiomanager.c: internal paused streams:
W: module-audiomanager.c: user paused streams:
D: module-suspend-on-idle.c: Sink alsa_card0device0.output becomes idle.
D: module-suspend-on-idle.c: Sink alsa_card0device0.output becomes idle.
D: core.c: Hmm, no streams around, trying to vacuum.
I: sink-input.c: Freeing input 5 "/usr/share/sounds/alsa/Front_Center.wav"
W: module-audiomanager.c: Get Msg(AM_APP_TERMINATE)
I: client.c: Freed 6 "paplay"
I: protocol-native.c: Connection died.
I: client.c: Created 7 "Native client (UNIX socket client)"
D: protocol-native.c: Protocol version: remote 15, local 15
I: protocol-native.c: Got credentials: uid=500 gid=500 success=1
D: protocol-native.c: SHM possible: yes
D: protocol-native.c: Negotiated SHM: yes
D: module-suspend-on-idle.c: Sink alsa_card0device0.output becomes busy.
W: resampler.c: Support for resampler 'src-linear' not compiled in, reverting to 'auto'.
I: resampler.c: Using resampler 'speex-float-3'
I: resampler.c: Using float32le as working format.
I: resampler.c: Choosing speex quality setting 3.
D: memblockq.c: memblockq requested: maxlength=33554432, tlength=0, base=2, prebuf=0, minreq=1 maxrewind=0
D: memblockq.c: memblockq sanitized: maxlength=33554432, tlength=33554432, base=2, prebuf=0, minreq=2 maxrewind=0
I: sink-input.c: Created input 6 "/usr/share/sounds/alsa/Front_Center.wav" on alsa_card0device0.output with sample spec s16le 1ch 48000Hz and channel map mono
I: protocol-native.c: Requested tlength=250.00 ms, minreq=20.00 ms
D: protocol-native.c: Traditional mode enabled, modifying sink usec only for compat with minreq.
D: memblockq.c: memblockq requested: maxlength=4194304, tlength=24000, base=2, prebuf=22082, minreq=1920 maxrewind=0
D: memblockq.c: memblockq sanitized: maxlength=4194304, tlength=24000, base=2, prebuf=22082, minreq=1920 maxrewind=0
I: protocol-native.c: Final latency 349.95 ms = 210.00 ms + 2*20.00 ms + 99.95 ms
W: module-audiomanager.c: name:paplay
W: module-audiomanager.c: index:6
W: module-audiomanager.c: prio:1
W: module-audiomanager.c: mixable:1
W: module-audiomanager.c: device:(null)
W: module-audiomanager.c: action:0
W: module-audiomanager.c: exceptions:
W: module-audiomanager.c: stream inputs:
W: module-audiomanager.c: name:paplay
W: module-audiomanager.c: index:0
W: module-audiomanager.c: prio:1
W: module-audiomanager.c: mixable:1
W: module-audiomanager.c: device:(null)
W: module-audiomanager.c: current device:(null)
W: module-audiomanager.c: action:0
W: module-audiomanager.c: sink_input driver:protocol-native.c
W: module-audiomanager.c: exceptions:
W: module-audiomanager.c: stream ouputs:
W: module-audiomanager.c: Get Msg(AM_APP_NEW)
E: module-mrst-specific.c: mrst-device-migrate gets called
E: module-mrst-specific.c: mrst_device_migrate: src:NULL, dst:alsa_card0device0.PCM
E: module-mrst-specific.c: pauldebug: do_migration: src:NULL, dst:alsa_card0device0.PCM
W: policy-actions.c: stream(paplay) move to device(alsa_card0device0.PCM) successed!
E: policy-actions.c: stream paplay pre_dev (null)
W: module-audiomanager.c: active streams:
W: module-audiomanager.c: name:paplay, index:0, state:0
W: module-audiomanager.c: internal paused streams:
W: module-audiomanager.c: user paused streams:
W: module-audiomanager.c: Get Msg(AM_STREAM_INPUT_NEW) name:paplay
D: protocol-native.c: Requesting rewind due to end of underrun
>Lennart
>
More information about the pulseaudio-discuss
mailing list