Well, yes, it is such an Optimus trash notebook: the DPI port is connected to the nvidia card only. So installing Bumblebee makes usage of the dpi port impossible. But thank you anyway for the idea.
You know, I use that adapted boot.local. So having a xorg.conf including an nvidia-card probably will brake the intel driver, if used. I’ll have to search whether there is an alternative name, such as xorg-nvidia.conf or something like that. However, good idea, thank you.
You can not use the Intel chip if you have the normal NVIDIA driver installed. NVIDIA messes with the mesa file and replaces it with one that is incompatible with any other driver/chip. The NVIDIA-bumblebee driver essential stops this and leaves the X stack alone. Or you could just use nouveau driver
Note the real problem is that NVIDIA does not support their own optimus tech on Linux so bumblebee is the work around.
I don’t see how you could use both chips without Bumblebee…But then optimus is a mess
But yes, we can! In the BIOS there is a switch: use either the integrated GPU, the discrete GPU or Optimus. If I switch to the integrated GPU, boot.local tells the kernel which driver to load. Usually I stick to the integrated GPU, but if I need the DisplayPort, I reboot, changing the BIOS to Nvidia at the restart.
So what I’m searching is a way to tell nvidia not to use VGA-0, if the nvidia driver is used. As far as I remember, there was something like xorg.conf.nvidia, maybe I can use that to realise wolfi’s idea.
Sorry, I didn’t connect your name to that script…
So you want to switch between nvidia and intel.
Then you’d need to disable/remove the xorg.conf when booting with intel of course.
This should work:
mode=$(/sbin/lspci | egrep 'VGA|3D');
#Make sure we are in command of /usr/X11R6/lib
if -e /etc/ld.so.conf.d/nvidia-gfxG0*.conf ]; then
#Check graphics mode and take apropriate action
if `echo $mode | grep -c "Intel" ` -gt 0 ]; then
/usr/sbin/update-alternatives --set libglx.so /usr/lib64/xorg/modules/extensions/xorg/xorg-libglx.so
if -e /etc/X11/xorg.conf ]; then
mv /etc/X11/xorg.conf /etc/X11/xorg.conf.nvidia
if -e /usr/X11R6/lib64/libGL.so.1 ]; then
if -e /usr/X11R6/lib/libGL.so.1 ]; then
if `echo $mode | grep -c "NVIDIA" ` -gt 0 ]; then
/usr/sbin/update-alternatives --set libglx.so /usr/lib64/xorg/modules/extensions/nvidia/nvidia-libglx.so
if -e /etc/X11/xorg.conf.nvidia ]; then
mv /etc/X11/xorg.conf.nvidia /etc/X11/xorg.conf