I updated to F34 today and it all went very smoothly. I'm even running KDE/Plasma under Wayland and so far haven't noticed any issues (touch wood) ...
... except for this: according to:
https://fedoramagazine.org/whats-new-fedora-34-workstation/
" ... Fedora still defaults to X.Org when you install the NVIDIA driver."
I have the proprietary Nvidia module loaded and both Xorg and Xwayland are running, however there doesn't seem to be any access to the Nvidia GPU. nvidia-settings reports:
"Unable to find display on any available system"
and my attempts to run Steam games using the Vulkan compatibility layer (which runs happily on Xorg) don't work.
Just in case, I tried again using Gnome with the same result.
IOW, apparently Nvidia GPUs do not currently work with Wayland, but don't work with Xorg either. Is there something I'm misunderstanding here?
poc
On Tue, 2021-04-27 at 23:28 +0100, Patrick O'Callaghan wrote:
IOW, apparently Nvidia GPUs do not currently work with Wayland, but don't work with Xorg either. Is there something I'm misunderstanding here?
(Replying to myself).
On logging in with KDE/X11, nvidia-settings now works so at least the GPU is accessible. Steam with Vulkan still doesn't but that may just be a matter of waiting for a package update.
It's still true that Nvidia+Wayland is not working.
poc
On 28/04/2021 06:36, Patrick O'Callaghan wrote:
On Tue, 2021-04-27 at 23:28 +0100, Patrick O'Callaghan wrote:
IOW, apparently Nvidia GPUs do not currently work with Wayland, but don't work with Xorg either. Is there something I'm misunderstanding here?
(Replying to myself).
On logging in with KDE/X11, nvidia-settings now works so at least the GPU is accessible. Steam with Vulkan still doesn't but that may just be a matter of waiting for a package update.
It's still true that Nvidia+Wayland is not working.
While I am running F33 at the moment I did a bit of testing of Plasma on Wayland with nVidia drivers. Specifically, the 465.24.02 driver. And it works for me with the limited amount of testing. I don't use nvidia-settings.
I get
DESKTOP_SESSION=/usr/share/wayland-sessions/plasmawayland XDG_SESSION_TYPE=wayland WAYLAND_DISPLAY=wayland-0
So, can you expound on "not working"?
On Wed, 2021-04-28 at 08:10 +0800, Ed Greshko wrote:
On 28/04/2021 06:36, Patrick O'Callaghan wrote:
On Tue, 2021-04-27 at 23:28 +0100, Patrick O'Callaghan wrote:
IOW, apparently Nvidia GPUs do not currently work with Wayland, but don't work with Xorg either. Is there something I'm misunderstanding here?
(Replying to myself).
On logging in with KDE/X11, nvidia-settings now works so at least the GPU is accessible. Steam with Vulkan still doesn't but that may just be a matter of waiting for a package update.
It's still true that Nvidia+Wayland is not working.
While I am running F33 at the moment I did a bit of testing of Plasma on Wayland with nVidia drivers. Specifically, the 465.24.02 driver. And it works for me with the limited amount of testing. I don't use nvidia-settings.
I get
DESKTOP_SESSION=/usr/share/wayland-sessions/plasmawayland XDG_SESSION_TYPE=wayland WAYLAND_DISPLAY=wayland-0
So, can you expound on "not working"?
On Plasma/Wayland I get those same settings, however the display is running on the internal Intel GPU, not on the Nvidia. Even though the Nvidia kernel modules are loaded, there appears to be no way to access the GPU. Thus:
$ nvidia-settings
ERROR: Unable to find display on any available system
$ switcherooctl Device: 0 Name: Intel® HD Graphics 4000 Default: yes Environment: DRI_PRIME=pci-0000_00_02_0
Device: 1 Name: NVIDIA Corporation GP107 [GeForce GTX 1050] Default: no Environment: __GLX_VENDOR_LIBRARY_NAME=nvidia __NV_PRIME_RENDER_OFFLOAD=1
$ switcherooctl -g 1 nvidia-settings
ERROR: Unable to find display on any available system
If I run Plasma/X11, all of the above works correctly (as it did on F33 of course). IOW, with Wayland the Nvidia GPU is currently useless.
poc
On 28/04/2021 18:05, Patrick O'Callaghan wrote:
On Wed, 2021-04-28 at 08:10 +0800, Ed Greshko wrote:
On 28/04/2021 06:36, Patrick O'Callaghan wrote:
On Tue, 2021-04-27 at 23:28 +0100, Patrick O'Callaghan wrote:
IOW, apparently Nvidia GPUs do not currently work with Wayland, but don't work with Xorg either. Is there something I'm misunderstanding here?
(Replying to myself).
On logging in with KDE/X11, nvidia-settings now works so at least the GPU is accessible. Steam with Vulkan still doesn't but that may just be a matter of waiting for a package update.
It's still true that Nvidia+Wayland is not working.
While I am running F33 at the moment I did a bit of testing of Plasma on Wayland with nVidia drivers. Specifically, the 465.24.02 driver. And it works for me with the limited amount of testing. I don't use nvidia-settings.
I get
DESKTOP_SESSION=/usr/share/wayland-sessions/plasmawayland XDG_SESSION_TYPE=wayland WAYLAND_DISPLAY=wayland-0
So, can you expound on "not working"?
On Plasma/Wayland I get those same settings, however the display is running on the internal Intel GPU, not on the Nvidia. Even though the Nvidia kernel modules are loaded, there appears to be no way to access the GPU. Thus:
$ nvidia-settings ERROR: Unable to find display on any available system $ switcherooctl Device: 0 Name: Intel® HD Graphics 4000 Default: yes Environment: DRI_PRIME=pci-0000_00_02_0 Device: 1 Name: NVIDIA Corporation GP107 [GeForce GTX 1050] Default: no Environment: __GLX_VENDOR_LIBRARY_NAME=nvidia __NV_PRIME_RENDER_OFFLOAD=1 $ switcherooctl -g 1 nvidia-settings ERROR: Unable to find display on any available systemIf I run Plasma/X11, all of the above works correctly (as it did on F33 of course). IOW, with Wayland the Nvidia GPU is currently useless.
I see.
Would it be fair to qualify the last statement by adding "in this use case"?
Is is possible to test this with the nvidia device being Default? Is it possible to test with nouveau instead of nvidia drivers?
On Wed, 2021-04-28 at 18:49 +0800, Ed Greshko wrote:
On 28/04/2021 18:05, Patrick O'Callaghan wrote:
On Wed, 2021-04-28 at 08:10 +0800, Ed Greshko wrote:
[...]
DESKTOP_SESSION=/usr/share/wayland-sessions/plasmawayland XDG_SESSION_TYPE=wayland WAYLAND_DISPLAY=wayland-0
So, can you expound on "not working"?
On Plasma/Wayland I get those same settings, however the display is running on the internal Intel GPU, not on the Nvidia. Even though the Nvidia kernel modules are loaded, there appears to be no way to access the GPU. Thus:
$ nvidia-settings ERROR: Unable to find display on any available system $ switcherooctl Device: 0 Name: Intel® HD Graphics 4000 Default: yes Environment: DRI_PRIME=pci-0000_00_02_0 Device: 1 Name: NVIDIA Corporation GP107 [GeForce GTX 1050] Default: no Environment: __GLX_VENDOR_LIBRARY_NAME=nvidia __NV_PRIME_RENDER_OFFLOAD=1 $ switcherooctl -g 1 nvidia-settings ERROR: Unable to find display on any available system If I run Plasma/X11, all of the above works correctly (as it did on F33 of course). IOW, with Wayland the Nvidia GPU is currently useless.
I see.
Would it be fair to qualify the last statement by adding "in this use case"?
Only if someone can report an Nvidia GPU being used under Wayland. Note that this is not a KDE/Plasma issue. I get the same results under Gnome. Note that I'm using SDDM in all cases. I don't know if that makes a difference though I don't see why it should.
Is is possible to test this with the nvidia device being Default?
I think that would mean blacklisting the IGP on boot, if that's even possible. I don't know another way of selecting the default.
Is it possible to test with nouveau instead of nvidia drivers?
Probably. I'll look into it.
poc
On 28/04/2021 19:06, Patrick O'Callaghan wrote:
On Wed, 2021-04-28 at 18:49 +0800, Ed Greshko wrote:
Would it be fair to qualify the last statement by adding "in this use case"?
Only if someone can report an Nvidia GPU being used under Wayland. Note that this is not a KDE/Plasma issue. I get the same results under Gnome. Note that I'm using SDDM in all cases. I don't know if that makes a difference though I don't see why it should.
I'm currently using Plasma in Wayland with nVidia drivers. And I'm now running handbrake to add subtitles in a movie using the H.264 (NVEnc) encoder which is using the Nvidia GPU.
Does that qualify as "Nvidia GPU being used under Wayland"?
Is is possible to test this with the nvidia device being Default?
I think that would mean blacklisting the IGP on boot, if that's even possible. I don't know another way of selecting the default.
Is it possible to test with nouveau instead of nvidia drivers?
Probably. I'll look into it.
On Wed, 2021-04-28 at 19:25 +0800, Ed Greshko wrote:
On 28/04/2021 19:06, Patrick O'Callaghan wrote:
On Wed, 2021-04-28 at 18:49 +0800, Ed Greshko wrote:
Would it be fair to qualify the last statement by adding "in this use case"?
Only if someone can report an Nvidia GPU being used under Wayland. Note that this is not a KDE/Plasma issue. I get the same results under Gnome. Note that I'm using SDDM in all cases. I don't know if that makes a difference though I don't see why it should.
I'm currently using Plasma in Wayland with nVidia drivers. And I'm now running handbrake to add subtitles in a movie using the H.264 (NVEnc) encoder which is using the Nvidia GPU.
Does that qualify as "Nvidia GPU being used under Wayland"?
Certainly. I'd love to know why it's working for you and not for me. Am I right in assuming you also have an internal GPU? If so, have you configured anything to use the Nvidia as default? Are you running Nouveau or the proprietary driver? What happens if you run nvidia- settings or switcherooctl?
poc
On 28/04/2021 20:12, Patrick O'Callaghan wrote:
On Wed, 2021-04-28 at 19:25 +0800, Ed Greshko wrote:
On 28/04/2021 19:06, Patrick O'Callaghan wrote:
On Wed, 2021-04-28 at 18:49 +0800, Ed Greshko wrote:
Would it be fair to qualify the last statement by adding "in this use case"?
Only if someone can report an Nvidia GPU being used under Wayland. Note that this is not a KDE/Plasma issue. I get the same results under Gnome. Note that I'm using SDDM in all cases. I don't know if that makes a difference though I don't see why it should.
I'm currently using Plasma in Wayland with nVidia drivers. And I'm now running handbrake to add subtitles in a movie using the H.264 (NVEnc) encoder which is using the Nvidia GPU.
Does that qualify as "Nvidia GPU being used under Wayland"?
Certainly. I'd love to know why it's working for you and not for me. Am I right in assuming you also have an internal GPU? If so, have you configured anything to use the Nvidia as default? Are you running Nouveau or the proprietary driver? What happens if you run nvidia- settings or switcherooctl?
No, I only have a GeForce GTX 660. I'm running the nVidia drivers packaged by rpmfusion. Neither nvidia-settings or switcherooctl work in wayland.
On Wed, 2021-04-28 at 20:32 +0800, Ed Greshko wrote:
On 28/04/2021 20:12, Patrick O'Callaghan wrote:
On Wed, 2021-04-28 at 19:25 +0800, Ed Greshko wrote:
On 28/04/2021 19:06, Patrick O'Callaghan wrote:
On Wed, 2021-04-28 at 18:49 +0800, Ed Greshko wrote:
Would it be fair to qualify the last statement by adding "in this use case"?
Only if someone can report an Nvidia GPU being used under Wayland. Note that this is not a KDE/Plasma issue. I get the same results under Gnome. Note that I'm using SDDM in all cases. I don't know if that makes a difference though I don't see why it should.
I'm currently using Plasma in Wayland with nVidia drivers. And I'm now running handbrake to add subtitles in a movie using the H.264 (NVEnc) encoder which is using the Nvidia GPU.
Does that qualify as "Nvidia GPU being used under Wayland"?
Certainly. I'd love to know why it's working for you and not for me. Am I right in assuming you also have an internal GPU? If so, have you configured anything to use the Nvidia as default? Are you running Nouveau or the proprietary driver? What happens if you run nvidia- settings or switcherooctl?
No, I only have a GeForce GTX 660. I'm running the nVidia drivers packaged by rpmfusion. Neither nvidia-settings or switcherooctl work in wayland.
If you have no internal GPU then the Nvidia has to be the default, so nvidia-settings mustn't be working for some other reason. Does it work if you log in with X11?
Another question: is Xwayland running when you use Handbrake, or does it run directly on Wayland?
More research needed.
poc
On 28/04/2021 21:33, Patrick O'Callaghan wrote:
On Wed, 2021-04-28 at 20:32 +0800, Ed Greshko wrote:
No, I only have a GeForce GTX 660. I'm running the nVidia drivers packaged by rpmfusion. Neither nvidia-settings or switcherooctl work in wayland.
If you have no internal GPU then the Nvidia has to be the default, so nvidia-settings mustn't be working for some other reason. Does it work if you log in with X11?
nvidia-settings and switcherooctl fail when logged in Plasma Wayland. If I recall, they say they can detect any device. I'd have to switch back to be certain.
Both work when logged in under X11.
[egreshko@meimei ~]$ echo $DESKTOP_SESSION
/usr/share/xsessions/plasma [egreshko@meimei ~]$ switcherooctl Device: 0 Name: NVIDIA Corporation GK106 [GeForce GTX 660] Default: yes Environment: __GLX_VENDOR_LIBRARY_NAME=nvidia __NV_PRIME_RENDER_OFFLOAD=1
Another question: is Xwayland running when you use Handbrake, or does it run directly on Wayland?
I don't quite understand the question. I login Plasma Wayland and DESKTOP_SESSION shows /usr/share/wayland-sessions/plasmawayland and then I start handbrake.
On 28/04/2021 21:49, Ed Greshko wrote:
On 28/04/2021 21:33, Patrick O'Callaghan wrote:
On Wed, 2021-04-28 at 20:32 +0800, Ed Greshko wrote:
No, I only have a GeForce GTX 660. I'm running the nVidia drivers packaged by rpmfusion. Neither nvidia-settings or switcherooctl work in wayland.
If you have no internal GPU then the Nvidia has to be the default, so nvidia-settings mustn't be working for some other reason. Does it work if you log in with X11?
nvidia-settings and switcherooctl fail when logged in Plasma Wayland. If I recall, they say they can detect any device. I'd have to switch back to be certain.
My memory was faulty....
[egreshko@meimei ~]$ switcherooctl Device: 0 Name: NVIDIA Corporation GK106 [GeForce GTX 660] Default: yes Environment: __GLX_VENDOR_LIBRARY_NAME=nvidia __NV_PRIME_RENDER_OFFLOAD=1 [egreshko@meimei ~]$ nvidia-settings
ERROR: Unable to find display on any available system
[egreshko@meimei ~]$ echo $DESKTOP_SESSION /usr/share/wayland-sessions/plasmawayland
On Wed, 2021-04-28 at 20:32 +0800, Ed Greshko wrote:
Certainly. I'd love to know why it's working for you and not for me. Am I right in assuming you also have an internal GPU? If so, have you configured anything to use the Nvidia as default? Are you running Nouveau or the proprietary driver? What happens if you run nvidia- settings or switcherooctl?
No, I only have a GeForce GTX 660. I'm running the nVidia drivers packaged by rpmfusion. Neither nvidia-settings or switcherooctl work in wayland.
Slight correction :) Switcherooctl works in Wayland in Fedora Workstation (Gnome). KDE Plasma is lagging a bit.
[av@va ~]$ loginctl show-session 2 -p Type Type=wayland [av@va ~]$ switcherooctl Device: 0 Name: Intel® HD Graphics 630 Default: yes Environment: DRI_PRIME=pci-0000_00_02_0
Idem for a laptop with discrete (Nvidia) and integrated (Intel) using either Nouveau or Nvidia.
AV
On Wed, 2021-04-28 at 21:49 +0800, Ed Greshko wrote:
Another question: is Xwayland running when you use Handbrake, or does it run directly on Wayland?
I don't quite understand the question. I login Plasma Wayland and DESKTOP_SESSION shows /usr/share/wayland-sessions/plasmawayland and then I start handbrake.
IIRC Xwayland is the shim that is supposed to allow X programs to run under Wayland. When I run Plasma/Wayland I see it in my process list (pgrep Xwayland). When I run Gnome/Wayland I don't.
poc
On Wed, 2021-04-28 at 21:53 +0800, Ed Greshko wrote:
On 28/04/2021 21:49, Ed Greshko wrote:
On 28/04/2021 21:33, Patrick O'Callaghan wrote:
On Wed, 2021-04-28 at 20:32 +0800, Ed Greshko wrote:
No, I only have a GeForce GTX 660. I'm running the nVidia drivers packaged by rpmfusion. Neither nvidia-settings or switcherooctl work in wayland.
If you have no internal GPU then the Nvidia has to be the default, so nvidia-settings mustn't be working for some other reason. Does it work if you log in with X11?
nvidia-settings and switcherooctl fail when logged in Plasma Wayland. If I recall, they say they can detect any device. I'd have to switch back to be certain.
My memory was faulty....
[egreshko@meimei ~]$ switcherooctl Device: 0 Name: NVIDIA Corporation GK106 [GeForce GTX 660] Default: yes Environment: __GLX_VENDOR_LIBRARY_NAME=nvidia __NV_PRIME_RENDER_OFFLOAD=1 [egreshko@meimei ~]$ nvidia-settings
ERROR: Unable to find display on any available system
That's what I don't get. Clearly you must be using the Nvidia GPU if it's the only one you have, so why can't nvidia-settings find it, especially as it does find it when under Gnome/Wayland?
Anyway, clearly Plasma/Wayland is not entirely trouble-free yet. Will probably just have to wait.
poc
On Wed, 2021-04-28 at 16:07 +0200, AV wrote:
On Wed, 2021-04-28 at 20:32 +0800, Ed Greshko wrote:
Certainly. I'd love to know why it's working for you and not for me. Am I right in assuming you also have an internal GPU? If so, have you configured anything to use the Nvidia as default? Are you running Nouveau or the proprietary driver? What happens if you run nvidia- settings or switcherooctl?
No, I only have a GeForce GTX 660. I'm running the nVidia drivers packaged by rpmfusion. Neither nvidia-settings or switcherooctl work in wayland.
Slight correction :) Switcherooctl works in Wayland in Fedora Workstation (Gnome). KDE Plasma is lagging a bit.
Yes, that seems to be the case.
poc