Hello! I’m trying to replace my Kubuntu installation with a Manjaro system. I’m currently stuck with the proper configuration I need with nVidia proprietary drivers. I need a configuration using the nVidia GPU alone, without the Intel GPU and without any offloading with PRIME.
It was incredibly simple to do this in Kubuntu: the nvidia-settings application had a specific tab for selecting one of these three options (Intel only, nVidia only, PRIME). I’m a little surprised to see that the same application (and same version) does not include that tab. I think it is currently using PRIME by default. I tried many ways to disable and only use nVidia, but no way worked. In particular, I guess the reference point is this:
X Error of failed request: BadName (named color or font does not exist)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 11 (RRQueryOutputProperty)
Serial number of failed request: 41
Current serial number in output stream: 41
So, any idea why the choice is missing in nvidia-settings? Any idea what the error means? Anyone who can provide info on how to go with nVidia only?
Thanks!
Hello,
thanks for your help. Unfortunately I already tried to install nvidia-driver-440xx, but the only thing I get after the reboot is a black screen.
Anyway, I followed all the steps you reported precisely again, but I keep getting a black screen. I fixed by reinstalling the previous one: video-hybrid-intel-nvidia-440xx-prime.
Given that you need to use a hybrid driver i think you might be using a laptop. Given that you might need to still use the hybrid driver so that you can use the IGPU’s output to the display. What you seem to be looking for would be to create a Reverse PRIME configuration. Take note though that you use the proprietary NVIDIA driver though, so the Xorg config is not the same as the one shown in the wiki.
I suspect I should be installing video-nvidia as you said. The other one is only for hybrid setup, which is the one I do not want. This explains why the menu I’m looking for is missing. But for some reason I get a black screen.
In the system settings, I see that video-linux is also installed. Isn’t that nouveau? Should I uninstall it?
Thanks.
Yup: the Quadro M1200 is supported by the 440 series, so get rid of the video-linux and hybrid drivers and install the nVidia only as per my original post.
As you’re going to mess with display drivers, it’s a good idea to create a full system backup before starting:
More specifically, the Make a Cold System Backup section!
Removing hybrid and installing video-nvidia results in a black screen.
Do you see anything wrong in the configuration in the picture?
There is nothing in this system that needs to be backed up. I’m only investigating a possible migration from Kubuntu. I can experiment freely.
Thanks for your help.
The problem is the output to your display is routed through the IGPU, as such what comes closest to what you want is a reverse Prime configuration as i explained earlier.
Yes, I read that part, but it is completely unclear to me whether that is really my case and how to implement that on this machine. It is unlikely I can make that work without more info. Do you think that is somehow related to Optimus Manager - Manjaro Linux?
optimus-manager --switch nvidia
seems interesting, but I’m unsure if that is an up to date document.
I also read another document here, but with that conf file, I’m back to my black screen: NVIDIA Optimus - ArchWiki.
Also I keep reading about this command:
xrandr --output HDMI-0 --set "PRIME Synchronization" 0 #replace HDMI-0 with your xrandr output ID
Could you please post your current basic working .conf file? We might need to manually rework that file a bit to make a working Reverse prime configuration in your case.
Hello,
sorry for the ignorance, which conf file do you need?
I’ve read that the current approach for offloading is setting env variables: Chapter 34. PRIME Render Offload. I therefore tried to put those in /etc/environment, but it seems Plasma is not appreciating it. It seems to crash and have severe issues with repainting, so it is not probably the proper way to go.
If I set those only for glxgears instead, it seems to work properly. But I’d like to use that approach system-wide.
After much reading, my understanding is that Ubuntu includes a “prime-select” tool that does what I need, but it is not available in Manjaro. I tried a few tools in github, but mostly broke the system.
From my experience the most hassle-free option, similar to Ubuntu’s method is using Optimus Manager with the switch. You’d only need video-hybrid-intel-nvidia-440xx-prime for it to work. I’d uninstall previous “video-nvidia-440xx” from a tty then install the “hybrid” one above.
More info here GitHub - Askannz/optimus-manager: A Linux program to handle GPU switching on Optimus laptops.
AFAIK Manjaro’s wiki about Optimus is still valid. There have been lots of threads about various methods in the archived forum as well, but I don’t have the time now to study them all, I’ll just leave them for reference below.
I don’t think one could boot up straight with nVidia as a dGPU from a laptop as it still needs the Intel drivers to start, this is dictated in the BIOS/UEFI. In most BIOS/UEFIs there is some secret code you can type for accessing hidden settings where you could take a look for more entries regarding dGPU and whatnot, you can search the web for it, and maybe you could be lucky disabling the Intel GPU right from the BIOS/UEFI. But double-check everything before applying because you could be left with a blank screen forever (almost)
Hello,
thanks for the info. Unfortunately I already tried optimus-manager, but guess it is outdated too. I see that it has 5 switching methods: None (I don’t know what this is), nouveau (I guess this is not for me), bbswitch (I’ve been told this is deprecated), ACPI (tried this, but it disabled nvidia entirely, it didn’t even load the module probably) and custom (I don’t know how to implement). I’ll read the links you provided though, thanks.
The only thing I’ve been able to use is the env variable described here: Chapter 34. PRIME Render Offload. But if I place it in /etc/environment, kwin is messed up badly.
I also found projects claiming to do what Ubuntu does, but I typically get a black screen.
Hi, sorry for the late reply but where did you read in my link above that Optimus Manager has 5 switches? It has 3 as it states and it’s very straightforward, forget all the rest:
optimus-manager --switch nvidia to switch to the Nvidia GPU
optimus-manager --switch intel to switch to the Intel GPU and power the Nvidia GPU off
optimus-manager --switch hybrid to switch to the Intel GPU but leave the Nvidia GPU available for on-demand offloading, similar to how Optimus works on Windows