Sounds not working in Tor Browser in whonix-workstation-17

Hi folks, I am experiencing the no sounds issue with tor browser 13.0.13 in whonix ws. I cannot find the sink of the whonix-ws-17 qube in the Audio control playback tab. other qubes works fine. I not sure its Tor Browser issue or the QubesOS issue. But I remember the sounds works in QubesOS 4.2.0.

Did it ever work in whonix-ws-17 qubes?
If yes then when did it stop working?

1 Like

Yes it used to, but I don’t know when it stop working exactly. only thing am sure is its working before R4.2.1 rollout. maybe Mar 13, 2024. I remember it still working at the time that I write my first post on this forum. and reinstall QubesOS with default does not solve the problem.

However, Tor Project Release 13.0.13 at March 22, 2024. so it may be associated with Tor Browser Update.

Update: Its unlikely Tor Browser’s issue. Its likely sink issue. I found that other qube has sink appeared in playback tab when the qube start up with no apps running.

Related: port from pulseaudio to pipewire for audio support - #24 by marmarek - Development - Whonix Forum

1 Like

This seems to be the problem:
http://forums.dds6qkxpwdeubwucdiaord2xgbbeyds25rbsgr73tbfpqpt4a6vjwsyd.onion/t/port-from-pulseaudio-to-pipewire-for-audio-support/16879/22
Clearnet link:
port from pulseaudio to pipewire for audio support - #22 by marmarek - Development - Whonix Forum
You can try to install pipewire-pulse package or wait for the update to be moved to stable.

1 Like

I see. Thank you guys for this wonderful project and community.

Update: Problem is not solved. After few testing, This issue seems to be the audio server issue.

I’ve tried to start pipewire/pulseaudio manually. after the audio server started the sink appeared in playback tabs. but still no sound.

I made two test separately for pipewire+pipewire-pulse and pulseaudio in whonix-ws-17.

heres systemd messages from first pipewire test result.

pipewire in whonix-ws-17-dvm (NOT working)

Apr 07 14:44:18 host systemd[843]: Started pipewire.service - PipeWire Multimedia Service.
Apr 07 14:44:18 host pipewire[3147]: mod.rt: Failed to connect to session bus: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
Apr 07 14:44:18 host pipewire[3147]: spa.dbus: Failed to connect to session bus: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
Apr 07 14:44:18 host pipewire[3147]: mod.portal: Failed to connect to session bus: Input/output error

pipewire in debian-12-dvm (working)

Apr 07 14:51:43 disp8906 systemd[646]: Started pipewire.service - PipeWire Multimedia Service.
Apr 07 14:51:43 disp8906 pipewire[670]: mod.rt: Can't find org.freedesktop.portal.Desktop. Is xdg-desktop-portal running?
Apr 07 14:51:43 disp8906 pipewire[670]: mod.rt: found session bus but no portal

pipewire-pulse in whonix-ws-17-dvm (NOT working)

Apr 07 14:44:23 host systemd[843]: Started pipewire-pulse.service - PipeWire PulseAudio.
Apr 07 14:44:23 host pipewire-pulse[3215]: mod.rt: Failed to connect to session bus: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
Apr 07 14:44:23 host pipewire-pulse[3215]: spa.dbus: Failed to connect to session bus: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11

pipewire-pulse in debian-12-dvm (working)

Apr 07 14:51:43 disp8906 systemd[646]: Started pipewire-pulse.service - PipeWire PulseAudio.
Apr 07 14:51:43 disp8906 pipewire-pulse[672]: mod.rt: Can't find org.freedesktop.portal.Desktop. Is xdg-desktop-portal runnin>
Apr 07 14:51:43 disp8906 pipewire-pulse[672]: mod.rt: found session bus but no portal

Heres second pulseaudio test result:

pulseaudio in whonix-ws-17-dvm (NOT working)

Apr 07 14:49:52 host systemd[843]: Starting pulseaudio.service - Sound Service...
Apr 07 14:49:52 host pulseaudio[6089]: Stale PID file, overwriting.
Apr 07 14:49:52 host pulseaudio[6089]: Failed to open cookie file '/home/user/.config/pulse/cookie': No such file or directory
Apr 07 14:49:52 host pulseaudio[6089]: Failed to load authentication key '/home/user/.config/pulse/cookie': No such file or directory
Apr 07 14:49:52 host pulseaudio[6089]: Failed to open cookie file '/home/user/.pulse-cookie': No such file or directory
Apr 07 14:49:52 host pulseaudio[6089]: Failed to load authentication key '/home/user/.pulse-cookie': No such file or directory
Apr 07 14:49:52 host pulseaudio[6089]: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
Apr 07 14:49:52 host pulseaudio[6089]: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
Apr 07 14:49:52 host systemd[843]: Started pulseaudio.service - Sound Service.

I’ve tried the Migration dom0 audio from pulseaudio to pipewire available for testing the test @marmarek just published. but it does not solve the problem.

I am not sure the whonix-ws issue is relevant with dom0 audio server. I tried both pulseaudio and pipewire in dom0. unfortunately, none of them solve the whonix problem.

I’ve tried it and it worked for me.
I’ve switched dom0 to pipewire, cloned whonix-workstation-17 template and installed pipewire-pulse there. Then created the AppVM from this template and sound worked in Tor Browser there.
Just to note, I’ve installed the pipewire-pulse without --no-install-recommends.

1 Like

I am a donkey. I just installing packages in dvm template (the red one). and wondering why I have to re-install the packages and enable it manually everytime when qube boot up. Anyways, problem solved. Thanks for your help and the other contributions to the community!