You are not logged in.

#1 2024-03-08 06:47:49

Ayu2805
Member
Registered: 2023-07-23
Posts: 51

Gnome /or/ KDE Plasma + NVIDIA not working as expected[SOLVED for now]

I have installed:

nvidia-dkms nvidia-utils nvidia-settings nvidia-prime opencl-nvidia switcheroo-control

and did:

sudo systemctl enable nvidia-persistenced switcheroo-control

I have also installed envycontrol because without it I was having some issues with older version of Minecraft(1.8.9), maybe it is adding some environment variables(I know I can add it manually) but still I would like to keep it installed because it allows me to switch to integrated CPU which can give me more 30-60 mins battery life when I am outdoors.

When I am on GDM neither gnome Wayland nor plasma Wayland shows up,
and when I login to Gnome(X11) from GDM everything works as intended and settings shows:

## Hardware Information:
- Hardware Model:                              HP 88E4
- Memory:                                      8.0 GiB
- Processor:                                   11th Gen Intel® Core™ i5-11300H × 8
- Graphics:                                    Intel® Xe Graphics (TGL GT2)
- Graphics 1:                                  NVIDIA GeForce GTX 1650
- Disk Capacity:                               1.3 TB

## Software Information:
- Firmware Version:                            F.23
- OS Name:                                     Arch Linux
- OS Build:                                    rolling
- OS Type:                                     64-bit
- GNOME Version:                               45.4
- Windowing System:                            X11
- Kernel Version:                              Linux 6.7.8-zen1-1-zen

and when I login Plasma(X11) from GDM everything works as intended but the info center shows(not showing NVIDIA Graphics):

Operating System: Arch Linux 
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.7.8-zen1-1-zen (64-bit)
Graphics Platform: X11
Processors: 8 × 11th Gen Intel® Core™ i5-11300H @ 3.10GHz
Memory: 7.5 GiB of RAM
Graphics Processor: Mesa Intel® Xe Graphics
Manufacturer: HP
System Version: Type1ProductConfigId

But when I am on SDDM Wayland as well as X11 shows up,
and when I login to Gnome(Wayland) from SDDM everything works* as intended and settings shows:

## Hardware Information:
- Hardware Model:                              HP 88E4
- Memory:                                      8.0 GiB
- Processor:                                   11th Gen Intel® Core™ i5-11300H × 8
- Graphics:                                    Intel® Xe Graphics (TGL GT2)
- Graphics 1:                                  NVIDIA GeForce GTX 1650
- Disk Capacity:                               1.3 TB

## Software Information:
- Firmware Version:                            F.23
- OS Name:                                     Arch Linux
- OS Build:                                    rolling
- OS Type:                                     64-bit
- GNOME Version:                               45.4
- Windowing System:                            Wayland
- Kernel Version:                              Linux 6.7.8-zen1-1-zen

and when I login to Plasma(Wayland) from SDDM everything works* as intended but info center shows(not showing NVIDIA Graphics):

Operating System: Arch Linux 
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.7.8-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 8 × 11th Gen Intel® Core™ i5-11300H @ 3.10GHz
Memory: 7.5 GiB of RAM
Graphics Processor: Mesa Intel® Xe Graphics
Manufacturer: HP
System Version: Type1ProductConfigId

Note:

  1. *Not everything works in Wayland with NVIDIA as Minecraft(1.8.9) crashes right after launching (this was happening in X11 also but installing envycontrol fixed the issue for X11).

  2. I have systemd boot and adding nvidia_drm.modeset=1 to either kernel module parameter or kernel parameters doesn't do anything.

My Questions:

  1. Is GUI option for switcheroo control not supposed to show in plasma just like it shows in gnome as "Launch using Discrete Graphics Card"? because it's quite bothersome to launch from CLI with prime-run or edit the .desktop.

  2. Why plasma is not showing my GPU even though it is listed in LSPCI as 0000:01:00.0 3D controller?

  3. Why GDM does not shows Wayland session? If it can then how?

  4. Extra: Why pointer acceleration in plasma(X11) is slower than plasma(Wayland)? Changing the pointer acceleration in X11 from none to standard makes pointer faster in Wayland. (Not a big issue but it will better if i can solve it or at least know the reason)

THANKS TO EVERYONE WHO HELPS ME IN ADVANCEbig_smile

Last edited by Ayu2805 (2024-03-08 15:09:07)

Offline

#2 2024-03-08 09:29:28

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,933

Re: Gnome /or/ KDE Plasma + NVIDIA not working as expected[SOLVED for now]

  1. Afaik not yet, but it's planned

  2. A 3D controller means the card is generally speaking not attached to any display, so it won't be shown --or generally in  use -- if you're not using prime-run when starting applications you're expecting to give you GPU information, chances are the plasma info center just queries the currently actively rendering GPU, this is likely just cosmetic and ignorable.

  3. because it's GDM, it expects you to do a specific configuration  before showing you a wayland session with a nvidia gpu present/or you telling it to ignore it's config rules: https://wiki.archlinux.org/title/GDM#Wa … DIA_driver

  4. That should generally be possible in x11 as well. Will come down to how the plasma dialog configures the xf86-input-libinput X11 driver and how it configures libinput itself on wayland. You can potentially adjust that relevantly yourself on X11: https://wiki.archlinux.org/title/Libinput

Offline

#3 2024-03-08 12:56:58

Ayu2805
Member
Registered: 2023-07-23
Posts: 51

Re: Gnome /or/ KDE Plasma + NVIDIA not working as expected[SOLVED for now]

I see. Thank you very much for answering my question.
Sorry to bother you again but do you have any idea for that "Minecraft(only older version) crash"?

Offline

#4 2024-03-08 13:31:12

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,933

Re: Gnome /or/ KDE Plasma + NVIDIA not working as expected[SOLVED for now]

Minecraft has a pseudo hard dependency on xorg-xrandr, is that installed? Maybe post terminal output from a minecraft attempt.

Last edited by V1del (2024-03-08 13:31:53)

Offline

#5 2024-03-08 14:33:18

Ayu2805
Member
Registered: 2023-07-23
Posts: 51

Re: Gnome /or/ KDE Plasma + NVIDIA not working as expected[SOLVED for now]

Minecraft has a pseudo hard dependency on xorg-xrandr, is that installed?

Yes the xorg-xrandr is indeed installed.

Maybe post terminal output from a minecraft attempt.

I am using GDLauncher and it throws not error while launching from terminal.

After a quick internet browsing the issue is something with older version of LWJGL(which was used in older version of Minecraft) not being compatible with NVIDIA drivers, so a workaround is to set "__GL_THREADED_OPTIMIZATIONS=0" as environment variable.

Is it okay? or do you suggest something else?

Offline

#6 2024-03-08 14:46:56

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,933

Re: Gnome /or/ KDE Plasma + NVIDIA not working as expected[SOLVED for now]

That's likely fine yeah. But don't set it globally, just set it for minecraft

Offline

#7 2024-03-08 15:07:10

Ayu2805
Member
Registered: 2023-07-23
Posts: 51

Re: Gnome /or/ KDE Plasma + NVIDIA not working as expected[SOLVED for now]

Yeah sure.
Again, thank you for your time.

Last edited by Ayu2805 (2024-05-19 16:41:31)

Offline

Board footer

Powered by FluxBB