Page 1 of 1

Bumblebee on LMDE 201303 - intergrated graphics not working

Posted: Tue Oct 08, 2013 6:31 pm
by Demo
Hello,

i am fairly new to LMDE, have installed every update that is available and so far everything runs fine, as long as i am not changing the graphics driver. In that case, only the internal Intel chip of my optimus card GT540M will be used. So i was trying to get the dedicated graphics to work, but could not accomplish that yet.
After searching for a solution with just nvidia proprietary drivers, i found Bumblebee to be the only solution for optimus cards. After following the official How To and trying some solutions given in google search results, i still do not get it to work properly. But most of the reasons for Bumblebee not working i have found, have been changed and optimized in the current Bumblebee package from the LMDE sources. And it seems that it works for almost everyone now, by just installing it, without any further configuration.

After installing Bumblebee with

Code: Select all

sudo apt-get install bumblebee-nvidia primus
Cinnamon only starts in fallback mode and says that no 3D acceleration is available.

glxgears works before installation, but after it:

Code: Select all

glxgears
Xlib:  extension "GLX" missing on display ":0".
Error: couldn't get an RGB, Double-buffered visual
and

Code: Select all

optirun glxgears
Xlib:  extension "GLX" missing on display ":0".
Xlib:  extension "GLX" missing on display ":0".
Error: couldn't get an RGB, Double-buffered visual
The solution from Bumblebee Troubleshooting:

Code: Select all

sudo apt-get install --reinstall libgl1-mesa-glx xserver-xorg-core
does not work.

inxi -G
delivers the following output without Bumblebee:

Code: Select all

Graphics:  Card-1 Intel 2nd Generation Core Processor Family Integrated Graphics Controller
           Card-2 NVIDIA GF108M [GeForce GT 540M] X.Org 1.12.4 Res: 1366x768@60.0hz, 1920x1080@60.0hz 
           GLX Renderer Mesa DRI Intel Sandybridge Mobile  GLX Version 3.0 Mesa 9.1.6
and with Bumblebee:

Code: Select all

Graphics:  Card-1 Intel 2nd Generation Core Processor Family Integrated Graphics Controller
           Card-2 NVIDIA GF108M [GeForce GT 540M] X.Org 1.12.4 Res: 1366x768@60.0hz, 1920x1080@60.0hz 
           GLX Renderer N/A GLX Version N/A
but

Code: Select all

optirun nvidia-settings -c :8
does really start the settings panel which is looking completely functioning, as far as i can tell.

So far i understand, that the install process messes up the driver for the integrated chip, but from what i learned, this should not happen anymore. After just removing bumblebee and everything nvidia related, everything works fine again with only the Intel chip working.

This is the very first time i start a thread myself, because i was always able to get help from threads of other people for every single problem i encountered in my live. So please be patient, if i made a mistake somewhere. But i am really impressed by LMDE after many years of not caring about Linux and only using Windows. So i really hope, i can get help with getting my nvidia graphics to run properly and not having to abandon LMDE. I could post the whole terminal output of the Bumblebee installation, if necessary.

Thanks in advance

Demo

Re: Bumblebee on LMDE 201303 - intergrated graphics not work

Posted: Fri Nov 29, 2013 7:56 pm
by ilittel
I experienced the exact same problem on my fresh LMDE 201303 installation, and found a solution.

Run the following command in a terminal:

Code: Select all

sudo update-alternatives --config glx
On my system, this gave three options:

Code: Select all

  Selection    Path                    Priority   Status
------------------------------------------------------------
* 0            /usr/lib/nvidia          100       auto mode
  1            /usr/lib/mesa-diverted   5         manual mode
  2            /usr/lib/nvidia          100       manual mode
After choosing option 1 and restarting X, everything suddenly worked as expected :D

I still haven't found out why the default bumblebee installation script didn't take care of this though.

Anyway, hope this works for you too...

Cheers,
Iwan