You are not logged in.

#1 2020-10-25 08:51:15

Halikular
Member
From: Sweden
Registered: 2018-10-19
Posts: 38

[SOLVED] PRIME render offload with nvidia-prime

Begining with installing the nvidia package and its dependencies, removed xf86-video-intel to fallback on xf86-video-modesetting and keeping the mesa package (I'm not sure if this is the correct way). The wiki section PRIME render offload suggest you install the package nvidia-prime and run the provided script. Now, at this point I've no idea how to proceed since there is no info of this package and how to use it. The commands nvidia-prime and man nvidia-prime doesn't work.

Last edited by Halikular (2020-10-25 11:27:38)

Offline

#2 2020-10-25 10:08:48

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

Re: [SOLVED] PRIME render offload with nvidia-prime

The "nvidia-prime" package installs a script named "prime-run" that you can use to run a program on the Nvidia GPU, for example:

prime-run unigine-heaven

("unigine-heaven" is inside an AUR package named "unigine-heaven")

You can browse package contents like this, that's how you can try to guess how a package works:

pacman -Ql nvidia-prime

That "/usr/bin/prime-run" file is a simple script. It's a text file and you can look inside if you are interested.

Offline

#3 2020-10-25 10:18:30

Halikular
Member
From: Sweden
Registered: 2018-10-19
Posts: 38

Re: [SOLVED] PRIME render offload with nvidia-prime

Thanks! Are my intel packages ok, Should I use xf86-video-modesetting or intel, and should I keep the mesa package?

Offline

#4 2020-10-25 10:20:31

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,364

Re: [SOLVED] PRIME render offload with nvidia-prime

Yes and yes, you can't get rid of mesa you need the intel GPU to drive the normal display and the logic happening via prime is only supported by the modesetting driver.

Offline

#5 2020-10-25 10:47:35

Halikular
Member
From: Sweden
Registered: 2018-10-19
Posts: 38

Re: [SOLVED] PRIME render offload with nvidia-prime

Great! Is there a way to get rid of the tearing caused by the intel gpu and can you default applications to always run with "prime-run" so you can  run it directly from dmenu?

Offline

#6 2020-10-25 11:13:08

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,364

Re: [SOLVED] PRIME render offload with nvidia-prime

You need to edit the desktop files of the applications in question to append the prime-run command: https://wiki.archlinux.org/index.php/Desktop_entries (... or create wrapper scripts in e.g /usr/local/bin or somewhere in your home dir that you prepend to your path)

As for tearing you should setup a compositor, I've seen picom used often for a standalone solution.

Offline

#7 2020-10-25 11:24:44

Halikular
Member
From: Sweden
Registered: 2018-10-19
Posts: 38

Re: [SOLVED] PRIME render offload with nvidia-prime

I'll look in to this. Greatly appreciate all the help!

Offline

#8 2020-10-25 11:27:21

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,364

Re: [SOLVED] PRIME render offload with nvidia-prime

Please mark this one as [SOLVED] by editing the title in the first post.

Offline

#9 2020-10-25 11:48:42

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,473

Re: [SOLVED] PRIME render offload with nvidia-prime

V1del wrote:

Yes and yes, you can't get rid of mesa you need the intel GPU to drive the normal display and the logic happening via prime is only supported by the modesetting driver.

Thankfully it works with the intel driver too.
I know everyone suggests modesetting driver, but on haswell and sandybridge i've a much better exprience with intel+SNA (no tearing on multihead and no stutter at all while playing videos).

Last edited by kokoko3k (2020-10-25 11:50:15)


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

Board footer

Powered by FluxBB