[Merged to stable] Adding Nvidia prime-offloading support to mhwd

Nah, same.. I checked journal and don't see any errors.. I'm not very technical..
It just freezes at boot screen.. Is it normal that the mhwd.conf is empty?
Until there is a way to this without headache I'm going back to bumblebee..:pensive:

Hello , i am unable to get the package from chaotic-aur.

Synchronizing package databases...
Refreshing chaotic-aur.db...
Resolving dependencies...
Checking inter-conflicts...
https://repo.kitsuna.net/x86_64/mhwd-db-tne-0.6.3-19-x86_64.pkg.tar.zst: Error 404
https://repo.kitsuna.net/x86_64/mhwd-tne-0.6.3-19-x86_64.pkg.tar.zst: Error 404
Refreshing chaotic-aur.db...
http://lonewolf-builder.duckdns.org/chaotic-aur/x86_64/mhwd-db-tne-0.6.3-19-x86_64.pkg.tar.zst: Error 404
http://chaotic.bangl.de/chaotic-aur/x86_64/mhwd-db-tne-0.6.3-19-x86_64.pkg.tar.zst: Error 404
https://repo.kitsuna.net/x86_64/mhwd-db-tne-0.6.3-19-x86_64.pkg.tar.zst: Error 404
Warning: mhwd-db-tne-0.6.3-19-x86_64.pkg.tar.zst: failed to retrieve some files
http://lonewolf-builder.duckdns.org/chaotic-aur/x86_64/mhwd-tne-0.6.3-19-x86_64.pkg.tar.zst: Error 404
http://chaotic.bangl.de/chaotic-aur/x86_64/mhwd-tne-0.6.3-19-x86_64.pkg.tar.zst: Error 404
https://repo.kitsuna.net/x86_64/mhwd-tne-0.6.3-19-x86_64.pkg.tar.zst: Error 404
Warning: mhwd-tne-0.6.3-19-x86_64.pkg.tar.zst: failed to retrieve some files
Failed to commit transaction:
failed to retrieve some files

The packages were dropped at my request since the changes were merged into manjaro's official repo.

In this case i suppose your modifications to mhwd will be available in the next manjaro update/release? Is there any way i can get the package before that? I have tested manjaro 19 dev branch with your mhwd config and it worked very well on gtx960/intel520 hybrid.



Glad you like it :+1:

@philm quick heads up, packages-mhwd needs to include nvidia-prime as required by the *-prime mhwd configs.

Let me check that.

Isn't there an --installcustom option in mhwd?
How is that supposed to work?

I also got this working, though I had to clear out my /etc/modprobe.d/ folder because something was stopping the nvidia driver from starting. Works perfectly after that though!
[walter@Phoenix ~]$ glxinfo | grep "OpenGL renderer" && prime-run glxinfo | grep "OpenGL renderer" OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 530 (Skylake GT2) OpenGL renderer string: GeForce GTX 960M/PCIe/SSE2

I would like to try this too, but the package links are down again.
Will this be merged soon?

And is it possible ( /does it make sence) to use this in combination with optimus-manager?


Already merged. Will be available in Manjaro 19.0.


Yes, to use optimus-manager you'll have to delete config file (symlink) 90-mhwd.conf from /etc/X11/xorg.conf.d. It makes sense if just hybrid mode is not enough and one needs more flexibility (Intel-only for power efficiency and Prime for gaming). For now Hybrid mode aka render offload has some limitations: no graphic output to external monitors through ports wired to Nvidia, no ability to over/underclock Nvidia card.

Ok, this sounds like it makes sense, when I have not a turing based card.
But with turing this mod should act like "hybrid" anyway, should'nt it?

@TotallyNotElite: thanks for the link.

19.0-pre1 ISOs had a missing package. With 19.0-pre2 it should work. ISOs are already available for testing.

Thanks! Can you check this out please? Video-virtualmachine is impossible to remove on systems relying on gtkmm3.

(link to topic)

I can report that TotallyNotElite's package works as advertised! Prior to that, I was not able to get glgears to use my GeForce GTX 1650 gpu.

I'm sorry, I'm a little ignorant here, but I was hoping that would just magically allow my external monitors to start working (through a Dell docking station), but I guess there's more work to be done. I don't want to hijack this thread, but just wanted to point that out in case it "should just work"?

xrandr is reporting 3 display ports disconnected, for what it's worth.

Yes, this is a known issue:
The hdmi and display ports on (attached to) the nvidia chipset (card) are not usable without using reverse-prime, or by using the dgpu as primary and the igpu as secondary.

Thanks for the pointer! I'm getting an error while attempting reverse-prime. I'm assuming this is unrelated to this thread - would you be able to point me to the proper place to ask questions about this?

$ xrandr --listproviders 
Providers: number : 2
Provider 0: id: 0x46 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 4 associated providers: 0 name:modesetting
Provider 1: id: 0x240 cap: 0x0 crtcs: 0 outputs: 0 associated providers: 0 name:NVIDIA-G0
$ xrandr --setprovideroutputsource 1 0
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  35 (RRSetProviderOutputSource)
  Value in failed request:  0x240
  Serial number of failed request:  16
  Current serial number in output stream:  17
$ xrandr --setprovideroutputsource NVIDIA-G0 modesetting
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  35 (RRSetProviderOutputSource)
  Value in failed request:  0x240
  Serial number of failed request:  16
  Current serial number in output stream:  17

you cant use render-offload and reverse prime, or prime at the same time. pick 1 configuration and use it. if you want your external displays to work, or want your dock to be anything more than a glorified usb hub then render offload is not for you or anyone that needs any of those functions and since crippling external displays is somehow not seen as a bug i dont expect this to change any time soon.

that said, if you need help setting up a configuration that will actually do what you want then this is not the thread to do it in, create a new thread if needed.

1 Like

@TotallyNotElite The nvidia prime render offload solution is in stable branch since 16th January 2020 and currently using it with the nvidia 440 drivers. Users with Turing NVIDIA GPUs and newer will greatly benefit with this solution because power management options currently supports these GPUs. I do hope that NVIDIA will support power management in pre-turing GPUs in future so that we can get 0% power usage for a pre-turing GPU when not in use like they have done for a Turing GPU with current power management options. Now users with with PCs with intel GPUs only can easily switch to the intel modesetting driver via mhwd if the xf86-video-intel causes issues and glitches on their PCs especially if they have newer GPUs. Thanks for this and all the changes you made to mhwd that will benefit a lot of users. Keep up the good work.:+1:

Forum kindly sponsored by