-
Notifications
You must be signed in to change notification settings - Fork 291
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 audio #29
Comments
Fixed the same problem on my WSL/Arch by deleting the existing PULSE_SERVER environment variable from my .zshrc and reloading the shell. |
Works fine here in WSL/Manjaro after deleting the existing PULSE_SERVER environment variable |
We run our PulseAudio server in the system distro on a socket shared back to your user distro located at /mnt/wslg/PulseServer. As part of WSL init and before your distro start up, we pre-initialize PULSE_SERVER environment variable to reference that location. If you have setting that override that environment variable, it will break audio. If you restore it as below, audio should start working again (you'll have to restart the app too i believe).
So you'll want to avoid changing the value of PULSE_SERVER that we prepopulate, so the suggestion above of removing that this variable from things like your .zshrc are correct. |
Thanks you both for the update, however, while good to know, I do not believe that is my particular issue;
It looks like the env PULSE_SERVER has been set correctly and no other attempts to changes it that I can find in various startup scripts etc. However, as you can see pulse audio still appears to be failing. Let me know if more info can help with the diagnosing etc. Cheers, |
@lduguid what WSL distro are you using? Does audio work in other app, like say firefox? Or broken across the board? |
At the time it was Ubuntu 16.04. I also tested firefox and navigated to youtube, also no sound. I did not capture the errors with firefox at the time. Unfortunately, yesterday I required this laptop for some work related tasks and as the dev windows preview was a little unstable in other respects (non-wsl related) and slow, I reverted back to Microsoft Windows [Version 10.0.19042.928] for now. I will get back to testing this in about a weeks time. I also have Ubuntu 20.x on that machine, I will test with it as well. If there are new insights I will comment here. Thanking you. |
Had this problem with Debian on WSL2 using wslg, no audio was coming from firefox or google-chrome. It was simply fixed by installing pulseaudio "sudo apt intsall pulseaudio" |
Fixed this problem with "yay pulseaudio" on Arch. |
Environment
Steps to reproduce
install vlc - sudo apt install vlc -y
vlc
WSL logs:
/mnt/wslg
You can access the wslg logs using explorer at:
\\wsl\<Distro-Name>\mnt\wslg
(eg:\\wsl\Ubuntu-20.04\mnt\wslg
)puseaudio.log
*E: [pulseaudio] module-console-kit.c: GetSessionsForUnixUser() call failed: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.ConsoleKit was not provided by any .service files
E: [pulseaudio] module.c: Failed to load module "module-console-kit" (argument: ""): initialization failed.
E: [rdp-sink] module-rdp-sink.c: RDP Sink - Trying to connect to /mnt/wslg/PulseAudioRDPSink
E: [rdp-sink] module-rdp-sink.c: RDP Sink - Connected to fd 19
weston.log
weston.log
versions.txt
WSLg ( x86_64 ): 1.0.17+3.Branch.master.Sha.a526dfd5ad03d126bb2d8c528f6c3563e86a40da
Mariner: VERSION="1.0.20210224"
FreeRDP: e4a2fc2053bd8c5f99455fcd08ffee7e5591567a
weston: fd961f5cd116c9358d82ce94d139c1578e21bd00
pulseaudio: 2f0f0b8c3872780f15e275fc12899f4564f01bd5
mesa:
Expected behavior
Actual behavior
The text was updated successfully, but these errors were encountered: