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.000033
First Submitted: 2019-10-16 19:53 (UTC)
Last Updated: 2023-04-23 03:51 (UTC)

Latest Comments

1 2 3 4 Next › Last »

Jat commented on 2023-08-09 09:23 (UTC)

@D3vil0p3r install meta package base-devel

D3vil0p3r commented on 2023-08-04 22:02 (UTC) (edited on 2023-08-04 22:05 (UTC) by D3vil0p3r)

For compiling the package cmake and pkgconfig are needed. Also m4, autoconf, automake... Furthermore I guess that also other dependencies are needed. When I try to install it, I get the following error and "NO" messages:

:: Resolving dependencies...
:: There are 2 providers available for pulseaudio-module-xrdp:
:: Repository AUR:
    1) pulseaudio-module-xrdp  2) pulseaudio-module-xrdp-git
Enter a number (default=1): :: Calculating conflicts...
:: Calculating inner conflicts...

Aur (1)                     Old Version  New Version  Make Only
aur/pulseaudio-module-xrdp               0.7-1        No

:: Proceed to review? [Y/n]:

:: Downloading PKGBUILDs...
 PKGBUILDs up to date
fetching devel info...
==> Making package: pulseaudio-module-xrdp 0.7-1 (Sat 05 Aug 2023 12:00:39 AM CEST)
==> Retrieving sources...
  -> Found v0.7.tar.gz
  -> Found pulseaudio-16.1.tar.xz
==> Validating source files with sha256sums...
    v0.7.tar.gz ... Passed
    pulseaudio-16.1.tar.xz ... Passed
==> Making package: pulseaudio-module-xrdp 0.7-1 (Sat 05 Aug 2023 12:00:41 AM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found v0.7.tar.gz
  -> Found pulseaudio-16.1.tar.xz
==> Validating source files with sha256sums...
    v0.7.tar.gz ... Passed
    pulseaudio-16.1.tar.xz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting v0.7.tar.gz with bsdtar
  -> Extracting pulseaudio-16.1.tar.xz with bsdtar
==> Starting prepare()...
The Meson build system
Version: 1.2.0
Source dir: /home/athena/.cache/paru/clone/pulseaudio-module-xrdp/src/pulseaudio-16.1
Build dir: /home/athena/.cache/paru/clone/pulseaudio-module-xrdp/src/pulseaudio-16.1/build
Build type: native build
Program git-version-gen found: YES (/home/athena/.cache/paru/clone/pulseaudio-module-xrdp/src/pulseaudio-16.1/git-version-gen)
WARNING: You should add the boolean check kwarg to the run_command call.
         It currently defaults to false,
         but it will default to true in future releases of meson.
         See also: https://github.com/mesonbuild/meson/issues/9300
Project name: pulseaudio
Project version: 16.1
C compiler for the host machine: cc (gcc 13.2.1 "cc (GCC) 13.2.1 20230801")
C linker for the host machine: cc ld.bfd 2.41.0
C++ compiler for the host machine: c++ (gcc 13.2.1 "c++ (GCC) 13.2.1 20230801")
C++ linker for the host machine: c++ ld.bfd 2.41.0
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/sbin/pkg-config (1.8.1)
Run-time dependency bash-completion found: YES 2.11
Checking for type "_Bool" : YES
Has header "arpa/inet.h" : YES
Has header "byteswap.h" : YES
Has header "dlfcn.h" : YES
Has header "execinfo.h" : YES
Has header "grp.h" : YES
Has header "langinfo.h" : YES
Has header "linux/sockios.h" : YES
Has header "locale.h" : YES
Has header "netdb.h" : YES
Has header "netinet/in.h" : YES
Has header "netinet/in_systm.h" : YES
Has header "netinet/ip.h" : YES
Has header "netinet/tcp.h" : YES
Has header "pcreposix.h" : YES
Has header "poll.h" : YES
Has header "pwd.h" : YES
Has header "regex.h" : YES
Has header "sched.h" : YES
Has header "stdint.h" : YES
Has header "sys/atomic.h" : NO
Has header "sys/capability.h" : YES
Has header "sys/conf.h" : NO
Has header "sys/dl.h" : NO
Has header "sys/eventfd.h" : YES
Has header "sys/filio.h" : NO
Has header "sys/ioctl.h" : YES
Has header "sys/mman.h" : YES
Has header "sys/prctl.h" : YES
Has header "sys/resource.h" : YES
Has header "sys/select.h" : YES
Has header "sys/socket.h" : YES
Has header "sys/syscall.h" : YES
Has header "sys/uio.h" : YES
Has header "sys/un.h" : YES
Has header "sys/wait.h" : YES
Has header "syslog.h" : YES
Has header "xlocale.h" : NO
Has header "valgrind/memcheck.h" : NO
Has header "pthread.h" : YES
Header "pthread.h" has symbol "PTHREAD_PRIO_INHERIT" : YES
Check usable header "cpuid.h" : YES
Checking for function "accept4" : YES
Checking for function "clock_gettime" : YES
Checking for function "ctime_r" : YES
Checking for function "fchmod" : YES
Checking for function "fchown" : YES
Checking for function "fork" : YES
Checking for function "fstat" : YES
Checking for function "getaddrinfo" : YES
Checking for function "getgrgid_r" : YES
Checking for function "getgrnam_r" : YES
Checking for function "getpwnam_r" : YES
Checking for function "getpwuid_r" : YES
Checking for function "gettimeofday" : YES
Checking for function "getuid" : YES
Checking for function "lrintf" : YES
Checking for function "lstat" : YES
Checking for function "memfd_create" : YES
Checking for function "mkfifo" : YES
Checking for function "mlock" : YES
Checking for function "nanosleep" : YES
Checking for function "open64" : YES
Checking for function "paccept" : NO
Checking for function "pipe" : YES
Checking for function "pipe2" : YES
Checking for function "posix_fadvise" : YES
Checking for function "posix_madvise" : YES
Checking for function "posix_memalign" : YES
Checking for function "ppoll" : YES
Checking for function "readlink" : YES
Checking for function "setegid" : YES
Checking for function "seteuid" : YES
Checking for function "setpgid" : YES
Checking for function "setregid" : YES
Checking for function "setresgid" : YES
Checking for function "setresuid" : YES
Checking for function "setreuid" : YES
Checking for function "setsid" : YES
Checking for function "sig2str" : NO
Checking for function "sigaction" : YES
Checking for function "strerror_r" : YES
Checking for function "strtod_l" : YES
Checking for function "strtof" : YES
Checking for function "symlink" : YES
Checking for function "sysconf" : YES
Checking for function "uname" : YES
Header "sys/syscall.h" has symbol "SYS_memfd_create" : YES
Checking for function "dgettext" : YES
Header "signal.h" has symbol "SIGXCPU" : YES
Header "netinet/in.h" has symbol "INADDR_NONE" : YES
Header "unistd.h" has symbol "environ" : YES
Header "sys/soundcard.h" has symbol "SOUND_PCM_READ_RATE" : YES
Header "sys/soundcard.h" has symbol "SOUND_PCM_READ_CHANNELS" : YES
Header "sys/soundcard.h" has symbol "SOUND_PCM_READ_BITS" : YES
Library m found: YES
Run-time dependency threads found: YES
Checking for function "pthread_getname_np" with dependency threads: YES
Checking for function "pthread_setaffinity_np" with dependency threads: YES
Checking for function "pthread_setname_np" with dependency threads: YES
Library cap found: YES
Library rt found: YES
Checking for function "shm_open" with dependency -lrt: YES
Library dl found: YES
Checking for function "dladdr" with dependency -ldl: YES
Checking for function "iconv_open" : YES
Library execinfo found: NO
Run-time dependency dbus-1 found: YES 1.14.8
Run-time dependency glib-2.0 found: YES 2.76.4
Run-time dependency sndfile found: YES 1.2.0
Run-time dependency libsystemd found: YES 254
Run-time dependency x11-xcb found: YES 1.8.6
Has header "sys/soundcard.h" : YES
Run-time dependency fftw3f found: YES 3.3.10
Run-time dependency libasyncns found: YES 0.8
Run-time dependency gtk+-3.0 found: YES 3.24.38
Library ltdl found: YES
Run-time dependency tdb found: YES 1.4.9
Run-time dependency alsa found: YES 1.2.9
Run-time dependency gio-2.0 found: YES 2.76.4
Run-time dependency orc-0.4 found: YES 0.4.34
Program orcc found: YES (/usr/sbin/orcc)
Dependency samplerate skipped: feature samplerate disabled
Run-time dependency speexdsp found: YES 1.2.1
Run-time dependency soxr found: YES 0.1.3
Run-time dependency webrtc-audio-processing found: YES 0.3.1
Run-time dependency systemd found: YES 254
Found CMake: /usr/sbin/cmake (3.27.1)
Run-time dependency libelogind found: NO (tried pkgconfig and cmake)
Library wrap found: NO
Has header "tcpd.h" : NO
Run-time dependency xcb found: YES 1.15
Run-time dependency ice found: YES 1.1.1
Run-time dependency sm found: YES 1.2.4
Run-time dependency xtst found: YES 1.2.4
Checking for function "XSetIOErrorExitHandler" with dependency x11-xcb: YES
Run-time dependency avahi-client found: YES 0.8
Run-time dependency sbc found: YES 2.0
Run-time dependency bluez found: YES 5.68
Run-time dependency jack found: YES 1.9.22
Run-time dependency lirc found: NO (tried pkgconfig and cmake)
Run-time dependency openssl found: YES 3.1.2
Run-time dependency libudev found: YES 254
Run-time dependency gstreamer-1.0 found: YES 1.22.5
Run-time dependency gstreamer-app-1.0 found: YES 1.22.5
Run-time dependency gstreamer-rtp-1.0 found: YES 1.22.5
Dependency gstreamer-1.0 found: YES 1.22.5 (cached)
Dependency gstreamer-app-1.0 found: YES 1.22.5 (cached)
Run-time dependency check found: YES 0.15.2
Configuring doxygen.conf using configuration
Program msgfmt found: YES (/usr/sbin/msgfmt)
Program msginit found: YES (/usr/sbin/msginit)
Program msgmerge found: YES (/usr/sbin/msgmerge)
Program xgettext found: YES (/usr/sbin/xgettext)
Program perl found: YES (/usr/sbin/perl)
Program xmllint found: YES (/usr/sbin/xmllint)
Configuring default.pa.5.xml using configuration
Configuring pacmd.1.xml using configuration
Configuring pasuspender.1.xml using configuration
Configuring pulse-cli-syntax.5.xml using configuration
Configuring pulse-daemon.conf.5.xml using configuration
Configuring pulseaudio.1.xml using configuration
Configuring start-pulseaudio-x11.1.xml using configuration
Configuring pacat.1.xml using configuration
man/meson.build:58: WARNING: The variable(s) 'DEFAULT_MONITOR', 'DEFAULT_SINK', 'DEFAULT_SOURCE' in the input file 'man/pacat.1.xml.in' are not present in the given configuration data.
Configuring pactl.1.xml using configuration
Configuring pulse-client.conf.5.xml using configuration
Configuring padsp.1.xml using configuration
Configuring pax11publish.1.xml using configuration
Configuring version.h using configuration
Configuring client.conf using configuration
src/pulsecore/meson.build:176: WARNING: Module SIMD has no backwards or forwards compatibility and might not exist in future releases.
Compiler supports mmx: YES
Compiler supports sse: YES
Compiler supports neon: NO
Configuring start-pulseaudio-x11 using configuration
Configuring 00-pulseaudio-x11 using configuration
Program desktop-file-validate found: YES (/usr/sbin/desktop-file-validate)
Program m4 found: NO

src/daemon/meson.build:77:5: ERROR: Program 'm4' not found or not executable

A full log can be found at /home/athena/.cache/paru/clone/pulseaudio-module-xrdp/src/pulseaudio-16.1/build/meson-logs/meson-log.txt
WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.
==> ERROR: A failure occurred in prepare().
    Aborting...
error: failed to build 'pulseaudio-module-xrdp-0.7-1':
error: packages failed to build: pulseaudio-module-xrdp-0.7-1

hexadecagram commented on 2023-04-16 03:43 (UTC)

I further decided to try commenting-out all lines with pam_systemd_home.so in /etc/pam.d/system-auth. No luck, even after rebooting.

hexadecagram commented on 2023-04-16 00:22 (UTC) (edited on 2023-04-16 02:45 (UTC) by hexadecagram)

@sshaikh

Thanks for the pointer. I commented-out this line in /etc/pam.d/system-auth:

-auth [success=2 default=ignore] pam_systemd_home.so

Then I rebooted and encountered the same situation. I then ran systemctl stop --user pulseaudio.socket, verified that pulseaudio wasn't running, followed by systemctl start --user pulseaudio.service (which should pull in the config from ~/.config/systemd/user/pulseaudio.service.d/xrdp.conf, or so says the output of systemctl cat --user pulseaudio.service), and I still hear nothing but see activity.

I have tried installing Remmina and FreeRDP on a Linux machine and performed my testing, with the same results (or lack thereof) that RoyalTSX 5.1.2 (which, as I mentioned previously, also uses FreeRDP) on my Mac (now 13.3.1) is experiencing.

sshaikh commented on 2023-04-15 22:45 (UTC)

I might be misremembering, but I recall having issues with sound because no user session was being created. I don't know what that means, but it lead me to this:

https://github.com/neutrinolabs/xrdp/issues/1684

and editing system-auth fixed a few things (which may have included sound).

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