Summary: | media-video/pipewire broke, no output devices, missing systemd user | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Stefan de Konink <stefan> |
Component: | Current packages | Assignee: | Sam James <sam> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | 89q1r14hd, asturm, gentoo, jstein, leio |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
equery output
build.log Helvum output |
Description
Stefan de Konink
2022-03-10 01:19:55 UTC
Could you provide: - equery f pipewire? - What commit did you try it at? - Build log if possible of pipewire? (may want to do: (cd /var/db/repos/gentoo/media-video/pipewire && sudo ebuild pipewire-9999.ebuild clean install) Created attachment 766661 [details]
equery output
Tested versions;
media-video/pipewire-0.3.48-r1 and commit 8dccfbce4c17139fa50808b7110bcbf959ded1c6
gcc (Gentoo 11.2.1_p20220115 p4) 11.2.1 20220115
Created attachment 766662 [details]
build.log
When manually creating mkdir /home/skinkie/.config/systemd/user/sockets.target.wants mkdir -p /home/skinkie/.config/systemd/user/default.target.wants The following commands can be executed succesfully. systemctl enable --user pipewire.socket systemctl enable --user pipewire-pulse systemctl enable --user wireplumber But still only "Dummy Output" exists, not the alsa output. Created attachment 766663 [details]
Helvum output
skinkie@thinkpad ~ $ pactl list cards Card #40 Name: alsa_card.pci-0000_05_00.1 Driver: alsa Owner Module: n/a Properties: api.acp.auto-port = "false" api.acp.auto-profile = "false" api.alsa.card = "0" api.alsa.card.longname = "HD-Audio Generic at 0xc0888000 irq 69" api.alsa.card.name = "HD-Audio Generic" api.alsa.path = "hw:0" api.alsa.use-acp = "true" api.dbus.ReserveDevice1 = "Audio0" device.api = "alsa" device.bus = "pci" device.bus_path = "pci-0000:05:00.1" device.description = "Raven/Raven2/Fenghuang HDMI/DP Audio Controller" device.enum.api = "udev" device.icon_name = "audio-card-analog-pci" device.name = "alsa_card.pci-0000_05_00.1" device.nick = "HD-Audio Generic" device.plugged.usec = "3620819" device.product.id = "5598" device.product.name = "Raven/Raven2/Fenghuang HDMI/DP Audio Controller" device.subsystem = "sound" device.sysfs.path = "/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.1/sound/card0" device.vendor.id = "4098" device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]" media.class = "Audio/Device" factory.id = "14" client.id = "34" object.id = "39" object.serial = "40" object.path = "alsa:pcm:0" alsa.card = "0" alsa.card_name = "HD-Audio Generic" alsa.long_card_name = "HD-Audio Generic at 0xc0888000 irq 69" alsa.driver_name = "snd_hda_intel" device.string = "0" Profiles: off: Off (sinks: 0, sources: 0, priority: 0, available: yes) output:hdmi-stereo: Digital Stereo (HDMI) Output (sinks: 1, sources: 0, priority: 5900, available: no) output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (sinks: 1, sources: 0, priority: 5700, available: no) output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (sinks: 1, sources: 0, priority: 5700, available: no) output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (sinks: 1, sources: 0, priority: 800, available: no) output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (sinks: 1, sources: 0, priority: 800, available: no) output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 600, available: no) output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 600, available: no) output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 600, available: no) output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 600, available: no) pro-audio: Pro Audio (sinks: 3, sources: 0, priority: 1, available: yes) Active Profile: off Ports: hdmi-output-0: HDMI / DisplayPort (type: HDMI, priority: 5900, latency offset: 0 usec, availability group: Legacy 1, not available) Properties: port.type = "hdmi" port.availability-group = "Legacy 1" device.icon_name = "video-display" card.profile.port = "0" Part of profile(s): output:hdmi-stereo, output:hdmi-surround, output:hdmi-surround71 hdmi-output-1: HDMI / DisplayPort 2 (type: HDMI, priority: 5800, latency offset: 0 usec, availability group: Legacy 2, not available) Properties: port.type = "hdmi" port.availability-group = "Legacy 2" device.icon_name = "video-display" card.profile.port = "1" Part of profile(s): output:hdmi-stereo-extra1, output:hdmi-surround-extra1, output:hdmi-surround71-extra1 hdmi-output-2: HDMI / DisplayPort 3 (type: HDMI, priority: 5700, latency offset: 0 usec, availability group: Legacy 3, not available) Properties: port.type = "hdmi" port.availability-group = "Legacy 3" device.icon_name = "video-display" card.profile.port = "2" Part of profile(s): output:hdmi-stereo-extra2, output:hdmi-surround-extra2, output:hdmi-surround71-extra2 Card #41 Name: alsa_card.pci-0000_05_00.6 Driver: alsa Owner Module: n/a Properties: api.acp.auto-port = "false" api.acp.auto-profile = "false" api.alsa.card = "1" api.alsa.card.longname = "HD-Audio Generic at 0xc0880000 irq 70" api.alsa.card.name = "HD-Audio Generic" api.alsa.path = "hw:1" api.alsa.use-acp = "true" api.dbus.ReserveDevice1 = "Audio1" device.api = "alsa" device.bus = "pci" device.bus_path = "pci-0000:05:00.6" device.description = "Family 17h (Models 10h-1fh) HD Audio Controller" device.enum.api = "udev" device.icon_name = "audio-card-analog-pci" device.name = "alsa_card.pci-0000_05_00.6" device.nick = "HD-Audio Generic" device.plugged.usec = "3645664" device.product.id = "5603" device.product.name = "Family 17h (Models 10h-1fh) HD Audio Controller" device.subsystem = "sound" device.sysfs.path = "/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.6/sound/card1" device.vendor.id = "4130" device.vendor.name = "Advanced Micro Devices, Inc. [AMD]" media.class = "Audio/Device" factory.id = "14" client.id = "34" object.id = "40" object.serial = "41" object.path = "alsa:pcm:1" alsa.card = "1" alsa.card_name = "HD-Audio Generic" alsa.long_card_name = "HD-Audio Generic at 0xc0880000 irq 70" alsa.driver_name = "snd_hda_intel" device.string = "1" Profiles: off: Off (sinks: 0, sources: 0, priority: 0, available: yes) output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (sinks: 1, sources: 1, priority: 6565, available: yes) output:analog-stereo: Analog Stereo Output (sinks: 1, sources: 0, priority: 6500, available: yes) input:analog-stereo: Analog Stereo Input (sinks: 0, sources: 1, priority: 65, available: yes) pro-audio: Pro Audio (sinks: 1, sources: 1, priority: 1, available: yes) Active Profile: input:analog-stereo Ports: analog-input-internal-mic: Internal Microphone (type: Mic, priority: 8900, latency offset: 0 usec, availability group: Legacy 1, availability unknown) Properties: port.type = "mic" port.availability-group = "Legacy 1" device.icon_name = "audio-input-microphone" card.profile.port = "0" Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo analog-input-mic: Microphone (type: Mic, priority: 8700, latency offset: 0 usec, availability group: Legacy 2, not available) Properties: port.type = "mic" port.availability-group = "Legacy 2" device.icon_name = "audio-input-microphone" card.profile.port = "1" Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo analog-output-speaker: Speakers (type: Speaker, priority: 10000, latency offset: 0 usec, availability group: Legacy 3, availability unknown) Properties: port.type = "speaker" port.availability-group = "Legacy 3" device.icon_name = "audio-speakers" card.profile.port = "2" Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo analog-output-headphones: Headphones (type: Headphones, priority: 9900, latency offset: 0 usec, availability group: Legacy 4, not available) Properties: port.type = "headphones" port.availability-group = "Legacy 4" device.icon_name = "audio-headphones" card.profile.port = "3" Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo skinkie@thinkpad ~ $ pactl list sinks Sink #33 State: SUSPENDED Name: auto_null Description: Dummy Output Driver: PipeWire Sample Specification: float32le 2ch 48000Hz Channel Map: front-left,front-right Owner Module: 4294967295 Mute: no Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB balance 0.00 Base Volume: 65536 / 100% / 0.00 dB Monitor Source: auto_null.monitor Latency: 0 usec, configured 0 usec Flags: DECIBEL_VOLUME LATENCY Properties: node.name = "auto_null" device.description = "Dummy Output" audio.rate = "48000" audio.channels = "2" audio.position = "FL,FR" media.class = "Audio/Sink" factory.name = "support.null-audio-sink" node.virtual = "true" monitor.channel-volumes = "true" factory.id = "18" client.id = "32" clock.quantum-limit = "8192" node.driver = "true" factory.mode = "merge" audio.adapt.follower = "" library.name = "audioconvert/libspa-audioconvert" object.id = "31" object.serial = "33" Formats: pcm When connecting an USB audio device, the sink does appear for that device. And is capable of receiving audio. There's at least two different issues being conflated. `systemctl --user enable` not working is almost certainly not a PipeWire but a systemd issue and should be addressed as such. Regarding missing devices I would suggest manually restarting the user services with `systemctl --user daemon-reload && systemctl --user restart pipewire{,-pulse}.socket` and if that resolves the issue, then a likely cause is that something was using the missing device(s) when PipeWire was initially started (often GDM). In such cases removing the audio group from all users who have it, may help but there's been unverified reports that rarely such race conditions still happen even with only ACL in place and no audio group being used. (In reply to Niklāvs Koļesņikovs from comment #9) > There's at least two different issues being conflated. > > `systemctl --user enable` not working is almost certainly not a PipeWire but > a systemd issue and should be addressed as such. > > Regarding missing devices I would suggest manually restarting the user > services with `systemctl --user daemon-reload && systemctl --user restart > pipewire{,-pulse}.socket` and if that resolves the issue, then a likely > cause is that something was using the missing device(s) when PipeWire was > initially started (often GDM). In such cases removing the audio group from > all users who have it, may help but there's been unverified reports that > rarely such race conditions still happen even with only ACL in place and no > audio group being used. There is a single user in the audio group, that is myself. My issue is exclusively related to my internal sound card. The USB sound cards that I have tried, don't have issues. When applying your restart commands I end up with audio into the dummy output. Ok... so when trying to figure this out and starting pavucontrol-qt. I noticed that my profile was on "Analog Stereo Input" instead of "Analog Stereo Duplex". That resolves at least the audio problem. Is there any remaining PW or audio issues then? It seems like you already found the issue and corrected it yourself (on-board audio being set to an input only profile). If there's no more problems remaining, I suggest closing this as fixed or not a bug (since it was working as configured). (In reply to Niklāvs Koļesņikovs from comment #11) > Is there any remaining PW or audio issues then? It seems like you already > found the issue and corrected it yourself (on-board audio being set to an > input only profile). > > If there's no more problems remaining, I suggest closing this as fixed or > not a bug (since it was working as configured). The problem is still: if all pipewire stuff is removed from .config/systemd/user, it cannot be installed without manual intervention. I think that part should still be checked? I'm not sure what's going on there but it's very unlikely to be a PW issue. Instead, I think, it's something to do with systemd and should be addressed in a different bug that's specifically about sys-apps/systemd. |