-
Notifications
You must be signed in to change notification settings - Fork 42
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
Debian 10: no sound, Code 11 - module-xrdp-sink.c: sink_process_msg: not running #44
Comments
Hi, I have stumbled on similar problem myself on Ubuntu 20.04 release. By accident I did a "killall pulseaudio" and something started working. I felt like it was hopeless. Maybe there's a conflict of some sort that someone more experienced could dig into? Perhaps give it a try? What I did to fix this weird thing to survive a reboot was to "mask" the launches of pulseaudio service and to start it later instead with xdg autostart:
contents of ~/.config/autostart/pulseaudio.desktop
|
Can confirm this works ! |
I confirm there's a glitch with Ubuntu 20..04. Worked like a charm on previous 18.04, then after upgrade, no more sound from the speakers. Strangely enough, 'pavucontrol' and the likes showed everything running OK, including the moving bars, yet nothing comes out. There's some sort of conflict between 20.04's version of pulseaudio (13.99.1), associated systemd in --user mode, and the xrdp sink. |
I have the same problem on Debian 11 and pulseaudio 13.0. I tried module-sink-xrdp that compiled from source and various versions from net. No luck. Veixus' solution doesn't work for me, because I only run pulseaudio as regular user, not as a service. |
Same symptoms here on Ubuntu 20.10 on pulseaudio 13.99.2. |
I've hit this issue as well now and after some debugging i think i unterstand how this workaround fixes it. The main problem here is that systemd does not use environment variables from the user session when starting services, which means that the necessary environment variables PULSE_SCRIPT, XRDP_SOCKET_PATH, XRDP_PULSE_SOURCE_SOCKET and XRDP_PULSE_SINK_SOCKET are not passed along to pulseaudio when the session (and therefore the pulseaudio user service) starts up. |
See also neutrinolabs/xrdp#1910 |
Note: Edited 5th October 2021 to improve files Here's a possible way forward:-
[Desktop Entry]
Version=1.0
Name=PulseAudio xrdp modules
Comment=Load PulseAudio Modules for xrdp
Exec=/etc/xrdp/load_pa_modules.sh
Terminal=false
Type=Application
Categories=
GenericName=
#!/bin/sh
PACTL=/usr/bin/pactl
if [ -n "$XRDP_SESSION" -a \
-n "$XRDP_SOCKET_PATH" -a \
-n "$XRDP_PULSE_SINK_SOCKET" -a \
-n "$XRDP_PULSE_SOURCE_SOCKET" ]
then
# Unload modules
$PACTL unload-module module-xrdp-sink >/dev/null 2>&1
$PACTL unload-module module-xrdp-source >/dev/null 2>&1
# Reload modules
$PACTL load-module module-xrdp-sink \
xrdp_socket_path=$XRDP_SOCKET_PATH \
xrdp_pulse_sink_socket=$XRDP_PULSE_SINK_SOCKET && \
\
$PACTL load-module module-xrdp-source \
xrdp_socket_path=$XRDP_SOCKET_PATH \
xrdp_pulse_source_socket=$XRDP_PULSE_SOURCE_SOCKET
fi
exit $?
Reboot for a proper test. I use Works for me on Debian 10 and 11 using XFCE. Bear in mind you can't log the same user in to an xrdp session and the console on these OSes. Any feedback welcome. |
I followed the steps on the README on Debian Buster and I see the "xrdp sink" on pulseaudio but hear no sound.
I stopped pulseaudio in systemd, made sure no instances were running and ran
pulseaudio -vvvv
as a regular user on a terminal. I see this in stdout:How can I troubleshoot this further?
For more info, I added these lines to
/etc/pulse/default.pa
(the others were already present):The text was updated successfully, but these errors were encountered: