You are not logged in.

#1 2021-11-30 13:44:35

junux
Member
Registered: 2021-10-21
Posts: 10

[SOLVED]nvidia prime breaks gnome on xorg

I'm using Asus optimus laptop with rayzen 7 4000 and NVIDIA GeForce MX350

I was fallowing wiki to set up NVIDIA prime run

https://wiki.archlinux.org/title/PRIME# … er_offload

so I downloaded :

https://aur.archlinux.org/packages/prime/

But after downloading and reboot, gnome didn't show up after GDM, DM is ok and while I switch to Wayland everything works just fine, but I don't have prime support on Wayland.
So I made these configurations: /etc/X11/xorg.conf.d/nvidia.conf

Section "ServerLayout"
      Identifier "layout"
      Option "AllowNVIDIAGPUScreens"
EndSection

as it says here:
https://download.nvidia.com/XFree86/Lin … fload.html

but nothing changed.

Last edited by junux (2021-12-01 13:11:31)

Offline

#2 2021-11-30 16:43:44

jonathon
Member
Registered: 2016-09-19
Posts: 128

Re: [SOLVED]nvidia prime breaks gnome on xorg

junux wrote:

I'm using Asus optimus laptop with rayzen 7 4000 and NVIDIA GeForce MX350

I was fallowing wiki to set up NVIDIA prime run

It's quite possible you don't have to do anything special to set this up; I recently installed a hybrid amdgpu+495xx laptop with GNOME (without any additional Xorg/GDM configuration) and PRIME "just works" (i.e. GNOME will automatically offload when needed).

junux wrote:

But after downloading and reboot, gnome didn't show up after GDM, DM is ok and while I switch to Wayland everything works just fine, but I don't have prime support on Wayland.

Wayland and Nvidia don't play well together in a number of situations. For example, while my laptop will allow Wayland when using only the internal panel, as soon as I enable an external display Wayland/GDM will crash and reinitialise to use Xorg, at which point the external display works perfectly (with render offload/PRIME sync/etc. without any need for configuration).

Last edited by jonathon (2021-11-30 17:05:28)

Offline

#3 2021-12-01 12:44:44

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,849

Re: [SOLVED]nvidia prime breaks gnome on xorg

The wiki doesn't mention that aur package, but nvidia-prime from extra repos .

I suggest you switch to that.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Online

#4 2021-12-01 13:10:51

junux
Member
Registered: 2021-10-21
Posts: 10

Re: [SOLVED]nvidia prime breaks gnome on xorg

Lone_Wolf wrote:

The wiki doesn't mention that aur package, but nvidia-prime from extra repos .

I suggest you switch to that.

You're right
my mistake
now it's working.

Offline

#5 2021-12-10 11:19:28

f_fouad
Member
Registered: 2017-09-08
Posts: 8

Re: [SOLVED]nvidia prime breaks gnome on xorg

jonathon wrote:

(i.e. GNOME will automatically offload when needed).

Does it mean that GNOME is dynamically using the GPU if needed without using prime-run or switcheroo for applications or it is exclusively for gnome-shell?

Offline

Board footer

Powered by FluxBB