LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Xrdp - no audio. Dummy Output is only device. (https://www.linuxquestions.org/questions/slackware-14/xrdp-no-audio-dummy-output-is-only-device-4175730631/)

Ook 11-06-2023 12:34 PM

Xrdp - no audio. Dummy Output is only device.
 
I'm running xrdp on a Slackware 15 box. I can rdp into the box with ease. works great. However, there is no audio output. If I look at pulse volume applet, the only output device is "Dummy Output". If I play an audio file, the level bar on Dummy Output responds, so apparently audio is being routed to this Dummy Output.

So my question is - how does one route this dummy output to physical audio device, or otherwise get audio to work? In this case, I don't care much if it comes out of the box itself, or gets piped to the box I'm using to remote in though I'd prefer if it came out of the physical box.

jayjwa 11-06-2023 09:02 PM

Did you build the audio bit of Xrdp?
https://github.com/neutrinolabs/puls...dp/wiki/README

Ook 11-08-2023 12:51 PM

Quote:

Originally Posted by jayjwa (Post 6463283)
Did you build the audio bit of Xrdp?
https://github.com/neutrinolabs/puls...dp/wiki/README

I did. Now I have an output device "xrdp output (plugged in), but I still don't get any audio. If I ssh into the box and play an audio file it works, but playing it from the xrdp session does not.

On the xrdp session I see playback volume meter moving. The output device xrdp output also shows volume meter moving. Nothing comes out of speakers on either box.

Edit: ls $(pkg-config --variable=modlibexecdir libpulse) | grep xrdp gives:

module-xrdp-sink.la
module-xrdp-sink.so
module-xrdp-source.la
module-xrdp-source.so

Ook 11-08-2023 01:06 PM

Taadaa

-r sound:local

This passes sound to box I'm remoting from, and works.

-r sound:remote doesn't seem to work at least it doesn't allow sound to play on server. I might be missing something here.

Ook 11-08-2023 09:01 PM

Just in case that was too ambiguous, this is how I start rdesktop to get sound to pipe through:

rdesktop -u <user id> -p <password> -a 16 -z -g 1910x1030 <server ip> -r sound:local

Without -r sound:local, there is no sound,.

vince_II 03-18-2024 03:45 AM

I left pulseaudio for pipewire
 
After a lot of trail and mostly err with pulseaudio I kept on digging, then I found that distro's and XRDP have been moving on to the pipewire audio system.
As soon as I did that too , and after installing compiling and installing the drivers for pipewire, everything worked as a charm.

apt install build-essential git autoconf libtool
apt install pipewire pipewire-audio pipewire-bin libpipewire-0.3-dev libspa-0.2-dev
git clone https://github.com/neutrinolabs/pipe...odule-xrdp.git

and follow the readme: it is basically just ./configure and ./make and ./make install

Good luck, hope this helps someone with xrdp!


All times are GMT -5. The time now is 01:57 PM.