I'm on Fedora 22 and have set up an rdp session to a Windows XP vm via krdc. On Fedora xfreerdp is used as rdp backend. The connection settings in krdc allow three ways to handle the remote pc's sound: play it on the local (client) pc, play it on the remote pc or disable sound. My goal is to play sound on the local pc. I can't make this work with any of the above options. The krdc version on Fedora 22 is not in the default list for the krdc component on bugs.kde.org, so I'll specify it here: krdc-15.04.0-1.fc22.x86_64 Reproducible: Always Steps to Reproduce: 1. Use krdc to connect to a remote Windows XP machine 2. In the connection settings choose "On this computer" for the sound setting 3. Start the remote connection 4. Make some sound on the remote pc (for example by adjusting the sound volume) Actual Results: No sound is heard on the local pc Expected Results: The local pc properly reproduces the sound emitted on the remote pc Krdc delegates the actual remote connection to xfreerdp. For sound it passes either of these options: /audio-mode:0 (for sound on this computer) /audio-mode:1 (for sound on remote computer) When I run xfreerdp manually without this option and instead add "/sound:sys:pulse" or "/sound:sys:alsa" sound is properly reproduced on the local machine.
Can you reproduce this issue when you start xfreerdp from command line (with the correct parameters)?
I can confirm that using KRDC that I get no sound from Windows VM. When I launch from command line with "xfreerdp /u:username /p:SuperSecretPassword /v:MyCoolIP /sound:sys:pulse /w:1440 /h:900" I get sound from the VM just fine.
Created attachment 97000 [details] Fix the rdp audio issue I've tested the patch on my qemu vm(win10), both options work for me. krdc(7127)/krdc (RDP backend) RdpView::start: Use FreeRDP 1.1+ compatible arguments krdc(7127)/krdc (RDP backend) RdpView::start: Starting xfreerdp with arguments: "-decorations /w:1816 /h:1247 +smart-sizing /kbd:0x00000409 /u:acelan /parent-window:153092138 /bpp:24 /audio-mode: 0 /sound:sys:alsa /drive:media,/home/acelan /network:lan /rfx /cert-ignore +clipboard /port:3389 /v:192.168.2.118" and krdc(7127)/krdc (RDP backend) RdpView::start: Use FreeRDP 1.1+ compatible arguments krdc(7127)/krdc (RDP backend) RdpView::start: Starting xfreerdp with arguments: "-decorations /w:1800 /h:1231 +smart-sizing /kbd:0x00000409 /u:acelan /parent-window:153092217 /bpp:24 /audio-mode: 0 /sound:sys:pulse /drive:media,/home/acelan /network:lan /rfx /cert-ignore +clipboard /port:3389 /v:192.168.2.118"
Ack on 16.04 LTS. krdc runs # xfreerdp -decorations /w:1024 /h:768 /kbd:0x00000809 /u:administrator /parent-window:25166409 /bpp:24 /audio-mode:0 /drive:media /tmp /network:broadband /rfx /cert-ignore +clipboard /port:3389 /v:ispring.evcloud.co.uk /p: But this works # xfreerdp /u:administrator /v:ispring.evcloud.co.uk /sound:sys:pulse /w:1024 /h:768 /bpp:24 /drive:media /tmp /network:broadband /rfx /cert-ignore +clipboard
Tom, Are you saying that the krdc/rdp on 16.04 doesn't work? Can you also provide the krdc version on 16.04? Thanks.
16.04 uses KRDC Version 4.14.16 with KDE Development Platform 4.14.16
And, yes, no audio with the command line KRDC uses (as seen in ps). Making the change suggested and invoking by hand sounds works fine.
Thank you for reporting this bug in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version? If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please mark the bug as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone!
For me this is fixed. I'm currently running Fedora 36, which ships freerdp-2.8.0-1.fc36.x86_64. For my part this can be closed, though I don't know if that's something I should do now or leave for the maintainers. So I have set the status back to reported to be on the safe side.