Package Details: pulseaudio-module-xrdp 0.7-1

Git Clone URL: https://aur.archlinux.org/pulseaudio-module-xrdp.git (read-only, click to copy)
Package Base: pulseaudio-module-xrdp
Description: PulseAudio modules for xrdp
Upstream URL: https://github.com/neutrinolabs/pulseaudio-module-xrdp
Licenses: LGPL
Submitter: kballen
Maintainer: Jat
Last Packager: Jat
Votes: 3
Popularity: 0.000000
First Submitted: 2019-10-16 19:53 (UTC)
Last Updated: 2024-04-23 08:40 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 Next › Last »

hexadecagram commented on 2023-04-15 22:38 (UTC)

@sshaikh

I am using sesman.ini, which if I'm not mistaken has the PULSE_SCRIPT line under [SessionVariables] configured right out of the box. pasystray does show that the appropriate modules (module-xrdp-source and module-xrdp-sink) are being loaded. pavucontrol shows "xrdp sink" as the Output Device, and I do see activity in the volume meters but hear nothing.

I now have the following in ~/.config/systemd/user/pulseaudio.service.d/xrdp.conf:

[Service]
Environment="PULSE_SCRIPT=/etc/xrdp/pulse/default.pa"

However I do not see any instructions in these comments for what to comment out of /etc/pam.d/system-auth.

sshaikh commented on 2023-04-15 18:18 (UTC)

@hexadecagram

Yeah, I have functioning sound. Have you tried the fixes in this comments? The two I needed were the systemd --user dropin and commenting out the line from /etc/pam.d/system-auth

hexadecagram commented on 2023-04-15 18:13 (UTC)

Has anyone actually managed to get this module to work? As I said previously, I do see activity in the volume meter but hear nothing. My configs (xrdp, x11vnc, and pulseaudio) haven't strayed much from the default apart from making xrdp talk to x11vnc.

johnlewis8558 commented on 2022-11-30 05:44 (UTC) (edited on 2022-11-30 05:46 (UTC) by johnlewis8558)

I am unable to run pulseaudio automatically on startup. I have to start pulseaudio manually on terminal for it to work.

Fyi, PULSE_SCRIPT is set to /etc/xrdp/pulse/default.pa on sesman.ini.

When running '$ pulseaudio' in terminal, these errors appeared even though pulseaudio works afterwards:

$ pulseaudio

N: [pulseaudio] module-xrdp-sink.c: Build library version 16.1.0

E: [xrdp-sink] module-xrdp-sink.c: sink_process_msg: not running

E: [xrdp-sink] module-xrdp-sink.c: close_send:

N: [pulseaudio] module-xrdp-source.c: Build library version 16.1.0

sshaikh commented on 2022-10-30 18:52 (UTC) (edited on 2022-11-01 16:31 (UTC) by sshaikh)

For some reason pulseaudio when started via systemd (as configured) does not seem to load module-xrdp-sink.so which results in a dummy sink being loaded instead (and no sound).

Stopping the systemd service and running pulseaudio -v at the terminal works - no env needs to be set as PULSE_SCRIPT is set already (as per sesman.ini).

I've also tried creating an xrdp dropin as per @Jat but to no avail.

Any hints?

EDIT: the correct location for dropins for user services is in:

/home/user/.config/systemd/user/pulseaudio.service.d

hexadecagram commented on 2022-08-28 10:51 (UTC)

I cannot get this to work using a FreeRDP client (actually Royal TSX on macOS 12.5.1, which uses FreeRDP 5.1.2 as a plugin). If I connect to a Windows 2012 machine using the same client, I get sound. Also, xorgxrdp refuses to build for me. Is Xorg required for audio or should I be able to do this with Xvnc (or in my case, lightdm and x0vncserver)?

I have followed the troubleshooting instructions in the ArchWiki step-by-step, all the way down to running pulseaudio manually and while I see pavucontrol trying to tell me that there should be sound with bouncing volume meters, I hear nothing. I am not seeing any journal logs about systemd improperly starting PulseAudio.

Interestingly, I notice that when /etc/xrdp/pulse/defaults.pa is sourced, all my usual modules won't load. And if I try to force-load everything, there are problems. I will eventually need to be able to switch between xrdp audio and the machine's speakers, if possible.

If I set my state back to the way it was before attempting to setup the xrdp pulseaudio module, audio returns to the server's speakers.

Jat commented on 2022-04-22 03:47 (UTC) (edited on 2022-04-22 03:59 (UTC) by Jat)

@fow0ryl

https://www.freedesktop.org/wiki/Software/PulseAudio/FAQ/#whatenvironmentvariablesdoespulseaudiocareabout

if pulseaudio is started by desktop environment

/etc/xrdp/sesman.ini

[SessionVariables]
PULSE_SCRIPT=/etc/xrdp/pulse/default.pa

if pulseaudio is started by systemd

/etc/systemd/system/pulseaudio.service.d/xrdp.conf

[Service]
Environment="PULSE_SCRIPT=/etc/xrdp/pulse/default.pa"

if you want to start pulseaudio manually

PULSE_SCRIPT=/etc/xrdp/pulse/default.pa pulseaudio --daemonize=no

fow0ryl commented on 2022-04-21 11:45 (UTC)

When installing I get this message: Remember to pass the environment "PULSE_SCRIPT=/etc/xrdp/pulse/default.pa" to pulseaudio to make this module work.

But what does it mean? Where the enviroment variable has to be placed? A more detailed message would be helpful to everyone ...

sshaikh commented on 2022-01-27 08:36 (UTC)

So will this be updated each time a new version of pulseaudio is released?

piedro commented on 2022-01-27 00:37 (UTC)

Thanks a lot!

The fix works - that's good enough.

Cheers, p.