Bug 76064

Summary: sticky output device
Product: PulseAudio Reporter: hm <haarman>
Component: miscAssignee: pulseaudio-bugs
Status: RESOLVED MOVED QA Contact: pulseaudio-bugs
Severity: normal    
Priority: medium CC: lennart
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: output off: pulseaudio -vvv and pactl set-card-profile alsa_card.pci-0000_00_1b.0 off
initial (non complete) log

Description hm 2014-03-12 09:38:06 UTC
Created attachment 95644 [details]
output off: pulseaudio -vvv and pactl set-card-profile alsa_card.pci-0000_00_1b.0 off

when selecting the profile to off the card still appears in the output devices
Comment 1 Tanu Kaskinen 2014-03-12 09:49:22 UTC
I was suspecting that setting the profile to "off" wouldn't remove the sink, but it does get removed as it should. So the log doesn't show anything going wrong.

If you say that "the card still appears in the output devices", I guess what happens is that when you restart pulseaudio, the card profile isn't "off" any more. I suspect module-switch-on-port-available is to blame. If you comment out module-switch-on-port-available from /etc/pulse/default.pa, does that fix the problem?
Comment 2 hm 2014-03-12 13:19:21 UTC
Created attachment 95660 [details]
initial (non complete) log
Comment 3 hm 2014-03-12 13:20:25 UTC
It actually does not seem to happen any more. Maybe the procedure that you gave me resetted some stuff? Also the 5.1 option now suddenly gives sound. While before when I selected the off profile it went instant, now sometimes it takes a while. I attached the first log I made which I did not send initially because the terminal history was not long enough.
Comment 4 Raymond 2014-03-12 13:59:47 UTC
your are using module-loopback with hdmi 

I: [alsa-sink-HDMI 2] module-loopback.c: Max request changed
D: [alsa-sink-HDMI 2] alsa-sink.c: Requesting rewind due to latency change.
D: [alsa-sink-HDMI 2] alsa-sink.c: Latency set to 20.00ms
D: [alsa-sink-HDMI 2] alsa-sink.c: hwbuf_unused=62008
D: [alsa-sink-HDMI 2] alsa-sink.c: setting avail_min=15944
D: [alsa-sink-HDMI 2] alsa-sink.c: Requested to rewind 65536 bytes.
D: [alsa-sink-HDMI 2] alsa-sink.c: Limited to 8748 bytes.
D: [alsa-sink-HDMI 2] alsa-sink.c: before: 2187
D: [alsa-sink-HDMI 2] alsa-sink.c: after: 2187
D: [alsa-sink-HDMI 2] alsa-sink.c: Rewound 8748 bytes.
D: [alsa-sink-HDMI 2] sink.c: Processing rewind...
D: [alsa-sink-HDMI 2] sink-input.c: Have to rewind 8748 bytes on render memblockq.
D: [alsa-sink-HDMI 2] source.c: Processing rewind...
D: [pulseaudio] module-loopback.c: Loopback overall latency is 0.83 ms + 30.87 ms + 0.00 ms = 31.71 ms
D: [pulseaudio] module-loopback.c: Should buffer 7032 bytes, buffered at minimum 0 bytes
D: [pulseaudio] module-loopback.c: [alsa_output.pci-0000_00_1b.0.hdmi-stereo-extra2] Updated sampling rate to 43925 Hz
Comment 5 hm 2014-03-12 15:48:35 UTC
Is the loopback module a problem? I just have an entry:

load-module module-loopback source=VirtualDefault.monitor

in default.pa
Comment 6 GitLab Migration User 2018-07-30 10:08:17 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/228.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.