Quantcast
Channel: openSUSE Forums
Viewing all articles
Browse latest Browse all 40713

"Fatal: module nvidia not found" -- but nvidia GPU is switched off by BIOS -- how to get rid of warn

$
0
0
The other day I had such a helpfull conversation with hank_se, but the crash of the database swallowed it all and even the NSA did not provide a backup.

My question was:

Quote:

I've got a Thinkpad T420s with this optimus nonsense: a integrated Intel GPU and a discrete Nvidia card. The Nvidia card is connected to the display port. Once in a while I need the display port, e.g. for presentations on large flat screens.

So for everyday work I like switch on in BIOS the integrated card, but if necessary, I'd like to reboot, change the BIOS settings to use the NVIDIA, and go on.

The BIOS has all the options I need, but I do not know, whether I can have all necessary files installed at the same time for just switching in the BIOS.

And the laptop is running on Tumbleweed.
We found out that one has to install the nvidia driver from the nividia repo, but not from the bumblebee repo. And indeed, the BIOS of the Thinkpad allows switching between nvidia and intel gpu, as long as optimus is disabled in the BIOS.

And you need a script:
Quote:

Originally Posted by hank_se
For 64-bit you can add this to /etc/init.d/boot.local
Code:


mode=$(/sbin/lspci | grep VGA);#Make shure we are in command of /usr/X11R6/lib
if [ -e /etc/ld.so.conf.d/nvidia-gfxGO3.conf ]; then
    /bin/rm /etc/ld.so.conf.d/nvidia-gfxGO3.conf
fi 
#Check graphics mode and take apropriate action
if [ `echo $mode | grep -c "Intel" ` -gt 0 ]; then
if [ -e /usr/lib64/xorg/modules/updates/extensions/libglx.so ]; then
    /bin/rm /usr/lib64/xorg/modules/updates/extensions/libglx.so
fi
if [ -e /usr/X11R6/lib/libGL.so.1 ]; then
    /bin/rm /usr/X11R6/lib/libGL.so.1
    /bin/rm /usr/X11R6/lib64/libGL.so.1
fi


#Else we must be in Nvidia mode
else
    /bin/ln -s /usr/lib64/xorg/modules/updates/extensions/libglx.so.* /usr/lib64/xorg/modules/updates/extensions/libglx.so
    /sbin/ldconfig /usr/X11R6/lib
    /sbin/ldconfig /usr/X11R6/lib64   
fi

If you're on 32-bit this

Code:

mode=$(/sbin/lspci | grep VGA);#Make shure we are in command of /usr/X11R6/lib
if [ -e /etc/ld.so.conf.d/nvidia-gfxGO3.conf ]; then
    /bin/rm /etc/ld.so.conf.d/nvidia-gfxGO3.conf
fi 
#Check graphics mode and take apropriate action
if [ `echo $mode | grep -c "Intel" ` -gt 0 ]; then
if [ -e /usr/lib/xorg/modules/updates/extensions/libglx.so ]; then
    /bin/rm /usr/lib/xorg/modules/updates/extensions/libglx.so
fi
if [ -e /usr/X11R6/lib/libGL.so.1 ]; then
    /bin/rm /usr/X11R6/lib/libGL.so.1
fi
   
    else
    /bin/ln -s /usr/lib/xorg/modules/updates/extensions/libglx.so.* /usr/lib/xorg/modules/updates/extensions/libglx.so
    /sbin/ldconfig /usr/X11R6/lib
       
     
fi

Check the output of this command in both modes, you'll need the package Mesa-demos-x.


Code:

glxinfo | grep OpenGL

OK, so far it works beautyfully and I'm happy with it. Except, if I switch to the intel gpu (and turn off in the BIOS the descrete gpu = nvidia) and I boot the machine, I get 25 times the warning "FATAL: module nvidia not found", and the screen has a wrong resolution, until X starts. After the start of X, everything is allright.

Any ideas, why the kernel looks for a switched off nvidia gpu?

Ok, this is not a serious issue at all, but, you know, it would be nice to know...

Viewing all articles
Browse latest Browse all 40713

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>