How do I make Manjaro use my NVidia GPU instead of my Intel UHD Graphics one?

I just checked out the Info Center and it seems that Manjaro is using my Intel UHD 630 Graphics card. I have a Nvidia GTX 1650 GPU but it seems like Manjaro isnt using it. How can I set it so Manjaro uses my actual better GPU? (nvidia)

I would add an image here, but for some reason I cant.

https://wiki.manjaro.org/index.php?title=Configure_Graphics_Cards

Hello. Thank you for the answer but as far as I can understand this document shows how to use the other GPU for specific applications. How can I set it as a default so every application uses my Nvidia GPU?

You could make use of Optimus-Manager and switch to the desired GPU or use it as render-offload. I suppose you have the hybrid drivers installed.

Yes, I do have the video-hybrid-intel-nvidia-455xx-prime driver. Thanks for your answer, going to try it out :slight_smile:

Hello again, I have installed the optimus-manager package from the AUR but even though I enabled the service using systemctl enable optimus-manager.service it still is giving the error No state file found. Is optimus-manager.service running ? What can I do to fix this?

OK, I have enabled it but now it gives me another error.
Error:
ERROR: the latest GPU setup attempt failed at Xorg pre-start hook. Log at /var/log/optimus-manager/switch/switch-20201111T155905.log

The log:
[9] INFO: # Xorg pre-start hook
[9] INFO: Previous state was: {‘type’: ‘pending_pre_xorg_start’, ‘requested_mode’: ‘intel’, ‘current_mode’: None}
[9] INFO: Requested mode is: intel
[9] INFO: Checking for GDM display servers
[381] INFO: Available modules: [‘nouveau’, ‘nvidia’, ‘nvidia_drm’, ‘nvidia_modeset’, ‘nvidia_uvm’]
[381] INFO: Unloading modules [‘nvidia_drm’, ‘nvidia_modeset’, ‘nvidia_uvm’, ‘nvidia’] (if loaded)
[388] ERROR: Xorg pre-start setup error
Traceback (most recent call last):
File “/usr/lib/python3.8/site-packages/optimus_manager/bash.py”, line 11, in exec_bash
out = subprocess.check_output(
File “/usr/lib/python3.8/subprocess.py”, line 411, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File “/usr/lib/python3.8/subprocess.py”, line 512, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command ‘[‘bash’, ‘-c’, ‘modprobe -r nvidia_drm nvidia_modeset nvidia_uvm nvidia’]’ returned non-zero exit status 1.
During handling of the above exception, another exception occurred:

        Traceback (most recent call last):
          File "/usr/lib/python3.8/site-packages/optimus_manager/kernel.py", line 196, in _unload_modules
            exec_bash("modprobe -r " + " ".join(modules_to_unload))
          File "/usr/lib/python3.8/site-packages/optimus_manager/bash.py", line 18, in exec_bash
            raise BashError(
        optimus_manager.bash.BashError: Failed to execute 'modprobe -r nvidia_drm nvidia_modeset nvidia_uvm nvidia' :
        modprobe: FATAL: Module nvidia_drm is in use.


        During handling of the above exception, another exception occurred:

        Traceback (most recent call last):
          File "/usr/lib/python3.8/site-packages/optimus_manager/hooks/pre_xorg_start.py", line 45, in main
            setup_kernel_state(config, prev_state, requested_mode)
          File "/usr/lib/python3.8/site-packages/optimus_manager/kernel.py", line 24, in setup_kernel_state
            _nvidia_down(config)
          File "/usr/lib/python3.8/site-packages/optimus_manager/kernel.py", line 65, in _nvidia_down
            _unload_nvidia_modules(available_modules)
          File "/usr/lib/python3.8/site-packages/optimus_manager/kernel.py", line 148, in _unload_nvidia_modules
            _unload_modules(available_modules, ["nvidia_drm", "nvidia_modeset", "nvidia_uvm", "nvidia"])
          File "/usr/lib/python3.8/site-packages/optimus_manager/kernel.py", line 198, in _unload_modules
            raise KernelSetupError("Cannot unload modules %s : %s" % (str(modules_to_unload), str(e)))
        optimus_manager.kernel.KernelSetupError: Cannot unload modules ['nvidia_drm', 'nvidia_modeset', 'nvidia_uvm', 'nvidia'] : Failed to execute 'modprobe -r nvidia_drm nvidia_modeset nvidia_uvm nvidia' :
        modprobe: FATAL: Module nvidia_drm is in use.

        [389] INFO: Removing /etc/X11/xorg.conf.d/10-optimus-manager.conf (if present)
        [389] INFO: Writing state {'type': 'pre_xorg_start_failed', 'switch_id': '20201111T155905', 'requested_mode': 'intel'}

Hello again! I have fixed the issue by downloading an AUR package called optimus-manager-qt and then using that to switch to my Nvidia card. Here are some things that happened:
First switch, nothing changed.
Rebooted.
Got stuck waiting on boot.
Hard reset 2 times, then it booted. But this time it was using Intel.
I clicked switch to Nvidia again, logged out and it worked!

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.