You are not logged in.
Hello,
I've had no luck getting sound working with xrdp. Installed:
xorgxrdp-0.2.7-1
xrdp-0.9.7-1
pulseaudio-12.2-2
pavumeter-0.9.3-7 (for testing)
alsa-utils-1.1.6-1 (for testing)
/usr/lib/pulse-12.2/modules/module-xrdp-sink.so
/usr/lib/pulse-12.2/modules/module-xrdp-source.so
Does anyone see anything wrong with the configuration? pavumeter shows active output to xrdp-sink. alsamixer shows the channel is turned all the way up.
$ pacmd list-sinks
1 sink(s) available.
* index: 1
name: <xrdp-sink>
driver: <module-xrdp-sink.c>
flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: RUNNING
suspend cause: (none)
priority: 1000
volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
base volume: 65536 / 100% / 0.00 dB
volume steps: 65537
muted: no
current latency: 8.67 ms
max request: 5 KiB
max rewind: 5 KiB
monitor source: 1
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 1
linked by: 1
configured latency: 25.00 ms; range is 0.50 .. 10000.00 ms
module: 3
properties:
device.description = "xrdp sink"
device.class = "abstract"
device.icon_name = "audio-card"
$ pacmd dump
### Configuration dump generated at Tue Sep 11 14:04:23 2018
load-module module-augment-properties
load-module module-always-sink
load-module /usr/lib/pulse-12.2/modules/module-xrdp-sink.so
load-module /usr/lib/pulse-12.2/modules/module-xrdp-source.so
load-module module-native-protocol-unix
load-module module-x11-publish display=:10.0
load-module module-x11-cork-request display=:10.0
load-module module-cli-protocol-unix
set-sink-volume xrdp-sink 0x10000
set-sink-mute xrdp-sink no
suspend-sink xrdp-sink no
set-source-volume xrdp-sink.monitor 0x10000
set-source-mute xrdp-sink.monitor no
suspend-source xrdp-sink.monitor no
set-source-volume xrdp-source 0x10000
set-source-mute xrdp-source no
suspend-source xrdp-source no
set-default-sink xrdp-sink
set-default-source xrdp-source
### EOF
Pointers would be greatly appreciated!
Last edited by itguy92075 (2018-09-11 15:20:04)
Offline
You have been asked to use code tags before. Please edit your post.
https://wiki.archlinux.org/index.php/Co … s_and_code
https://bbs.archlinux.org/help.php#bbcode
Last edited by 2ManyDogs (2018-09-11 15:21:23)
Offline
Where do you want to hear audio from? From the client -> server or server->client?
Last edited by V1del (2018-09-11 15:35:41)
Offline
I'm configured to use the client's speakers which is described by the RDP client as "Play on device."
Offline
Running pulseaudio with -vvv reveals the problem. The name of the socket is derived from $DISPLAY:
D: [xrdp-sink] module-xrdp-sink.c: Could not obtain sink_socket from environment.
D: [xrdp-sink] module-xrdp-sink.c: trying to connect to /tmp/.xrdp/xrdp_chansrv_audio_out_socket_0
D: [xrdp-sink] module-xrdp-sink.c: Connected failed
But sesman.ini has DisplayOffset set:
X11DisplayOffset=10
In the socket directory:
$ cd /tmp/.xrdp
$ ls -l
total 0
srw-rw---- 1 xrdpuser users 0 Sep 12 20:19 xrdpapi_10
srw-rw---- 1 xrdpuser users 0 Sep 12 20:19 xrdp_chansrv_audio_in_socket_10
srwxr-xr-x 1 xrdpuser users 0 Sep 12 20:19 xrdp_disconnect_display_10
srw-rw---- 1 xrdpuser users 0 Sep 12 20:19 xrdp_display_10
No sound plays due to the socket name mismatch, and the reason for the mismatch is because I start pulseaudio as a systemd user service where $DISPLAY is unset and display_num gets set to zero.
Offline