maltejur / discord-screenaudio

A custom discord client that supports streaming with audio on Linux.
1.1k stars 35 forks source link

Not being able to share a whole screen on KDE Wayland (Nvidia) #111

Open AlexanderShK opened 1 year ago

AlexanderShK commented 1 year ago

I'm not being able to share a whole screen on KDE Wayland (Nvidia) while sharing of individual application window is ok. Also there is default Adwaita cursor instead of my Deepin's bloom cursor

Installed from AUR

Screenshot_20230224_124151 Screenshot_20230224_1242251

D3SOX commented 1 year ago

As far as I know there's no way to share the whole screen on Discord with Wayland at the moment.

maltejur commented 1 year ago

Oh no it should work, especially on KDE wayland (thats what I am on).

Screenshot_20230227_135458 Screenshot_20230227_135524

You don't seem to be using the KDE portal in your screenshots, do you have xdg-desktop-portal-kde installed?

AlexanderShK commented 1 year ago

I have both xdg-desktop-portal-kde and xdg-desktop-portal installed. As for mine and yours screenshot diff, are the only differences in presence of previews? Isn't it Plasma 5.27 feature^^

(screenshot from pointieststick's site for example)

Screenshot_20230227_163821

maltejur commented 1 year ago

Ah yes, I didn't update yet. But even if I update to 5.27, it still works for me. Hmm

zastrixarundell commented 1 year ago

Also happening for me. Fedora Kinoite 38, KDE 5.27.3. I do get the portal where I can see a preview of all of my screens: image

I have a blank stream when I try to share a screen, but when I select full workspace it does work (although my system FPS plummets):

image

Sharing specific windows works without an issue:

image

$ uname -ar
Linux kinoite 6.2.7-300.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Mar 17 16:02:49 UTC 2023 x86_64 GNU/Linux

$ nvidia-smi
Wed Mar 29 01:26:33 2023       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.89.02    Driver Version: 525.89.02    CUDA Version: 12.0     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  Off  | 00000000:01:00.0  On |                  N/A |
| 36%   36C    P5    45W / 175W |   3212MiB /  8192MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A    310329      G   /usr/bin/kwin_wayland             311MiB |
|    0   N/A  N/A    310346      G   ...de-authentication-agent-1        1MiB |
|    0   N/A  N/A    310359      G   /usr/bin/plasmashell              162MiB |
|    0   N/A  N/A    310384      G   ...ec/xdg-desktop-portal-kde      468MiB |
|    0   N/A  N/A    310392      G   /usr/bin/Xwayland                 575MiB |
|    0   N/A  N/A    310564      G   /usr/bin/kded5                      1MiB |
|    0   N/A  N/A    310690      G   /usr/libexec/kdeconnectd            1MiB |
|    0   N/A  N/A    310796      G   /usr/libexec/baloorunner            1MiB |
|    0   N/A  N/A    312633      G   ...218866424237126295,131072       40MiB |
|    0   N/A  N/A    325884      G   ...AAAAAAAAA= --shared-files       59MiB |
|    0   N/A  N/A    327508      G   /app/lib/firefox/firefox          167MiB |
|    0   N/A  N/A    332761      G   ...e/Steam/ubuntu12_32/steam       56MiB |
|    0   N/A  N/A    332849      G   ...ef_log.txt --shared-files      255MiB |
|    0   N/A  N/A    335119      G   ...RendererForSitePerProcess       26MiB |
|    0   N/A  N/A    336333      G   discord-screenaudio               877MiB |
|    0   N/A  N/A    337238      G   /usr/bin/systemsettings            38MiB |
|    0   N/A  N/A    337670      G   /usr/libexec/kf5/kioslave5          1MiB |
|    0   N/A  N/A    337698      G   /app/bin/discord-screenaudio        1MiB |
|    0   N/A  N/A    337814      G   /usr/bin/konsole                    1MiB |
+-----------------------------------------------------------------------------+
zastrixarundell commented 1 year ago

Issue also exists with trying to stream on the web version and on google meets so it's probably that the portal doesn't work well with Nvidia rather than discord screenaudio.

maltejur commented 1 year ago

Hm okay closing this issue then, thanks for trying it out. I sadly also don't have any tips to make it work for you.

zastrixarundell commented 1 year ago

@maltejur I would recommend maybe opening this again. I had an error with this in Firefox and then I disabled the x11 socket and it started working. After trying to do that with this application I still had it, well, not working. Maybe due to the implementation of portal?

Also in firefox when I share I open portal once, select screen and then I'm prompted again while here I'm only prompted once if that helps.