Nvidia Optimus Drivers

0 views
Skip to first unread message

Cristoforo Kanoy

unread,
Aug 3, 2024, 4:39:53 PM8/3/24
to terpgodini

At a minimum you should at least expect that your Nvidia card is powered off on boot, on battery power check your battery state before and after you installed bumblebee, the difference should be significant:

In yast follow the same procedure as for the Nvidia stuff, except now you select the Bumblebee repo. For 64-bit VirtualGL, bumblebee, dkms-bbswitch, libturbojpeg and profile-sync-daemon, for 32-bit you guess it.

I have been investigating installation of nvidia optimus drivers (Bumblebee) on W110ER Clevo Laptop under openSUSE 12.2 64-bit OS. There is no BIOS switch to disable optimus mode on this machine consequently when running under Linux OS the battery drains very quickly (less than 2 hours normal use).

Failed with messages: [ERROR]Cannot access secondary GPU - error: [XORG] (EE) Failed to load /usr/lib64/xorg/modules/libglamoregl.so: /usr/lib64/xorg/modules/libglamoregl.so: undefined symbol: _glapi_tls_Context AND [ERROR]Aborting because fallback start is disabled.

The first issue I had was that playback of a video on the widi monitor hung after 5-15 minutes of playback. The initial post on Intel's communities website suggested I needed to update my video driver.

I finally got a helpful tip from the Intel WIDI engineer that corrected a misperception of mine - Intel drivers should be upgradable on an Optimus system - there is nothing special about that driver (contrary to what the nvidia and lenovo sites were telling me).

Intel does not verify all solutions, including but not limited to any file transfers that may appear in this community. Accordingly, Intel disclaims all express and implied warranties, including without limitation, the implied warranties of merchantability, fitness for a particular purpose, and non-infringement, as well as any warranty arising from course of performance, course of dealing, or usage in trade.

I have followed -3-0-tumblewed-nvidia-optimus-gpu-switching-for-linux-has-been-released-how-to-install-bumblebee-3-0-on-ubuntu.html this guide to install nvidia driver on my Dell Inspiron N5110 notebook (Intel HD Graphics 3000 + NVIDIA GeForce GT525M), but i always get some error while i want to start any program with the optirun command.

My laptop cooler always cools the laptop, which means that nvidia card is consuming power in the background. (Terminal sometimes says something daemon-server is not running.)Can you give me some solution for this?

!! NOTE !! I no expert. This is just what I did - and it seems to work here. I have not tested anything else than the first command - just got this computer, and since I am most interested in saving battery.

There is a problem while playing VULKAN (or dxvk) games with nvidia optimus render offload on xwayland.
When playing a game, if framerate does not keep up with vsync rate (60fps in my case), screen starts glitching by momentarily showing some frames that were rendered a little earlier.

We need, for our customers, to intergrated a custom RHEL 7.7 operating system on a Lenovo P71 machine (20HL reference with a Core i7-7820HQ processor). We manage to install the operating system on the computer, however the integration of the NVIDIA Quadro MX2200 card is not optimal, even not functionnal at all due to Optimus drivers.

The addition of the AllowNVIDIAGPUScreens option, which strangely is not present in the X11 conf, improves things a bit. The nvidia card is well recognized (nvidia-settings works and finds the card well). On the other hand, the offload is still not good (glxinfo gives an X11 error at launch)

Please set the primarygpu option like mentioned in the rpmfusion optimus doc.
You might also have to create config files for gnome:
create two files optimus.desktop in /etc/xdg/autostart/ and /usr/share/gdm/greeter/autostart/ containing

Here i want to share my guide to properly install the Nvidia drivers on a laptop with hybride graphics (Intel/Nvidia), and also get the full performance of the Nvidia proprietary drivers with Optimus Manager.

After a lot of trail and error, (non bootable Arch, editing conf files files etc.) i managed to find the best way and the easiest way to install the Nvidia drivers and get the full performance with Vulkan support for gaming. I tried this method on 2 different laptops with intel/nvidia graphics.

For who?
This guide is pure for hybride graphics laptops with Intel/Nvidia graphic cards, so no need for installing it on desktops.The nvidia-installer with comes with EOS is just fine to use, and works with no problem with the Bumblebee service to switch between Intel en Nvidia graphics. So you can save some battery when mobile.

So why use Optimus Manager instead of Bumblebee?
Optimus manager has the same functionality as bumblebee, (despite the technical differences) it allows you to switch between Intel and Nvidia graphics on hybride laptops. The difference is that Optimus Manager has better performance for gaming and has support for the Vulkan drivers so you can properly game with the latest games on Linux (Lutris, Steam, Wine)

Nvidia-installer
Endeavour OS has his own nvidia-installer script that is ported from Antergos, with this script you can get the latest Nvidia proprietary drivers and the Bumblebee option to switch between Intel and Nvidia.
This install script with the Bumblebee is necessary to get the Nvidia driver working next to the Intel graphics.

Optimus-manager
Now we are going to install Optimus Manager and disable Bumblebee so there is no interference.
Optimus Manager has basically the same function as Bumblebee, but does it with better performance and Vulkan support.

Voila, you installed the Nvidia drivers with all the potential unlocked.
After this you can install all the supported Vulkan drivers and play games with Wine, Lutris and Steam with full performance.
If you want a guide for getting Endeavour OS ready to game with Lutris let me know

Another quirk of GDM is that the X server may not automatically restart after a GPU switch. If you see an empty black screen or a black screen with a blinking cursor, try switching back to an empty TTY (with Ctrl+Alt+F5 for instance), then back to TTY1 with Ctrl+Alt+F1. See this FAQ question.

The option to not reboot at step 3 in this guide, and going straight installing optimus-manager sounds familiair.
My old laptop had the same issue that it wouldnt boot after the bumblebee was installed, so disabeling it right away and intall optimus-manager was the solution.

Working again. I guess I have to set boot option to Intel, then unbind my dGPU from the VM, then switch to hybrid. A bit annoying to always do this after a reboot. More annoing is the audio resetting to HDMI when the session is loaded or display is turned off and back on again.

In 2D I don't see much of a difference between this newer notebook PC and my older HP (with "integrated" shared-memory graphics). The old HP was a dog in rendering and could just barely manage to operate in 3dcontext mode but 2D was okay.

Since the spring I've been running a Lenovo core i7 box with Optimus over a Quadro 2000M GPU. Very nice box. I have it set to use the Quadro for Bricscad in the nvidia control panel and, as far as I can tell, it's using it. That's only by eyeball, however. Is there a properties setting (other than in the nvidia control panel) that shows which graphics processor that Bricscad is using?

Optimus apparently has battery life advantages. I had looked for recommendations to upgrade graphics, but not found any suggestions that any would help much outside 3d work. Certainly e.g. a 12 mb file still zooms and pans instantly on my standard hardware, if that's the measure.

I believe when Autocad started out, printer and other hardware manufacturers declined to include Acad support in their driver software so they wrote their own for everything. With graphics, that situation evolved into a focus on optimising for high end cards. Acad carried on with the annoying driver installation thing after it generally became unnecessary with improved hardware and universal drivers. I was not sure if that still occurred or if there was still an area where there was any point.

NVIDIA Optimus is a proprietary technology that seamlessly switches between two GPUs. It is typically used on systems that have an integrated Intel GPU and a discrete NVIDIA GPU. The main benefit of using NVIDIA Optimus is to extend battery life by providing maximum GPU performance only when needed.

If the user has chosen to not use built-in modules, then the init system should load the necessary modules on system boot. If /proc/config.gz (or /boot/config-*-gentoo) is available, this can verified by running the following command:

If the output returns CONFIG_MODULES set to N, then the kernel will need recompiled with support to load modules. Information about that can be found over here. After module loading support has been added, return to this article and continue reading.

The best way to set the system's xorg.conf correctly would be to read the documentation NVIDIA has provided. The documentation can be found in a couple of locations. To save time, consider reading only the pages on Optimus and XRandR, as they are vital to correct configuration. If the driver has already been emerged (done in the installation step above), the documentation can be found locally at /usr/share/doc/nvidia-drivers-*/README.bz2.

The driver comes with an automatic tool to create an appropriate Xorg.conf for using Optimus. If you have a custom xorg.conf, it is prudent to create a backup just in case (although the tool makes a backup of its own).

Some laptops/notebooks may benefit from saving the EDID screen information to a file so it can be passed to the Intel modesetting driver. The EDID information can be saved using the read-edid utility.

This is to say any Display Manager that starts X-Windows then asks the user to log in will result in a black screen unless the above xrandr commands are run before asking the user to log in.

c80f0f1006
Reply all
Reply to author
Forward
0 new messages