Skip to content
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

Local sound cards are not detected (II) #116

Open
pjotrek-b opened this issue Jul 2, 2024 · 3 comments
Open

Local sound cards are not detected (II) #116

pjotrek-b opened this issue Jul 2, 2024 · 3 comments

Comments

@pjotrek-b
Copy link

xrdp version

0.9.12

Detailed xrdp version, build options

xrdp 0.9.12
  A Remote Desktop Protocol Server.
  Copyright (C) 2004-2018 Jay Sorg, Neutrino Labs, and all contributors.
  See https://github.com/neutrinolabs/xrdp for more information.

  Configure options:
      --enable-ipv6
      --enable-jpeg
      --enable-fuse
      --enable-rfxcodec
      --enable-opus
      --enable-painter
      --enable-vsock
      --build=x86_64-linux-gnu
      --prefix=/usr
      --includedir=${prefix}/include
      --mandir=${prefix}/share/man
      --infodir=${prefix}/share/info
      --sysconfdir=/etc
      --localstatedir=/var
      --disable-silent-rules
      --libdir=${prefix}/lib/x86_64-linux-gnu
      --libexecdir=${prefix}/lib/x86_64-linux-gnu
      --disable-maintainer-mode
      --disable-dependency-tracking
      --with-socketdir=/run/xrdp/sockdir
      build_alias=x86_64-linux-gnu
      CFLAGS=-g -O2 -fdebug-prefix-map=/build/xrdp-Ze414c/xrdp-0.9.12=. -fstack-protector-strong -Wformat -Werror=format-security 
      LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,--as-needed
      CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2 
      PKG_CONFIG_PATH=/build/xrdp-Ze414c/xrdp-0.9.12/pkgconfig

  Compiled with OpenSSL 1.1.1f  31 Mar 2020

Operating system & version

Xubuntu 20.04.6 (64bit)

Installation method

dnf / apt / zypper / pkg / etc

Which backend do you use?

I do not know.

What desktop environment do you use?

XFCE4

Environment xrdp running on

physical machine

What's your client?

Microsoft's official client (Win10)

Area(s) with issue?

No response

Steps to reproduce

  • Login over XRDP.
  • Open PulseAudio volume control: $ pavucontrol
  • Only xrdp source/sink show up as input/output devices.

✔️ Expected Behavior

I'd like to simply have the "other soundcards" of that system (not just xrdp-sink/source) as output option in PulseAudio.

❌ Actual Behavior

Only xrdp sink/source shows up as option in PulseAudio.

"aplay -l" shows no soundcards (when logged in over xrdp).
Adding my current user to the "audio" group allows "aplay -l" to list the soundcards - but I still don't get them in PA.

Anything else?

I assume this is related to neutrinolabs/xrdp#1414?
The last post (from 2021-11) in neutrinolabs/xrdp#1414 mentions that the soundcards should show up (since v0.6 of the xrdp PA module).

How can I make that happen? 😁

I've also tried manually adding the physical soundcards:
load-module module-alsa-sink device=hw:0,0 sink_name=alsa_sink

This works well when logged in directly - but when doing so over XRDP, I get no error message (and $? = 0) - but the sink simply won't show up. 😭

I'm grateful for any suggestions/help.

@pjotrek-b pjotrek-b added the bug Something isn't working label Jul 2, 2024
@pjotrek-b
Copy link
Author

xrdp was installed recently (last week), using Griffon's install script (v1.5.1):
https://c-nergy.be/blog/?p=13420

@matt335672 matt335672 transferred this issue from neutrinolabs/xrdp Jul 3, 2024
@matt335672
Copy link
Member

This isn't anything we'll ever support out-of-the-box.

A typical scenario would be to have a local (console) user and one-or-more RDP users. In that scenario, who would own the local soundcard?

If you've only got one user on the system logged in over RDP, and no other users, it might be possible to get something working. Assuming that's acceptable, try this:-

  1. Make sure the local console is logged out
  2. Log in over xrdp
  3. Check that only one instance of the pulseaudio server is running on the system
  4. Set up some logging:-
    pacmd set-log-target file:$HOME/pa.log
    pacmd set-log-level 4
    
  5. Try loading your module again.

@matt335672 matt335672 removed the bug Something isn't working label Jul 3, 2024
@pjotrek-b
Copy link
Author

Not to be supported out of the box, due to unclear ownership of the local soundcard: totally get it.

Will try your suggestion with enhanced PA logging.
Thank you very much for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants