[HowTo] Set up PRIME (output offload) with NVIDIA proprietary driver

The latest versions of Xorg, kernel, and NVIDIA driver all support PRIME output but setting this up is a bit of a faff. What follows is a method to get this working on an Optimus-enabled laptop.

440xx update: If you have something which supports driver series 440xx then you should switch to video-hybrid-intel-nvidia-440xx-prime and ignore this guide (unless you want to use only the dGPU). Specify using the dGPU with e.g. prime-run glxinfo.

Note: Fermi-based GPUs should use nvidia-390xx instead of nvidia.

Method Advantages Disadvantages
bumblebee, using "render offload" Uses the dGPU only when requested, allows power saving, is the Manjaro default Some overhead so lower raw performance
PRIME, using "output offload" Uses the dGPU directly, better raw performance dGPU and iGPU both powered on constantly, needs manual configuration
optimus-manager Easy switch between iGPU and dGPU usage Very much pre-release and under rapid development
video-hybrid-intel-nvidia-440xx-prime NVIDIA's updated render offloading. Works perfectly on supported hardware. Only supported by 440xx and newer driver series

Note: The easiest way to switch to the dGPU is to disable the iGPU in your BIOS. If that option is available all of this is unnecessary and you can just go ahead and use the NVIDIA driver.

Note 2: While the package optimus-manager offers a semi-automated way of switching configuration between iGPU and dGPU, as of 2018-12-15T00:00:00Z it is still under heavy development.

Disclaimer: NVIDIA's support for Optimus under Linux is a right mess. There are many different hardware configurations so while this approach works for many it may not work for you. Read the Arch wiki for some options.

Step 1: remove bumblebee

If you installed with the non-free driver option mhwd will have set up bumblebee for you. This will get in the way so the first step is to remove it. Use the mhwd command-line or simply remove it via Manjaro Settings Manager.

Step 2: install the NVIDIA driver

Use mhwd or MSM to install the nvidia driver in the normal way.

Step 3: break fix mhwd's configuration

mhwd does the sensible thing and puts configuration in place as though the NVIDIA GPU was the only device available. We need to change this setup so PRIME will work.

Step 3.1: set up a new Xorg configuration

Firstly, remove /etc/X11/xorg.conf.d/90-mhwd.conf and replace it with:

Section "Module"
    Load "modesetting"

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1:0:0"
    Option "AllowEmptyInitialConfiguration"

While the BusID value above should be correct for most Optimus laptops you should check your values with lspci | grep -E "VGA|3D" .

Step 3.2: Refine blacklisting

PRIME relies on nvidia-drm and mhwd puts it in a blacklist by default, but to ensure the nvidia kernel module will load we still need to blacklist certain other modules. Therefore, you'll have to do some editing of the files in /etc/modprobe.d.

To remove the existing blacklist, edit, move or remove any related mhwd-* files in /etc/modprobe.d/, e.g.

ls /etc/modprobe.d/mhwd*
sudo rm /etc/modprobe.d/mhwd-gpu.conf
sudo rm /etc/modprobe.d/mhwd-nvidia.conf

The end result must include a blacklist of the following modules, e.g. in /etc/modprobe.d/nvidia.conf:

blacklist nouveau
blacklist nvidiafb
blacklist rivafb

Step 4: enable nvidia-drm.modeset

Create a new file,

options nvidia_drm modeset=1

Step 5: Set the output source for your DM.

This is the most complicated part and the one which will take longest to get right. If you reboot now, your DM will load but display on the wrong output; the laptop display will be entirely blank (powered off).

We need to set a startup script to load the correct settings while the DM is loading.

NOTE: Use only the part which matches your current DM. You don't need to do all of these.

For LightDM

e.g. Xfce edition

Create a new file with the following content:


xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto

Make sure to set it world read-execute, chmod a+rx /usr/local/bin/optimus.sh.

Now you have to get this to load in LightDM's startup sequence, so edit /etc/lightdm/lightdm.conf and set this at the [Seat:*] section



e.g. GNOME edition

Create a new file,

[Desktop Entry]
Exec=sh -c "xrandr --setprovideroutputsource modesetting NVIDIA-0; xrandr --auto"

Or using the same script as above ("for LightDM"),

[Desktop Entry]

and link it into place so it starts with GDM and on login

sudo ln -s /usr/local/share/optimus.desktop /usr/share/gdm/greeter/autostart/optimus.desktop
sudo ln -s /usr/local/share/optimus.desktop /etc/xdg/autostart/optimus.desktop

You'll also have to use X, not Wayland.


e.g. KDE edition

Create a new file,


xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto

and make it executable.

Step 6: reboot

If everything is set correctly, when you reboot your DM will load, you can log in, and:

$ glxinfo | grep -i vendor
server glx vendor string: NVIDIA Corporation
client glx vendor string: NVIDIA Corporation
OpenGL vendor string: NVIDIA Corporation

Hooray! You're running X via the dGPU not the iGPU!

If you have multiple displays you may have to configure their layout again in the normal way.

References and reading

Impossible to boot after installing Nvidia drivers (gtx1060 laptop)
Nvidia non-free driver prevents me from loading Manjaro
Performance regression with NVIDIA 390.25
GNOME freezing waking up from suspend, now even after restart GUI wont start
KMail corrupt after upgrades
[SOLVED] NVIDIA PRIME synchronization
Issues Installing Proprietary Nvidia drivers
HDMI port not working on Dell Inspiron 7567
Using Only Nividia Card on Optimus System
No display after installation on Nvidia drivers
nvidia - unable to make driver work properly
Failed to start Load Kernel Modules.
Pantalla negra no funciona servicio light display manager. [Solucionado]
How To Install NVIDIA Drivers
Screen tearing appears after watching movies on VLC or using Simplescreenrecorder | SOLVED
Screen tearing appears after watching movies on VLC or using Simplescreenrecorder | SOLVED
I3 Nvidia screen tear | SOLVED
SOLVED - KDE compositing not working after enabling PRIME
No more Login screen and xorg got deleted after uninstalling libinput drivers
Extreme difficulties with GTX 1050ti/intel 630 hybrid graphics [SOLVED]
Bumblebee not working, PRIME broke my setup
[SOLVED] Issue with Nvidia Graphics
[SOLVED] System hang when using mhwd on Entroware Kratos
Problem with Manjaro on MSI GP72MVR 7RFX gaming laptop
Prime profiles missing?
[SOLVED] OpenGL not detected with primusrun and NVIDIA 390xx
Boot Stuck at TPM Error
[SOLVED] New laptops i7-8750
[SOLVED] Bad performance with Steam game using Nvidia bumblebee
NVIDIA issue (hybrid graphics and non-free driver)
[SOLVED] Nvidia Prime Issue With Inspiron 15 GTX 1050TI
[SOLVED] Nvidia Prime Issue With Inspiron 15 GTX 1050TI
[SOLVED] Nvidia Prime Issue With Inspiron 15 GTX 1050TI
[Solved] "NVIDIA X driver not loaded" when running nvidia-settings
[Solved] Open GLX Extention not supported by display
Need help setting up Nvidia Optimus: Bumblebee / Prime?
Issues with gaming on Manjaro i3 with Optimus
BIOS allows discrete and hybrid nvidia, but how does manjaro swap?
Manjaro XFCE keeps getting stuck
Multiple issues with laptop's GPU
How to only use Nvidia drivers?
Nvidia driver problems
Unable to install Manjaro, problem with dual graphics
Laptop not booting after installing proprietary drivers
CSGO is Not working on Nvidia Bumblebee (Only Getting 30 fps)
KDE + NVidia lag and jankiness (Solved)
Latest resort nvidia drivers
Не получается запустить игры в steam с дискретной видеокартой.
SDDM doesnt start on boot, works with startx
Manjaro XFCE Stable Fresh Install Random Freeze Problems
MSI Laptop Optimus/Nvidia Question
Manjaro Won't Boot After uninstalling Bumblebee and trying to install Nvidia drivers using MHWD
Nvidia driver installing error
Built-in audio not working after switching to Nvidia proprietary driver
Prime-run - what am I missing? How do I get stuff to display on my monitor
Dedicated graphics card not being recognised
An option for an MX150 GPU?
GRUB LUKS Slow boot
Just a small question regarding Nvidia PRIME and Steam
Plymouth black screen at the start of loading screen
Delucidazioni sui driver video
[Asus FX504GD] Issues with nvidia proprietary drivers standalone / bumblebee
Luego de actualizar driver de nvidia manjaro no inicia
installed nvidia 440x driver on laptop, now only hdmi monitor appears
Nvidia Drivers with Intel Integrated Graphics - Current Status?
Hybrid laptop - Intel + Nvidia GPU
Trying to understand my setup
Hardware configuration hangs out
How do I use only nvidia and not use intel graphics?
Installing Nvidia drivers
installazione non trova spazio
Failed to start Lightdm after installing non-free NVIDIA driver
Could not load GPU driver
Monitor detection lost after install Nvidia driver
NVIDIA Optimus problematic
There is a problem with the dual screen display when installing the NVIDIA driver prime?
Trouble with Steam -- hangs on "installing breakpad exception" -- suspect issue with drivers
How to properly disable intel GPU (hybrid GPU notebook)
Nvidia render offloading
Asus Nvidia GTX1050M, Drivers keeps crashing
Nvidia GPU driver (bumblebee) doesn't install correctly
blank screen when booting nvidia driver
Unreal Engine crashes on Manjaro on Vulkan and too slow on OpenGL
Manjaro KDE and Nvidia
[Steam][Bumblebee] Cs:go/dota2 MX940
Manjaro uses integrated graphics card instead of dedicated
[Testing Update] 2018-02-14 - Kernels, Plasma, KDE Framework, Themes
When will PRIME support be added to mhwd?
Cannot manage to have a external monitor and laptop display working at the same time
Installing manjaro linux to external hdd
System76 & Manjaro
Trying to understand my setup
HDMI port not working on Dell Inspiron 7567
HDMI port not recognized on Acer Nitro V
Optimus laptop issues
Did anyone installed drivers for Nvidia GTX1070?
NVIDIA Setting Restore on Boot
How to install nvidia driver for secondary GPU on laptop
How to install nvidia driver for secondary GPU on laptop
BIOS allows discrete and hybrid nvidia, but how does manjaro swap?
How to install nvidia driver for secondary GPU on laptop
NVIDIA-bumblebee stops working, needs to be reinstalled
Nvidia-intel hybrid performance issue
Nvidia-prime - manjaro
Dell laptop -- hybrid Intel/nVidia 1050Ti -- dual-monitor issues
Dell laptop -- hybrid Intel/nVidia 1050Ti -- dual-monitor issues
Dell laptop -- hybrid Intel/nVidia 1050Ti -- dual-monitor issues
Intel HD 630 and Nvidia problem
Primusrun very slow?
Trouble installing Manjaro on System with Nvidia GTX 1050 Ti
Getting stuck after entering login details
Manjaro not booting into kde environment
GDM + Bumblebee = black login screen
Can't make Intel + Nvidia gpu's works
Can't boot to manjaro after installing NVIDIA drivers
Fragen zu Intel/Nvidia Hybrid Grafik und nonfree Treiber
Only boot on dual screen
How can I make Manjaro like my optimus hardware?
non-free VESA nVidia Quadro K620M issues
External monitor does not work (hdmi)
(940mx + intel ) Nonfree driver issue ! Looking for helps :(
[SOLVED] UI of some apps not responding but I know they're working and "could not enable discrete graphics"
Manjaro stopped booting
Options for Nvidia Optimus graphics
Xorg can't find GLX for Nvidia
Bumblebee: optirun working, primusrun not working
MCE and other problems
Deepin Screen Tearing with NVIDIA Drivers - HP Envy
Start with black screen after non-free nvidia-driver installation
Start with black screen after non-free nvidia-driver installation
Video-Hybrid-Intel-Nvidia-Bublebee External Display
Video-Hybrid-Intel-Nvidia-Bublebee External Display
System crashes on reboot or poweroff
Dell XPS 15 9560 - Dual Display (HDMI Out, USB-C to HDMI Adapter Out)
Old desktop (6 years) and nvidia GeForce GT 730
[TOC] Nvidia GPU related Tutorials
can't login; black screen only using startx
Nvidia prime fail to load nouveau driver
Setting up PRIME reduces resolution to 960x540 (16:9)
Use so called prime instead of bumblebee for nvidia optimus based laptops
Vetzki's PRIME tutorial discussion
A question about this tutorial (prime with nvidia driver)
Fan at maximum speed
User experience degraded when laptop is on battery
Problem installing NVIDIA Drivers - without NVIDIA Optimus
Need help for Nvidia Prime setup
OS not booting. Lighted black screen with white underscore
OS not booting. Lighted black screen with white underscore
Running dedicated GPU Card in my laptop
Manjaro hangs after login on MSI GS63VR
Black screen after installing nvidia drivers - laptop dont work with nvidia drivers only!
Which GPU driver should I use?
Optimus laptops & Steam Play (Proton), any news?
Nvidia drivers not working in fresh install
Is it possible to use Prime like in Ubuntu?
Lock Screen Freeze Manjaro 18 XFCE with Nvidia Prime
Dell XPS 15 9570 Discrete Graphics
Black screen after login each time after installing nvidia driver
Bad Hardware Support for new devices (laptops) and nVidia cards (mobile variant)
Install Works, but black screen after login
[Steam] Recently Civ VI stops to launch
Nvidia proprietary drivers not installable
Bad Hardware Support for new devices (laptops) and nVidia cards (mobile variant)
Issues setting up PRIME on a laptop
Random crashes w/flickering black bars
Dell G7 i7 w GTX1060 6gb
Need help with my laptop's recovery and driver installation
Enabling GPU in Steam Games - Crash on Startup
Dell G7 i7 w GTX1060 6gb
Multiple monitor dual gpu issues
Setting up nvidia optimus; nvidia not detected
Dell XPS 15 (9550) Suspend to ram once; but not a second time
Second monitor does not work Alienware 13 i3 nvidia / intel
Subpar browser experience
Cannot install Manjaro with the "nonfree" driver option
Optimus setup with nouveau works perfectly on live ISO but doesn't work on a fresh installation
Unable to boot into system after installation
How to install nvidia drivers only?
How to install nvidia drivers only?
Hardware Detection Issue
Dell XPS 15 9570 with PRIME -> OS Freezes on wake up
XCOM 2 not using NVIDIA Drivers
Hardware Detection Issue
Installing Manjaro on HD630 and GTX1050Ti makes me crazy
Nvidia nonfree driver install program
Unreasonably bad performance on RTX 2060 (mobile)
Nvidia prime leads to black screen
Nvidia prime leads to black screen
[bumblebee, opti/primusrun] error: [XORG] (EE) kbd: <default keyboard>: failed to set us as foreground pgrp (Inappropriate ioctl for device)
Artifact card game on dedicated graphics
Lenovo Ideapad 330-17IKB randomly freezes
Optimus + Ultra Wide monitor + i3
Intel for display, Nvidia for CUDA?
Can't make Manjaro boot with bumblebee drivers in HP Omen 15-DC0053la
NVIDIA GeForce GTX 1060 not starting on Dell G5 laptop
Setting primary card in dual card NVIDIA and Intel.
GDM becoming unstable after switching to Nvidia-driver
Low resolution after update
Low resolution after update
Unable to detect second display
Nvidia Prime vs Optimus-manager
Manjaro KDE after update Black screen
Optirun problem on Manjaro KDE
Unable to detect GPU - Dell XPS 9570
After install video-nvidia manjaro can't boot
Installing nvidia and intel driver problem
Manjaro has ceased working on my new laptop
NVIDIA Driver disappears after roboot
Free or non free for Nvidia GTX960?
After install video-nvidia manjaro can't boot
[Testing Update] 2019-03-11 - KDE Frameworks, AMDVLK, LXDE, Glib2
Nvidia M150 Issues On Xiaomi Mi Notebook Pro
Nvidia M150 Issues On Xiaomi Mi Notebook Pro
keyboard layout does not persist on reboot, even after configuring xorg manually.
Your 2019 hopes for and from Manjaro?
Acer V5 573G Default PrtScSysRq Screenshot Error
Manjaro Wiki sanitization - report dangerously outdated articles here!
I3 Manjaro - unable to detect secondary monitor
Live USB not booting on XPS 15 9560
NVIDIA driver not working properly (+ poor rendering performance in Chrome)
Bumblebee fullscreen problem
Manjaro boot stuck at 'started Network Manager script dispatcher service'
No possibility to get Nvidia GT 610M working
Dual monitors Nvidia graphics (not Nouveau)
Manjaro Deepin on an Asus FX504G laptop
940MX Geforce Nvidia
Manjaro KDE works perfectly live but freezes once installed
Poweroff doesn't work after install
Cannot enable nvidia gpu for bumblebee XPS 15 9550
Installing video-nvidia using mhwd always leads to Failed to start load kernel modules
Using something else than FOSS gfx driver in macBook Pro
Unable to boot after nvidia-prime-select install
NVIDIA Driver loading Problem
Nvidia "Prime Profiles" Not Show
Nvidia "Prime Profiles" Not Show
Upgrade to kernel 5.0 broke display
Graphics issue
Low screen resolution after installing nvidia driver
Thinkpad T430s Grafiktreiber
Gnome black screen after installing Nvidia Proprietary drivers + Prime
Manjaro 20.01 XCFE - Multiple Display & Driver Problems
NVIDIA Driver loading Problem
Overall Graphics Problem with HP Omen Laptop
Wrong display scaling/DPI after setting up Nvidia Prime
Nvidia drivers are not loaded and external monitor not recognized
Manjaro KDE and Nvidia
Desktop(Gnome) frequently get frozen few seconds and works again.
configuration of my graphic card is correct?
Stable but battery efficient GPU option
No gaming for me
Problemas para Suspender e Hibernar
KDE composer with nvidia
System cannot boot after updating to kernel 4.19.30-1
Latest resort nvidia drivers
Can't reinstall Manjaro
[Stable Update] 2019-09-05 - Kernels, Mesa 19.1.5, XFCE 4.14, KDE, Nvidia 435xx, LibreOffice
Unable to boot after nvidia-prime-select install
Restore nvidia settings
Shutdown problems, desktop freezing
Nvidia Optimus
Gaming-related system crashes
Bumblebee is not able to activate NVIDIA GPU
System freezes when launching apps with NVIDIA Prime, but not with bumblebee
Frame drops when using Nvidia Prime
Trying to reinstall free graphics (moving away from PRIME)
60p youtube videos are choppy when using proprietary Nvidia drivers
nvidia - unable to make driver work properly
accidentally (?) deleted graphics driver.. blank screen..arrghh (wants walkthrough for driver reinstallation)
Vulkan issues (?) with Witcher 3 (GOG) + wine + dxvk + Optimus Nvidia
Installing Nvidia Prime breaks the brightness controls on my macbook pro Mid 2012.
Using a Second Monitor with Gnome
Using a Second Monitor with Gnome
NVIDIA PRIME and Manjaro
NVIDIA PRIME and Manjaro
Low resolution after installing Nvidia Prime
How often do you update your manjaro ?
How can I activate my Nvidia card ?
Nvidia Proprietary Drivers on 1660Ti
Setting up VGA passthrough on my laptop
Xbacklight not working after setting up proprietary Nvidia drivers
Nvidia drivers don't work
Steam Failed to load steamui.so on bumblebee
Manjaro Setting Manager - Hardware Configuration shows no installed display controller
Switching from propietrary/nonfree drivers to free drivers when switching computers (booting from an external ssd)
Can't get nvidia drivers to work
Driver Issue? Unsure - some programs not opening, hangs on shutdown
Blank Screen after login in gaming laptop with Nvidia GPU
Blank Screen after login in gaming laptop with Nvidia GPU
Deepin Manjaro wireless card and Nvidia driver problem!
Bumblebee suddenly stopped working.
Primary laptop display (eDP1) not detected/connected after upgrade
Video drivers on Asus Zenbook Pro
Primary laptop display (eDP1) not detected/connected after upgrade
No sound over HDMI - Nvidia Prime setup
Fan going full speed since update
Manjaro gnome hybrid video card - missing "Force Full Composition Pipeline" option
NVIDIA 435 on hybrid graphics notebook,
[GUIDE] Freezing Boot Issue In Nvidia-powered Laptops
My built-in webcam isn't working because of this error: usb usb1-port5: unable to enumerate USB device
Nvidia Prime issues with secondary screens
Black screen after executing command nvidia-xconfig --prime
Laptop running hot. Problems trying to install nvidia drivers
Issues with bumblebee - cannot enable discrete graphics
HDMI with External Monitor not recognized
Question about using X11 with an Nvidia and Intel Graphics 4000 when switching graphics cards in the bios
[Testing Update] 2019-10-27 - KDE-Git, Nvidia, Xorg-Server
Black Screen Nvidia Driver Lightdm Archlinux
Problem with intel_nvidia hybrid driver
Intel Graphics Monitor
Nvidia driver installing error
Ryzen 7 with GTX1660Ti driver problem (black screen before login)
`/etc/modules-load.d/` doesn't load `nvidia` on boot
Dual boot win10 & Kubuntu
Built-in audio not working after switching to Nvidia proprietary driver
Computer Keeps Crashing After New Install.
XServer with Prime Setup Broken After Last Nvidia Update
Cant boot with nvidia 440x driver
Nvidia Driver problems KDE
Graphic driver display issues - hybrid intel and Nvidia - external monitor
External monitor not detected
Black screen booting laptop with non-free driver (NVIDIA GTX 1660Ti)
Need help with setting up external display in Manjaro KDE
Computer hangs when using Optimus manager to switch between Intel/Nvidia/Hybrid
Computer hangs when using Optimus manager to switch between Intel/Nvidia/Hybrid
Manjaro 2019 / Card Graphic / OBS
Problem with nvidia drivers
I am having issues with my Thinkpad Docking in Manjaro KDE.
Dual Screen - NVIDIA
Dual Screen avec NVIDIA
Dual Screen - NVIDIA
Init Script not starting...?
Problems with Intel + Nvidia 1050 Hybrid and 4 Displays and Prime
Graphics Driver for System76 Adder WS
How do I use manjaro setting manager > hardware configuration? It failed
Screen Tearing after latest Nvidia PRIME nonfree driver installation
Issues with Intel/Nvidia dual-gpu laptop, need help diagnosing
Vsync with Optimus Manager
I have a problem with bumblebee and nouveau
Cannot write in TTY2, it writing by itself after NVIDIA update
NVIDIA prime, all settings not being saved after
Setting Up NVIDIA Drivers, Driver not loaded
How to save settings on second screen
Black screen after suspend.
Screen freeze after suspend on dell laptop.
Problem with Nvidia driver
how to make Dedicated GPU as a primary GPU
Matebook X Pro performances issue ?
Make GeForce GTX 1050 mobile work with Manjaro
Weird behaviour of Nvidia 1050 (is "off")
How to set Nvidia card properly?
Proton-Geometry Dash Vsync is forced
Problemas con driver Nvidia (Tearing y fuentes difusas)
How to correctly install drivers for NVIDIA Optimus? (Geforce GT740M)
HDMI sound issue (Dell G3, Cannon Lake)
Cannot run any application with dedicated graphics card
Screen tearing with picom and NVIDIA driver
Nvidia 440xx is not detected in my system
Bumblebee Crashes Everytime I Try to Use It
Black screen after installing and configuring nvidia-hybrid-intel-nvidia-440xx
nvidia-driver failed to configure after fresh install
Laptop can't find NVIDIA GPU inside
NVIDIA Prime instead of Intel
Lenovo P52 hybrid graphics can't setup Nvidia/external graphics
How to install & enable nVidia driver properly
How do I switch from my onboard (integrated) graphics to my nvidia graphics card?
[Solved] Experiencing something in-between stuttering and freezing
[SOLVED] nvidia PRIME second monitor will not work
Weird behaviour of Nvidia 1050 (is "off")
Nvidia dGPU + AMD iGPU Hybrid Setup not working
can't install video-nvidia drivers (laptop with AMD+Nvidia GPUs)
{Solved] Nvidia PRIME and Bumblebee Conflict
[SOLVED] Having some issues with NVIDIA card and Wi-Fi
how to install nvidia drivers ?
[Solved] I can't use video-nvidia-390xx on Dell XPS L502x
[Solved] Cannot get Manjaro installed on Sager NP6852 / Clevo N850HK1
Broken System - Nvidia Drivers
NVIDIA 435 driver looks exciting
How do I create a new file?
[SOLVED] OS temporary freezes before shutting down
Intel and Nvidia GTX 1050ti drivers problems on DELL G7 15 7588
Integrated graphics laptop - any walkthrough for non-technical users?
[Solved] Window trails and general glitchyness of Gnome Desktop after setting up NVIDIA Prime
[Solved]nvidia kernel module not loading without force loading it

Fantastic writeup! More people should be aware of the advantages. Once you leave bumblebee behind you never look back.


A bit off-topic, any idea when 390 will hit Stable branch?

With the next stable update. :wink:


Will boot parameters replace the need for a startup script and modprobe configuration?

GRUB_CMDLINE_LINUX_DEFAULT= "nvidia-drm.modeset=1


Yes. It's a different way of setting the same option.

Are these extensions enabled by default? Are they even necessary?

Section "Extensions"
    Option "Composite" "Enable"
    Option "RENDER" "Enable"

you can try ("Composite" "Enable" should work) and check xorg.log, it will say enabled or unknown option or something like that


grep Composite .local/share/xorg/Xorg.0.log
[    12.470] (**) Extension "Composite" is enabled
[    12.803] (II)         Composite (RENDER acceleration)

be aware that xorg.log could be either in .local or in /var (depends if started as user or with root permissions)
if unsure check timestamp

1 Like

I was curious if these options are already on default and if setting through the extensions section is redundant. Also, for a compositing window manager like Cinnamon, would it even have an effect to enable through Xorg?

I have it set to run as root to ensure KMS is active.

remove it and check xorg.log if its still enabled
(or xdpyinfo|grep Composite)

I really dont know

So, according to arch wiki Composite isn't needed for window managers that already include. I assume that means Damage and Render extensions are redundant also.

ARCHWIKI: Some window managers (e.g. Compiz, Enlightenment, KWin, Marco, Metacity, Muffin, Mutter, Xfwm) do compositing on their own. For other window managers, a standalone composite manager can be used.

A post was split to a new topic: When will PRIME support be added to mhwd?

Can you please explain why you say so? :thinking:
From what I see in OP's table both gpus are enabled all the time, so I assume this is a PC only solution?

That's about it.

What kind of difference are we talking about? As far as I have read it is said that bumblebee is not reducing performance. So I am really curious.

Also, I assume on laptop it is a battery draining solution?

It's all hardware-dependent. The only way to see if it works better for you is to try it.

The point of the OP was not to discuss the relative merits, but the method of switching from render offload to display offload, only including a brief overview of the differences in the introduction.

There is a small mistake here the option requires a boolean as it is presented here it will hang the system.


Option "AllowEmptyInitialConfiguration" "boolean"

    Normally, the NVIDIA X driver will fail to start if it cannot find any display devices connected to the NVIDIA GPU. AllowEmptyInitialConfiguration overrides that behavior so that the X server will start anyway, even if no display devices are connected.

    Enabling this option makes sense in configurations when starting the X server with no display devices connected to the NVIDIA GPU is expected, but one might be connected later. For example, some monitors do not show up as connected when they are powered off, even if they are physically connected to the GPU.

    Another scenario where this is useful is in Optimus-based laptops, where RandR 1.4 display offload (see Chapter 32, Offloading Graphics Display with RandR 1.4) is used to display the screen on the non-NVIDIA internal display panel, but an external display might be connected later.

    Default: off. The driver will refuse to start if it can't find at least one connected display device.

@jonathon following this tutorial using my modification did work here but the system started to overheat and I had to manually run the whole startkde to the gpu which was bad. I remmember I did not have to do it on my good setup so I dont know what I did have that differs from this that you posted

According to the NVIDIA driver documentation it does not require a boolean.

You might want to link to your source.


if its working without should be logged in xorg.log

Forum kindly sponsored by