-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No sound playback devices available after in-place upgrade to 4.2 #8560
Comments
Possibly related or duplicate issue: #8495 |
I'm also affected by this, but my audio device is shown in |
I wonder if running a qube with pulseaudio-qubes helps you the same as it does for me? |
@moonlitOrca @verygreen Can you provide the output of |
in dom0 I assume?
|
Nope, in the affected VM @verygreen. |
"Affected"? as in while the sound does not work? For me external action (starting sound in pulseaudio-enabled VMs) fixes all other VMs |
@verygreen does the fix persist across a dom0 reboot? |
this is now has the sound is working (I restarted this qube for other reasons after doing pulse-enable qube start) now this one below had sound working for some time but I just tested and it does not have it workign anymore again, it was only started at dom0 startup time.
Let me try on other machine if the "fix" is persistent across restarts (it probably does not), I'll report in a bit |
Well, the other machine does not work. In a qube where I switch to pulseaudio-qube instead of pipewire, audio applications that start hang on attempt to audio output.
the difference between the first system where the audio works and with the second where it does not is the first is a desktop with hdmi used for audio. The second system is a thhinkpad T480 with internal audio. What's interesting is that I have another same spec T480 that was installed as Qubes 4.2 for a tst (rc2 back then, but now rc4) and sound works there just fine. I am not yet sure what to make out of this. I can't easily reboot my desktop where sound now works but I suspect it'll need a similar "start qube with old pulseaudio" first given that one of the qubes that was started on system startup lost it's sound now that I killed the pulseaudio-enabled qube. |
This indicates that:
|
On the thinkpad that does not work status of pulseaudio looks like this which is probably bad:
|
Possibly related: #8816 |
Which kernel version in dom0? Does opening pavucontrol in dom0 help? |
opening pavucontrol in dom0 does not help. dom0 kernel on the non-working Thinkpad is 6.1.62-1.qubes.fc37 (on working in 6.1.57 or some such, but I doubt it's related) |
Qubes: R4.2 (clean install, not in-place) I have a debian-12-minimal based audiovm. Output audio works correctly via built-in stereo, JACK or USB headphones. Input audio only works if headphones have microphones. Input does not work if I attach the built-in microphone from dom0 to the audio client and try to record:
Pavucontrol in sys-audio shows when I have the headphones with microphone connected in the the When attaching the USB headphone to the client, In the client: The microphone worked before having an audiovm, but it can possibly be related to pipewire not detecting the built-in microphone while pulseaudio in Dom0 did in R4.1. Can I provide more information to help debug this? |
This message comes from the Qubes OS PipeWire module and indicates that dom0 (or the AudioVM) did not provide audio samples quickly enough. This situation will cause a glitch, but the code is designed to recover from this error once audio samples are available again. Does this message appear a few times after audio recording is requested, or do you get an endless stream of such messages? The former is expected due to a known limitation in how audio recording works in Qubes OS. The latter indicates one of two things:
A third possibility is that
Does the built-in microphone work when attached to dom0? I’m wondering if the built-in microphone is powered down by default and must be powered up via ACPI and/or I²C. Neither of these are exposed to VMs, so this would prevent the AudioVM from being able to use the device.
I don’t think this is a problem with PipeWire, but rather a problem with your microphone not being assignable to a VM.
If the microphone works in dom0, then I suspect that this is not a Qubes OS bug, but rather a limitation of your hardware. |
Endless stream of these messages after trying to record audio.
I did not write that phrase well. When I said it worked in R4.1 with pulseaudio and Dom0, I meant Dom0 as the audiovm. The microphone worked in R4.1 when assining to DomUs.
Also, the microphone I will however, try to record without an audiovm (dom0 as the audiovm) and see what happens in R4.2. Maybe related: #4054 (comment) |
Does PulseAudio work? Install
Do you mean that PCI passthrough of the sound card works, or that assigning the |
Will try soonish.
I mean that assining dom0:mic to with the Qubes GUI or CLI worked in R4.1. But there could be other reasons, will try Pulseaudio and see. |
Thanks! If the problem is what I think it is, this won’t help, unfortunately.
Was the actual PCI device with the microphone attached to dom0 or to an AudioVM? Can you try detaching the PCI device from the AudioVM, rebooting, attaching it to dom0, and setting the AudioVM’s AudioVM to dom0? You can then persistently assign |
Despite the device always named |
Also, an AudioVM can have its own AudioVM and this can be chained an arbitrary number of times, though there is a latency hit each time. |
Well, with pulseaudio works....
With the soundcard held by Dom0 and uninstalling pipewire and installing pulseaudio in the client, microphone is working, as show in the previous The soundcard was being held by the AudioVM, while the microphone, unnatached, remained in dom0 until I assign it to a qube.
Sorry, I didn't get this part, isn't the Or you really mean this: qvm-device mic attach disp-sys-audio dom:mic My audio template only has pipewire. Attaching microphone to custom AudioVM (only has pipewire):
Setting The journal from
While if I attach the microphone to the pulseaudio browser app qube that has audiovm set to qvm-device mic attach browser-pulseaudio dom:mic No error messages in Dom0, no journal messages in the qube, built-in microphone works. Qrexec policy error is also ruled out as I can't find a denied rule from the Dom0 journal. |
Cloned the audio template and did the same as above, uninstalled pipewire and installed pulseaudio packages: user@sys-audio-pulse:~$ apt list --installed pulse*
Listing... Done
pulseaudio-qubes/unknown,now 4.2.11-1+deb12u1 amd64 [installed]
pulseaudio-utils/stable,now 16.1+dfsg1-2+b1 amd64 [installed,automatic]
pulseaudio/stable,now 16.1+dfsg1-2+b1 amd64 [installed]
user@sys-audio-pulse:~$ apt list --installed pipe*
Listing... Done
user@sys-audio-pulse:~$ And create an hvm named Set the client app qube Started manually on the server (AudioVM): qvm-start-daemon --all --watch Restarted the client qvm-start-daemon logs:
Summary: custom AudioVM or dom0 as the AudioVM with pulseaudio and client with pulseaudio allows the microphone to work. I will try to not autostart the qvm-start-daemon on the pipewire audiovm and see what happens by starting it manually.... |
Actually, I can't do this because the client needs to have pulseaudio for the microphone to be attached else it says that pulseaudio is not running. So I tested:
|
On Mon, Jan 22, 2024 at 03:03:32AM -0800, ben-grande wrote:
> I will try to not autostart the qvm-start-daemon on the pipewire audiovm and see what happens by starting it manually....
Actually, I can't do this because the client needs to have pulseaudio for the microphone to be attached else it says that pulseaudio is not running.
You don't need pulseaudio daemon for that, just pulseaudio libs.
pipewire-pulse should + pulseaudio-libs should be enough.
…--
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
|
So, I tried with sys-audio based on debian-12-xfce and also fedora-38-xfce and also the browser qube being based on debian-12-xfce.... no success. Mic can be attached but does not work:
|
How to file a helpful issue
Qubes OS release
4.2RC3
Brief summary
After update to QubesOS 4.2, I am no longer generally able to play any audio or have sound, and this appears to be because the audio device is no longer recognized as an output. This also causes any video that I attempt to play to hang forever as it seems that the player (VLC for example) attempts to play sound and gets some sort of error which causes the (visual parts as well) the video itself to hang. Very occasionally, a reboot seems to allow sound to work until I shutdown.
Steps to reproduce
Expected behavior
Sound worked perfectly on 4.1, and so I expected the same would be true of 4.2. Perhaps some configuration in the script is not being done correctly to link the new pipewire infrastructure for dom0?
Actual behavior
Sound output is no longer supported. Very occasionally on boot, it does seem to work. I posted on the forums here: https://forum.qubes-os.org/t/audio-no-longer-works-at-all-in-dom0-and-vms-after-upgrading-to-4-2/20839/6 and it seems that others have had the same issue, though some seem to have been able to fix it from the terminal. This did seem to work for me for one boot, but then no longer worked. I very strongly suspect that this is an issue with the update script, so I could simply clean install QubesOS 4.2, but then I would be unable to test any fix for the bug, so I am waiting on that option :-)
The text was updated successfully, but these errors were encountered: