You are not logged in.

#1 2019-08-30 20:30:01

damachine
Member
From: Frankfurt, Germany
Registered: 2018-04-06
Posts: 20

Nvidia PRIME Offload added in 435 driver comes a dream true

hello
i use a optimus laptop dell inspirion 7567 run in nvidia driver only mod ,. probs with bumblbee it not support vulkan and xrun needs a logout.
the new driver PRIME offload future sound very interresting when i understand it right. Is there a how to or wiki how it work and install etc. special for arch linux
my system run actual like the wiki:
https://wiki.archlinux.org/index.php/NV … phics_only
https://wiki.archlinux.org/index.php/NV … de_setting

and finaly is someone use it  successfully

sorry for my english thanks

Offline

#2 2019-08-30 20:53:36

loqs
Member
Registered: 2014-03-06
Posts: 17,194

Re: Nvidia PRIME Offload added in 435 driver comes a dream true

Until xorg-server 1.20.6 you will need to patch xorg-server e.g. https://gitlab.freedesktop.org/aplattne … org-server

then you should be able to follow http://download.nvidia.com/XFree86/Linu … fload.html

placing the suggested contents of nvidia.conf in /etc/X11/xorg.conf.d/20-nvidia.conf or rename it to nvidia.conf

Offline

#3 2019-08-30 21:10:56

damachine
Member
From: Frankfurt, Germany
Registered: 2018-04-06
Posts: 20

Re: Nvidia PRIME Offload added in 435 driver comes a dream true

thanks your answer
i will wait xorg version 1.20.6 comes. i dont know how i patch the xorg and have risk to broke my system a little
but thank you for help

Offline

#4 2019-08-31 02:37:08

Leeo97one
Member
From: France
Registered: 2017-07-29
Posts: 8

Re: Nvidia PRIME Offload added in 435 driver comes a dream true

I tested it with this PKGBUILD for X.Org with the required patches provided by an NVIDIA dev: https://gitlab.freedesktop.org/aplattne … org-server
You may also need to remove the line 12 (PrimaryGPU thing) in:

/usr/share/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf

And it works pretty well! I'm very happy to have such a feature available right in the driver.

Last edited by Leeo97one (2019-08-31 02:39:29)

Offline

#5 2019-08-31 08:37:30

theodore
Member
Registered: 2008-09-09
Posts: 151

Re: Nvidia PRIME Offload added in 435 driver comes a dream true

does that feature mean that the need for bumblebee, optimus-manager, nvidia-xrun will be obsolete?

Offline

#6 2019-08-31 13:40:29

Leeo97one
Member
From: France
Registered: 2017-07-29
Posts: 8

Re: Nvidia PRIME Offload added in 435 driver comes a dream true

Bumblebee will be obsolete for sure but optimus-manager can still be useful. See: https://github.com/Askannz/optimus-manager/issues/114

Offline

#7 2019-09-01 15:02:17

Feresey
Member
Registered: 2019-09-01
Posts: 2

Re: Nvidia PRIME Offload added in 435 driver comes a dream true

I wrote a simple script and more or less universal settings for Xorg: Prime

Offline

#8 2019-09-01 15:04:30

damachine
Member
From: Frankfurt, Germany
Registered: 2018-04-06
Posts: 20

Re: Nvidia PRIME Offload added in 435 driver comes a dream true

In the nvidia readme it looks simple how to run, but i understand not right how to patch the xorg need some help best a simple step by step. i read about abs pkgbuild etc. but today i am not so smart to understand. i can then look what the command are do. and how risk is a package patching proces, can i rollback simple too like to reinstall the orginal arch package.
thanks

Offline

#9 2019-09-01 16:04:18

loqs
Member
Registered: 2014-03-06
Posts: 17,194

Re: Nvidia PRIME Offload added in 435 driver comes a dream true

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

Would it not be simpler to provide instructions on the wiki?
Edit:
@danmachine the following assumes you have installed base-devel

git clone https://gitlab.freedesktop.org/aplattner/arch-xorg-server.git
cd arch-xorg-server/
makepkg -rs
pacman -Qs xorg-server # to find which packages you need to update avoiding adding new ones
# pacman -U list-of-pkg-files

If you want to revert to the official packages

# pacman -S list-of-pkgs #same list of packages you installed with pacman -U

Last edited by loqs (2019-09-01 16:10:53)

Offline

#10 2019-09-01 16:20:38

Feresey
Member
Registered: 2019-09-01
Posts: 2

Re: Nvidia PRIME Offload added in 435 driver comes a dream true

@loqs, thanks for the advice!

by the points:
1. config file moved to /usr
2. no license no problem
3. removed this dependency
4. This is not my repo, it’s just a fork of another person’s repository, in which I made minimal changes to make it work

Offline

#11 2019-09-01 17:23:00

damachine
Member
From: Frankfurt, Germany
Registered: 2018-04-06
Posts: 20

Re: Nvidia PRIME Offload added in 435 driver comes a dream true

@loqs thanks for your help and quick short answer

Offline

#12 2019-09-01 18:39:13

damachine
Member
From: Frankfurt, Germany
Registered: 2018-04-06
Posts: 20

Re: Nvidia PRIME Offload added in 435 driver comes a dream true

i have done all successfully but xrandr list not my HDMI port and multihead did not work.

i do all my settings Offloading Graphics Display with RandR undo.
i had only edit my xorg.conf. output of xrandr --listproviders show how it must. glxinfo | grep OpenGL shows the modsetting and with __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME="nvidia" __VK_LAYER_NV_optimus="NVIDIA_only" it shows the nvidia all right.
but xrandr --listmonitors shows only my intern laptop device

i am back to my old setting and i forgot to undo DRM KMS nvidia. should i remove this settings too before i start a new attempt
thanks

Last edited by damachine (2019-09-01 19:40:51)

Offline

#13 2019-09-07 15:11:08

damachine
Member
From: Frankfurt, Germany
Registered: 2018-04-06
Posts: 20

Re: Nvidia PRIME Offload added in 435 driver comes a dream true

hallo again
can one help how my extern monitor work. must xorg-xrandr also a patch or need i new one program. because it will not work with xrandr? xrandr --listmonitors shows only my eDP-1 device.

Offline

#14 2019-09-07 15:17:30

Ropid
Member
Registered: 2015-03-09
Posts: 1,069

Re: Nvidia PRIME Offload added in 435 driver comes a dream true

damachine wrote:

hallo again
can one help how my extern monitor work. must xorg-xrandr also a patch or need i new one program. because it will not work with xrandr? xrandr --listmonitors shows only my eDP-1 device.

From what I could find, it seems it is not possible right now to use monitors that are wired to the Nvidia GPU. You need to run your whole desktop on the Nvidia GPU, you can't use this new offloading feature here.

Offline

#15 2019-09-08 09:52:44

Neros
Member
Registered: 2012-09-12
Posts: 5

Re: Nvidia PRIME Offload added in 435 driver comes a dream true

I have an issue with screen tearing. Do you experience it too on your laptop screen but not on your external monitors?

Just like in this post: https://forum.kde.org/viewtopic.php?t=151762

Also, is it normal that nvidia-settings is more empty than before? https://i.imgur.com/hj60S9y.png

Maybe solutions can be find in the .conf file, that's why I'm asking here smile

Thanks!

Offline

#16 2019-10-14 11:17:06

hadrienk
Member
Registered: 2019-10-14
Posts: 1

Re: Nvidia PRIME Offload added in 435 driver comes a dream true

I had to add the following patches to get rid of gl version fails

https://gitlab.freedesktop.org/xorg/xse … /292/diffs
https://gitlab.freedesktop.org/xorg/xse … /304/diffs

Xorg did not recognize the nvidia card though, but with the conf file from prime.git it started working

https://aur.archlinux.org/cgit/aur.git/ … nf?h=prime

Offline

#17 2019-11-23 07:56:23

samurai
Member
From: Turkey
Registered: 2010-04-03
Posts: 28

Re: Nvidia PRIME Offload added in 435 driver comes a dream true

Xorg-server 1.20.6 is in the testing repo. Anyone tried?

Offline

#18 2019-11-26 20:04:08

danielee0707
Member
Registered: 2017-09-04
Posts: 3

Re: Nvidia PRIME Offload added in 435 driver comes a dream true

1.20.6 works for me on XPS 7590 with basic configuration. I also used intel tear-free feature to avoid tearing.

Last edited by danielee0707 (2019-11-26 20:05:38)

Offline

#19 2019-11-29 16:12:24

damachine
Member
From: Frankfurt, Germany
Registered: 2018-04-06
Posts: 20

Re: Nvidia PRIME Offload added in 435 driver comes a dream true

hallo i have it not test again because multihead did not work.
how is the experience now. multihead works?

Offline

Board footer

Powered by FluxBB