Bumblebee-Project / Bumblebee

Bumblebee daemon and client rewritten in C
http://www.bumblebee-project.org/
GNU General Public License v3.0
1.29k stars 144 forks source link

NVIDIA Corporation GF108M - HP Pavillion DV4 - Nothing works? #761

Open LordAmit opened 8 years ago

LordAmit commented 8 years ago

Edit: Solution Found - Tweak edition We worked out a solution. In case tl;dr, please check this link: https://github.com/Bumblebee-Project/Bumblebee/issues/761#issuecomment-219561042


Hi,

This is a few years old Optimus enabled graphics card. I was able to use it using bumblebee a few years ago as well, but in later versions of Ubuntu I have never been able to. I have tried setting it up using information from askubuntu, from ubuntu, from the various issues here, from different blogs. Nothing worked. Every single time I tried setting the latest nvidia driver (last attempt - last night 361) and rebooted, the login screen started flickering, pressing Alt + Ctrl + F1 to access terminal didn't work, and I had to get in Ubuntu advanced recovery mode to purge everything and back to square one. Before that, I tried editing bumblebee.conf and xorg.conf.nvidia. I tried making the bumblebee daemon work, but it kept failing at nvidia_uvm, or nvidia, or something else. I am really sorry if all these sound a bit incoherent.

Therefore, please guide me what I need to do. Here is my config:

lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 630M] (rev a1)
uname -a 
Linux amit-laptop 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

I am using Ubuntu Gnome 16.04 LTS - with GDM3 Display Manager.

Laptop Details: http://www.ubuntu.com/certification/hardware/201209-11722/

Please, let me know if you need any other information. I will provide any information required to solve this.

Thank you in advance.

mathias-freire commented 8 years ago

Did you look at this?

https://github.com/Bumblebee-Project/Bumblebee/issues/759

LordAmit commented 8 years ago

No, I didn't. Should I follow the instructions from here? https://github.com/Bumblebee-Project/Bumblebee/issues/759#issuecomment-214837895

i2000s commented 8 years ago

Yeap, worth trying. Good luck! My M1000M is running toward it.

LordAmit commented 8 years ago

here is what I did -

sudo apt-get install bumblebee bumblebee-nvidia primus linux-headers-generic
sudo apt install nvidia-361 nvidia-361-updates

I following the steps, while replacing 364 with 361.

I was following the above referenced comment here until I got stuck on this:

sudo update-alternatives --config i386-linux-gnu_egl_conf

gave me this:

* 0            /usr/lib/nvidia-361/alt_ld.so.conf         8604      auto mode
  1            /usr/lib/nvidia-361-prime/alt_ld.so.conf   8603      manual mode
  2            /usr/lib/nvidia-361/alt_ld.so.conf         8604      manual mode

am going for auto. will provide update.

LordAmit commented 8 years ago

Update - even console mode now flickers. Can't even get in console mode.

i2000s commented 8 years ago

Sorry, I may have misled you. Check out this question and answer. The current conclusion is you may not need this out-dated Bumblebee tool at all in recent Ubuntu release.

LordAmit commented 8 years ago

I had to chroot from liveCD (Usb Version :tongue: ) to fix it. Whew! I am checking the link :) A holiday is here today, so I can go for it all day!

LordAmit commented 8 years ago

Nope, didn't work. Monitor stopped getting power after rebooting when I followed all instructions from link.

i2000s commented 8 years ago

Wait, my recent link tells you DON'T USE BUMBLEBEE at all.

LordAmit commented 8 years ago

Yes. I purged bumblebee before going through the steps.

i2000s commented 8 years ago

Then what are you doing over this issue thread? What steps? Post your error code, otherwise no one can help you. Note that the recent kernel may not be compatible with nvidia-361/364 driver which you may want to install. Maybe you can find out which nvidia driver is compatible with your system here.

LordAmit commented 8 years ago

The steps provided by cl-netbox that I found from the link you gave above?

I removed bumblebee only after you gave the link from askubuntu where cl-netbox stated that do NOT install bumblebee.

I checked using the link and it states that I need nvidia 361.42 driver, although it does not state a kernel version.

Lets clear the communication gap here. I am going to follow the steps described in https://wiki.ubuntu.com/Bumblebee. Then I am going to run optirun and provide the error messages here. Is that ok?

ArchangeGabriel commented 8 years ago

That’s the third Ubuntu 16.04 threads after #759 and #749…

I think someone on that distro with a bit of knowledge on packaging should take a look at all this. But is there anyone corresponding to that description?

ArchangeGabriel commented 8 years ago

Maybe a bug should be filed at https://bugs.launchpad.net/ubuntu/+source/bumblebee.

bluca commented 8 years ago

Screen flickering or similar problems when using the Intel Xorg drivers are very unlikely to have anything to do with bumblebee - it is most likely an issue with the drivers packaging of Ubuntu. Specifically, with the update-alternatives handling of libglx.so, or with the modprobe aliases (or lack thereof). We fixed these in Debian, but we have no control over what the Ubuntu maintainers do.

@lordamit - Yes please, do post the exact steps you are following in installing bumblebee, and the errors from the journal, that will help a lot

If anything else fails, please file a bug with: https://bugs.launchpad.net/ubuntu/+source/nvidia-driver

bluca commented 8 years ago

One thing we need to do in the PPA is to add a Xenial package. I will do that.

@lordamit - make sure /etc/modprobe.d/bumblebee.conf has the blacklist lines for your versions of the drivers. The bumblebee version in the Ubuntu archive might be outdated in that regard. EDIT: also, in the update-alternative choice, make sure to choose the MESA provider, not the nvidia ones.

LordAmit commented 8 years ago

Hi @bluca Glad to have you here.

I will provide the exact steps and the outputs from terminal and everything else you require.

How do I provide the errors from the journal? Are those in /var/log/syslog?

bluca commented 8 years ago

the best way is from systemd's journal:

sudo journalctl -b

LordAmit commented 8 years ago

@bluca - I am going for https://wiki.ubuntu.com/Bumblebee instructions for version 14.04 and later - if that is ok.

bluca commented 8 years ago

Yes, but before that - you are on 16.04, right? Do you have xserver-xorg-legacy installed as a package?

LordAmit commented 8 years ago

Ubuntu 16.04 LTS

uname -a 
Linux amit-laptop 4.4.0-22-generic #39-Ubuntu SMP Thu May 5 16:53:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

sudo apt install xserver-xorg-legacy 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
xserver-xorg-legacy is already the newest version (2:1.18.3-1ubuntu2).

sudo apt-get install bumblebee bumblebee-nvidia primus linux-headers-generic
[lots of packages downloaded here]
Extracting templates from packages: 100%
(Reading database ... 393956 files and directories currently installed.)
Removing libcuda1-361 (361.42-0ubuntu2) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Selecting previously unselected package libxau6:i386.
(Reading database ... 393948 files and directories currently installed.)
Preparing to unpack .../libxau6_1%3a1.0.8-1_i386.deb ...
Unpacking libxau6:i386 (1:1.0.8-1) ...
Selecting previously unselected package libxdmcp6:i386.
Preparing to unpack .../libxdmcp6_1%3a1.1.2-1.1_i386.deb ...
Unpacking libxdmcp6:i386 (1:1.1.2-1.1) ...
Selecting previously unselected package libxcb1:i386.
Preparing to unpack .../libxcb1_1.11.1-1ubuntu1_i386.deb ...
Unpacking libxcb1:i386 (1.11.1-1ubuntu1) ...
Selecting previously unselected package libx11-6:i386.
Preparing to unpack .../libx11-6_2%3a1.6.3-1ubuntu2_i386.deb ...
Unpacking libx11-6:i386 (2:1.6.3-1ubuntu2) ...
Selecting previously unselected package libxext6:i386.
Preparing to unpack .../libxext6_2%3a1.3.3-1_i386.deb ...
Unpacking libxext6:i386 (2:1.3.3-1) ...
Selecting previously unselected package libxdamage1:i386.
Preparing to unpack .../libxdamage1_1%3a1.1.4-2_i386.deb ...
Unpacking libxdamage1:i386 (1:1.1.4-2) ...
Selecting previously unselected package libxfixes3:i386.
Preparing to unpack .../libxfixes3_1%3a5.0.1-2_i386.deb ...
Unpacking libxfixes3:i386 (1:5.0.1-2) ...
Selecting previously unselected package libxshmfence1:i386.
Preparing to unpack .../libxshmfence1_1.2-1_i386.deb ...
Unpacking libxshmfence1:i386 (1.2-1) ...
Selecting previously unselected package libxxf86vm1:i386.
Preparing to unpack .../libxxf86vm1_1%3a1.1.4-1_i386.deb ...
Unpacking libxxf86vm1:i386 (1:1.1.4-1) ...
Selecting previously unselected package bumblebee.
Preparing to unpack .../bumblebee_3.2.1-10_amd64.deb ...
Unpacking bumblebee (3.2.1-10) ...
Selecting previously unselected package gcc-5-base:i386.
Preparing to unpack .../gcc-5-base_5.3.1-14ubuntu2_i386.deb ...
Unpacking gcc-5-base:i386 (5.3.1-14ubuntu2) ...
Selecting previously unselected package libstdc++6:i386.
Preparing to unpack .../libstdc++6_5.3.1-14ubuntu2_i386.deb ...
Unpacking libstdc++6:i386 (5.3.1-14ubuntu2) ...
Selecting previously unselected package libtxc-dxtn-s2tc0:i386.
Preparing to unpack .../libtxc-dxtn-s2tc0_0~git20131104-1.1_i386.deb ...
Unpacking libtxc-dxtn-s2tc0:i386 (0~git20131104-1.1) ...
Selecting previously unselected package libbsd0:i386.
Preparing to unpack .../libbsd0_0.8.2-1_i386.deb ...
Unpacking libbsd0:i386 (0.8.2-1) ...
Selecting previously unselected package libexpat1:i386.
Preparing to unpack .../libexpat1_2.1.0-7_i386.deb ...
Unpacking libexpat1:i386 (2.1.0-7) ...
Selecting previously unselected package libffi6:i386.
Preparing to unpack .../libffi6_3.2.1-4_i386.deb ...
Unpacking libffi6:i386 (3.2.1-4) ...
Selecting previously unselected package libdrm2:i386.
Preparing to unpack .../libdrm2_2.4.67-1_i386.deb ...
Unpacking libdrm2:i386 (2.4.67-1) ...
Selecting previously unselected package libedit2:i386.
Preparing to unpack .../libedit2_3.1-20150325-1ubuntu2_i386.deb ...
Unpacking libedit2:i386 (3.1-20150325-1ubuntu2) ...
Selecting previously unselected package libelf1:i386.
Preparing to unpack .../libelf1_0.165-3ubuntu1_i386.deb ...
Unpacking libelf1:i386 (0.165-3ubuntu1) ...
Selecting previously unselected package libcuda1-304.
Preparing to unpack .../libcuda1-304_304.131-0ubuntu3_amd64.deb ...
Unpacking libcuda1-304 (304.131-0ubuntu3) ...
Selecting previously unselected package libdrm-amdgpu1:i386.
Preparing to unpack .../libdrm-amdgpu1_2.4.67-1_i386.deb ...
Unpacking libdrm-amdgpu1:i386 (2.4.67-1) ...
Selecting previously unselected package libpciaccess0:i386.
Preparing to unpack .../libpciaccess0_0.13.4-1_i386.deb ...
Unpacking libpciaccess0:i386 (0.13.4-1) ...
Selecting previously unselected package libdrm-intel1:i386.
Preparing to unpack .../libdrm-intel1_2.4.67-1_i386.deb ...
Unpacking libdrm-intel1:i386 (2.4.67-1) ...
Selecting previously unselected package libdrm-nouveau2:i386.
Preparing to unpack .../libdrm-nouveau2_2.4.67-1_i386.deb ...
Unpacking libdrm-nouveau2:i386 (2.4.67-1) ...
Selecting previously unselected package libdrm-radeon1:i386.
Preparing to unpack .../libdrm-radeon1_2.4.67-1_i386.deb ...
Unpacking libdrm-radeon1:i386 (2.4.67-1) ...
Selecting previously unselected package libllvm3.8:i386.
Preparing to unpack .../libllvm3.8_1%3a3.8-2ubuntu3_i386.deb ...
Unpacking libllvm3.8:i386 (1:3.8-2ubuntu3) ...
Selecting previously unselected package libgl1-mesa-dri:i386.
Preparing to unpack .../libgl1-mesa-dri_11.2.0-1ubuntu2_i386.deb ...
Unpacking libgl1-mesa-dri:i386 (11.2.0-1ubuntu2) ...
Selecting previously unselected package libglapi-mesa:i386.
Preparing to unpack .../libglapi-mesa_11.2.0-1ubuntu2_i386.deb ...
Unpacking libglapi-mesa:i386 (11.2.0-1ubuntu2) ...
Selecting previously unselected package libx11-xcb1:i386.
Preparing to unpack .../libx11-xcb1_2%3a1.6.3-1ubuntu2_i386.deb ...
Unpacking libx11-xcb1:i386 (2:1.6.3-1ubuntu2) ...
Selecting previously unselected package libxcb-dri2-0:i386.
Preparing to unpack .../libxcb-dri2-0_1.11.1-1ubuntu1_i386.deb ...
Unpacking libxcb-dri2-0:i386 (1.11.1-1ubuntu1) ...
Selecting previously unselected package libxcb-dri3-0:i386.
Preparing to unpack .../libxcb-dri3-0_1.11.1-1ubuntu1_i386.deb ...
Unpacking libxcb-dri3-0:i386 (1.11.1-1ubuntu1) ...
Selecting previously unselected package libxcb-glx0:i386.
Preparing to unpack .../libxcb-glx0_1.11.1-1ubuntu1_i386.deb ...
Unpacking libxcb-glx0:i386 (1.11.1-1ubuntu1) ...
Selecting previously unselected package libxcb-present0:i386.
Preparing to unpack .../libxcb-present0_1.11.1-1ubuntu1_i386.deb ...
Unpacking libxcb-present0:i386 (1.11.1-1ubuntu1) ...
Selecting previously unselected package libxcb-sync1:i386.
Preparing to unpack .../libxcb-sync1_1.11.1-1ubuntu1_i386.deb ...
Unpacking libxcb-sync1:i386 (1.11.1-1ubuntu1) ...
Selecting previously unselected package libgl1-mesa-glx:i386.
Preparing to unpack .../libgl1-mesa-glx_11.2.0-1ubuntu2_i386.deb ...
Unpacking libgl1-mesa-glx:i386 (11.2.0-1ubuntu2) ...
Selecting previously unselected package nvidia-304.
Preparing to unpack .../nvidia-304_304.131-0ubuntu3_amd64.deb ...
Unpacking nvidia-304 (304.131-0ubuntu3) ...
Selecting previously unselected package nvidia-current.
Preparing to unpack .../nvidia-current_304.131-0ubuntu3_amd64.deb ...
Unpacking nvidia-current (304.131-0ubuntu3) ...
Selecting previously unselected package nvidia-opencl-icd-304.
Preparing to unpack .../nvidia-opencl-icd-304_304.131-0ubuntu3_amd64.deb ...
Unpacking nvidia-opencl-icd-304 (304.131-0ubuntu3) ...
Selecting previously unselected package nvidia-settings.
Preparing to unpack .../nvidia-settings_361.42-0ubuntu1_amd64.deb ...
Unpacking nvidia-settings (361.42-0ubuntu1) ...
Selecting previously unselected package bumblebee-nvidia.
Preparing to unpack .../bumblebee-nvidia_3.2.1-10_amd64.deb ...
Unpacking bumblebee-nvidia (3.2.1-10) ...
Selecting previously unselected package socat.
Preparing to unpack .../socat_1.7.3.1-1_amd64.deb ...
Unpacking socat (1.7.3.1-1) ...
Selecting previously unselected package primus.
Preparing to unpack .../primus_0~20150328-1_amd64.deb ...
Unpacking primus (0~20150328-1) ...
Selecting previously unselected package primus-libs:i386.
Preparing to unpack .../primus-libs_0~20150328-1_i386.deb ...
Unpacking primus-libs:i386 (0~20150328-1) ...
Selecting previously unselected package primus-libs-ia32:i386.
Preparing to unpack .../primus-libs-ia32_0~20150328-1_i386.deb ...
Unpacking primus-libs-ia32:i386 (0~20150328-1) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Processing triggers for initramfs-tools (0.122ubuntu8) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-22-generic
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for systemd (229-4ubuntu5) ...
Processing triggers for ureadahead (0.100.0-19) ...
ureadahead will be reprofiled on next reboot
Processing triggers for gnome-menus (3.13.3-6ubuntu3) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Setting up libxau6:i386 (1:1.0.8-1) ...
Setting up libxdmcp6:i386 (1:1.1.2-1.1) ...
Setting up libxcb1:i386 (1.11.1-1ubuntu1) ...
Setting up libx11-6:i386 (2:1.6.3-1ubuntu2) ...
Setting up libxext6:i386 (2:1.3.3-1) ...
Setting up libxdamage1:i386 (1:1.1.4-2) ...
Setting up libxfixes3:i386 (1:5.0.1-2) ...
Setting up libxshmfence1:i386 (1.2-1) ...
Setting up libxxf86vm1:i386 (1:1.1.4-1) ...
Setting up bumblebee (3.2.1-10) ...
Adding members from group(s) 'adm sudo admin' to 'bumblebee':
amit syslog
Adding user amit to group bumblebee
Adding user syslog to group bumblebee
Selecting 01:00:0 as discrete nvidia card. If this is incorrect,
edit the BusID line in /etc/bumblebee/xorg.conf.nouveau .
Setting up gcc-5-base:i386 (5.3.1-14ubuntu2) ...
Setting up libstdc++6:i386 (5.3.1-14ubuntu2) ...
Setting up libtxc-dxtn-s2tc0:i386 (0~git20131104-1.1) ...
update-alternatives: using /usr/lib/i386-linux-gnu/libtxc_dxtn_s2tc.so.0 to provide /usr/lib/i386-linux-gnu/libtxc_dxtn.so (libtxc-dxtn-i386-linux-gnu) in auto mode
Setting up libbsd0:i386 (0.8.2-1) ...
Setting up libexpat1:i386 (2.1.0-7) ...
Setting up libffi6:i386 (3.2.1-4) ...
Setting up libdrm2:i386 (2.4.67-1) ...
Setting up libedit2:i386 (3.1-20150325-1ubuntu2) ...
Setting up libelf1:i386 (0.165-3ubuntu1) ...
Setting up libcuda1-304 (304.131-0ubuntu3) ...
Setting up libdrm-amdgpu1:i386 (2.4.67-1) ...
Setting up libpciaccess0:i386 (0.13.4-1) ...
Setting up libdrm-intel1:i386 (2.4.67-1) ...
Setting up libdrm-nouveau2:i386 (2.4.67-1) ...
Setting up libdrm-radeon1:i386 (2.4.67-1) ...
Setting up libllvm3.8:i386 (1:3.8-2ubuntu3) ...
Setting up libgl1-mesa-dri:i386 (11.2.0-1ubuntu2) ...
Setting up libglapi-mesa:i386 (11.2.0-1ubuntu2) ...
Setting up libx11-xcb1:i386 (2:1.6.3-1ubuntu2) ...
Setting up libxcb-dri2-0:i386 (1.11.1-1ubuntu1) ...
Setting up libxcb-dri3-0:i386 (1.11.1-1ubuntu1) ...
Setting up libxcb-glx0:i386 (1.11.1-1ubuntu1) ...
Setting up libxcb-present0:i386 (1.11.1-1ubuntu1) ...
Setting up libxcb-sync1:i386 (1.11.1-1ubuntu1) ...
Setting up libgl1-mesa-glx:i386 (11.2.0-1ubuntu2) ...
update-alternatives: using /usr/lib/i386-linux-gnu/mesa/ld.so.conf to provide /etc/ld.so.conf.d/i386-linux-gnu_GL.conf (i386-linux-gnu_gl_conf) in auto mode
Setting up nvidia-304 (304.131-0ubuntu3) ...
update-alternatives: using /usr/lib/nvidia-304/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf (x86_64-linux-gnu_gl_conf) in auto mode
update-alternatives: using /usr/lib/nvidia-304/alt_ld.so.conf to provide /etc/ld.so.conf.d/i386-linux-gnu_GL.conf (i386-linux-gnu_gl_conf) in auto mode
update-alternatives: using /usr/share/nvidia-304/glamor.conf to provide /usr/share/X11/xorg.conf.d/glamoregl.conf (glamor_conf) in auto mode
update-initramfs: deferring update (trigger activated)
INFO:Enable nvidia-304
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
Loading new nvidia-304-304.131 DKMS files...
First Installation: checking all kernels...
Building only for 4.4.0-22-generic
Building for architecture x86_64
Building initial module for 4.4.0-22-generic
Done.

nvidia_304:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.4.0-22-generic/updates/dkms/

depmod..........

DKMS: install completed.
Setting up nvidia-current (304.131-0ubuntu3) ...
Setting up nvidia-opencl-icd-304 (304.131-0ubuntu3) ...
Setting up nvidia-settings (361.42-0ubuntu1) ...
Setting up socat (1.7.3.1-1) ...
Setting up primus-libs:i386 (0~20150328-1) ...
Setting up primus-libs-ia32:i386 (0~20150328-1) ...
Processing triggers for initramfs-tools (0.122ubuntu8) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-22-generic
Setting up primus (0~20150328-1) ...
Setting up bumblebee-nvidia (3.2.1-10) ...
update-alternatives: using /usr/lib/x86_64-linux-gnu/mesa/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf (x86_64-linux-gnu_gl_conf) in manual mode
update-alternatives: using /usr/lib/i386-linux-gnu/mesa/ld.so.conf to provide /etc/ld.so.conf.d/i386-linux-gnu_GL.conf (i386-linux-gnu_gl_conf) in manual mode
Selecting 01:00:0 as discrete nvidia card. If this is incorrect,
edit the BusID line in /etc/bumblebee/xorg.conf.nvidia
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Processing triggers for systemd (229-4ubuntu5) ...
Processing triggers for ureadahead (0.100.0-19) ...
LordAmit commented 8 years ago

I have not done anything else after going through this. Should I install nvidia-361-* ? That's the latest available one for from main repositories. I have not added the bumblebee ppa yet - not sure if it got the packages for Xenial.

bluca commented 8 years ago

So due to xserver-xorg-legacy bumblebee will not work as it is in Xenial. I am going to add Xenial packages to the bumblebee PPA, which have the fix for that incompatibility, in a few hours when I get home from work - would you be able to wait until then?

And if you don't mind, please do keep 304 for now, as it has a simpler kernel module situation. It does support your card even if it's really old. Then once that is confirmed to work, we can move on to 361.

LordAmit commented 8 years ago

No problem from my side. As long as I can get access to my graphics card and use it - I don't really care about the nvidia-driver version.

I am certain that it will flickr when I reboot, so I can wait for a few hours. Any estimation for the number of hours required for me to wait? It is 19:45 here in GMT+6 time, and I am available for ... 5 hours or so.

Do I need to change anything in the bumblebee.conf.d or anything else at this stage?

bluca commented 8 years ago

3-4 hours give or take, hoping not too much breaks between now and then :-)

Once you got the bumblebee version from the Xenial PPA, I would suggest we start with the default configuration, and see what needs to be tweaked in the paths.

LordAmit commented 8 years ago

I thought I should give the journal thing. And a notification to you :tongue:

May 16 19:16:45 amit-laptop sudo[9430]:     amit : TTY=pts/5 ; PWD=/home/amit ; USER=root ; COMMAND=/usr/bin/apt-get install bumblebee bumblebee-nvidia primus linux-headers-generic
May 16 19:16:45 amit-laptop sudo[9430]: pam_unix(sudo:session): session opened for user root by (uid=0)
May 16 19:17:01 amit-laptop CRON[9669]: pam_unix(cron:session): session opened for user root by (uid=0)
May 16 19:17:01 amit-laptop CRON[9670]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
May 16 19:17:01 amit-laptop CRON[9669]: pam_unix(cron:session): session closed for user root
May 16 19:17:32 amit-laptop firefox.desktop[1953]: (nautilus:9958): GLib-GIO-CRITICAL **: g_dbus_interface_skeleton_unexport: assertion 'interface_->priv->connections != NULL' failed
May 16 19:17:32 amit-laptop firefox.desktop[1953]: (nautilus:9958): GLib-GIO-CRITICAL **: g_dbus_interface_skeleton_unexport: assertion 'interface_->priv->connections != NULL' failed
May 16 19:17:32 amit-laptop firefox.desktop[1953]: (nautilus:9958): Gtk-CRITICAL **: gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed
May 16 19:17:32 amit-laptop firefox.desktop[1953]: (nautilus:9958): GLib-GObject-WARNING **: invalid (NULL) pointer instance
May 16 19:17:32 amit-laptop firefox.desktop[1953]: (nautilus:9958): GLib-GObject-CRITICAL **: g_signal_connect_object: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
May 16 19:17:32 amit-laptop dbus[664]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service'
May 16 19:17:32 amit-laptop systemd[1]: Starting Hostname Service...
May 16 19:17:32 amit-laptop dbus[664]: [system] Successfully activated service 'org.freedesktop.hostname1'
May 16 19:17:32 amit-laptop systemd[1]: Started Hostname Service.
May 16 19:19:29 amit-laptop gnome-session[1683]: (gnome-software:1867): As-WARNING **: failed to rescan: Failed to parse /usr/share/applications/nvidia-settings.desktop.dpkg-new file: cannot process file of type text/plain
May 16 19:19:29 amit-laptop gnome-session[1683]: (gnome-software:1867): As-WARNING **: failed to rescan: Failed to parse /usr/share/applications/nvidia-settings.desktop file: cannot process file of type application/x-desktop
May 16 19:19:33 amit-laptop /usr/lib/snapd/snapd[2785]: daemon.go:170: DEBUG: uid=1000;@ GET /v2/snaps?sources=local 68.536µs 200
May 16 19:19:33 amit-laptop gnome-session[1683]: (gnome-software:1867): Gs-WARNING **: Failed to create permission org.freedesktop.packagekit.trigger-offline-update: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Action org.freedesktop.packagekit.trigger-offline-update is not registered
May 16 19:19:33 amit-laptop gnome-session[1683]: (gnome-software:1867): Gs-WARNING **: failed to get updates: no results to show
May 16 19:19:33 amit-laptop gnome-session[1683]: (gnome-software:1867): Gs-WARNING **: Failed to create permission org.freedesktop.packagekit.trigger-offline-update: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Action org.freedesktop.packagekit.trigger-offline-update is not registered
May 16 19:19:46 amit-laptop /usr/lib/snapd/snapd[2785]: daemon.go:170: DEBUG: uid=1000;@ GET /v2/snaps?q=abo 2.527119908s 200
May 16 19:19:46 amit-laptop gnome-keyring-daemon[1393]: asked to register item /org/freedesktop/secrets/collection/login/1, but it's already registered
May 16 19:19:48 amit-laptop org.gnome.ControlCenter.SearchProvider[1501]: ** (gnome-control-center:14095): WARNING **: Ignoring launcher gufw (missing desktop file)
May 16 19:19:48 amit-laptop org.gnome.ControlCenter.SearchProvider[1501]: ** (gnome-control-center:14095): WARNING **: Ignoring launcher landscape-client-settings (missing desktop file)
May 16 19:19:48 amit-laptop org.gnome.ControlCenter.SearchProvider[1501]: ** (gnome-control-center:14095): WARNING **: Ignoring launcher language-selector (missing desktop file)
May 16 19:19:48 amit-laptop org.gnome.ControlCenter.SearchProvider[1501]: ** (gnome-control-center:14095): WARNING **: Ignoring launcher ubuntuone-installer (missing desktop file)
May 16 19:19:48 amit-laptop dbus[664]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service'
May 16 19:19:48 amit-laptop systemd[1]: Starting Hostname Service...
May 16 19:19:48 amit-laptop org.gnome.Contacts.SearchProvider[1501]: (gnome-contacts-search-provider:14025): Gtk-CRITICAL **: gtk_list_store_insert_before: assertion 'iter_is_valid (sibling, list_store)' failed
May 16 19:19:48 amit-laptop org.gnome.Contacts.SearchProvider[1501]: (gnome-contacts-search-provider:14025): Gtk-CRITICAL **: gtk_list_store_set_valist: assertion 'iter_is_valid (iter, list_store)' failed
May 16 19:19:48 amit-laptop org.gnome.Contacts.SearchProvider[1501]: (gnome-contacts-search-provider:14025): Gtk-CRITICAL **: gtk_list_store_insert_before: assertion 'iter_is_valid (sibling, list_store)' failed
May 16 19:19:48 amit-laptop org.gnome.Contacts.SearchProvider[1501]: (gnome-contacts-search-provider:14025): Gtk-CRITICAL **: gtk_list_store_set_valist: assertion 'iter_is_valid (iter, list_store)' failed
May 16 19:19:48 amit-laptop dbus[664]: [system] Successfully activated service 'org.freedesktop.hostname1'
May 16 19:19:48 amit-laptop systemd[1]: Started Hostname Service.
May 16 19:19:48 amit-laptop org.gnome.Contacts.SearchProvider[1501]: (gnome-contacts-search-provider:14025): Gtk-CRITICAL **: gtk_list_store_insert_before: assertion 'iter_is_valid (sibling, list_store)' failed
May 16 19:19:48 amit-laptop org.gnome.Contacts.SearchProvider[1501]: (gnome-contacts-search-provider:14025): Gtk-CRITICAL **: gtk_list_store_set_valist: assertion 'iter_is_valid (iter, list_store)' failed
May 16 19:19:48 amit-laptop org.gnome.Contacts.SearchProvider[1501]: (gnome-contacts-search-provider:14025): Gtk-CRITICAL **: gtk_list_store_insert_before: assertion 'iter_is_valid (sibling, list_store)' failed
May 16 19:19:48 amit-laptop org.gnome.Contacts.SearchProvider[1501]: (gnome-contacts-search-provider:14025): Gtk-CRITICAL **: gtk_list_store_set_valist: assertion 'iter_is_valid (iter, list_store)' failed
May 16 19:19:51 amit-laptop org.gnome.evolution.dataserver.Calendar7[1501]: (evolution-calendar-factory-subprocess:1927): libebackend-WARNING **: backend_source_authenticate_thread: Failed to invoke credentials required: Operation was cancelled
May 16 19:20:05 amit-laptop systemd[1]: Reloading.
May 16 19:20:07 amit-laptop systemd[1]: apt-daily.timer: Adding 6h 53min 5.149845s random time.
May 16 19:20:07 amit-laptop systemd[1]: Started ACPI event daemon.
May 16 19:20:07 amit-laptop systemd[1]: Started CUPS Scheduler.
May 16 19:20:12 amit-laptop groupadd[19016]: group added to /etc/group: name=bumblebee, GID=999
May 16 19:20:12 amit-laptop groupadd[19016]: group added to /etc/gshadow: name=bumblebee
May 16 19:20:12 amit-laptop groupadd[19016]: new group: name=bumblebee, GID=999
May 16 19:20:12 amit-laptop gpasswd[19029]: user amit added by root to group bumblebee
May 16 19:20:12 amit-laptop gpasswd[19036]: user syslog added by root to group bumblebee
May 16 19:20:13 amit-laptop systemd[1]: Reloading.
May 16 19:20:13 amit-laptop systemd[1]: apt-daily.timer: Adding 3h 21min 12.239791s random time.
May 16 19:20:13 amit-laptop systemd[1]: Started ACPI event daemon.
May 16 19:20:13 amit-laptop systemd[1]: Started CUPS Scheduler.
May 16 19:20:13 amit-laptop systemd[1]: Reloading.
May 16 19:20:13 amit-laptop systemd[1]: apt-daily.timer: Adding 11h 29min 44.342272s random time.
May 16 19:20:13 amit-laptop systemd[1]: Started ACPI event daemon.
May 16 19:20:13 amit-laptop systemd[1]: Started CUPS Scheduler.
May 16 19:20:13 amit-laptop systemd[1]: Reloading.
May 16 19:20:13 amit-laptop systemd[1]: apt-daily.timer: Adding 6h 17min 51.167636s random time.
May 16 19:20:13 amit-laptop systemd[1]: Started ACPI event daemon.
May 16 19:20:13 amit-laptop systemd[1]: Started CUPS Scheduler.
May 16 19:20:13 amit-laptop systemd[1]: Started Bumblebee C Daemon.
May 16 19:20:13 amit-laptop kernel: bbswitch: module verification failed: signature and/or required key missing - tainting kernel
May 16 19:20:13 amit-laptop kernel: bbswitch: version 0.8
May 16 19:20:13 amit-laptop kernel: bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
May 16 19:20:13 amit-laptop kernel: bbswitch: Found discrete VGA device 0000:01:00.0: \_SB_.PCI0.PEG0.PEGP
May 16 19:20:13 amit-laptop kernel: ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150930/nsarguments-95)
May 16 19:20:13 amit-laptop kernel: bbswitch: detected an Optimus _DSM function
May 16 19:20:13 amit-laptop kernel: pci 0000:01:00.0: enabling device (0006 -> 0007)
May 16 19:20:13 amit-laptop kernel: bbswitch: Succesfully loaded. Discrete card 0000:01:00.0 is on
May 16 19:20:13 amit-laptop kernel: bbswitch: disabling discrete graphics
May 16 19:20:13 amit-laptop kernel: ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150930/nsarguments-95)
May 16 19:20:14 amit-laptop bumblebeed[19150]: [46423.900283] [INFO]/usr/sbin/bumblebeed 3.2.1 started
May 16 19:20:26 amit-laptop sudo[19640]:     amit : TTY=pts/7 ; PWD=/home/amit ; USER=root ; COMMAND=/usr/bin/apt install xserver-xorg-legacy
May 16 19:20:26 amit-laptop sudo[19640]: pam_unix(sudo:session): session opened for user root by (uid=0)
May 16 19:20:26 amit-laptop sudo[19640]: pam_unix(sudo:session): session closed for user root
May 16 19:20:36 amit-laptop org.gnome.evolution.dataserver.Calendar7[1501]: (evolution-calendar-factory-subprocess:1927): libebackend-WARNING **: backend_source_authenticate_thread: Failed to invoke credentials required: Operation was cancelled
May 16 19:21:30 amit-laptop systemd[1]: Reloading.
May 16 19:21:30 amit-laptop systemd[1]: apt-daily.timer: Adding 8h 23min 24.586503s random time.
May 16 19:21:30 amit-laptop systemd[1]: Started ACPI event daemon.
May 16 19:21:30 amit-laptop systemd[1]: Started CUPS Scheduler.
May 16 19:21:30 amit-laptop bumblebeed[19150]: [46500.416377] [WARN]Received Terminated signal.
May 16 19:21:30 amit-laptop systemd[1]: Stopping Bumblebee C Daemon...
May 16 19:21:30 amit-laptop kernel: bbswitch: enabling discrete graphics
May 16 19:21:30 amit-laptop systemd[1]: Stopped Bumblebee C Daemon.
May 16 19:21:30 amit-laptop systemd[1]: Started Bumblebee C Daemon.
May 16 19:21:30 amit-laptop bumblebeed[27608]: [46500.514559] [INFO]/usr/sbin/bumblebeed 3.2.1 started
May 16 19:21:30 amit-laptop kernel: bbswitch: disabling discrete graphics
May 16 19:21:30 amit-laptop kernel: ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150930/nsarguments-95)
May 16 19:21:30 amit-laptop systemd[1]: Reloading.
May 16 19:21:31 amit-laptop systemd[1]: apt-daily.timer: Adding 5h 38min 43.142484s random time.
May 16 19:21:31 amit-laptop systemd[1]: Started ACPI event daemon.
May 16 19:21:31 amit-laptop systemd[1]: Started CUPS Scheduler.
bluca commented 8 years ago

Sorry, looong day! I've uploaded the new packages to the testing repository, including 16.04 versions. Could you please add it and install bumblebee from it, when you have time?

ppa:bumblebee/testing https://launchpad.net/~bumblebee/+archive/ubuntu/testing

LordAmit commented 8 years ago

Thank you, going for it now!

bluca commented 8 years ago

Awesome! Note that the repo is still building and publishing, so it might be a few minutes until the packages appear :-) You can see the status here: https://launchpad.net/~bumblebee/+archive/ubuntu/testing/+packages

After you have installed, try a simple:

optirun -v -v glxgears

If there's any error, please report back what the terminal prints.

I will be offline for ~60 minutes while the build completes.

LordAmit commented 8 years ago

So it seems. The packages appeared in the ppa website - but are not being referred even after I went through add-apt-repository, update and then

sudo apt list --upgradable 
Listing... Done
linux-headers-4.4.0-22/xenial-updates,xenial-updates,xenial-security,xenial-security 4.4.0-22.40 all [upgradable from: 4.4.0-22.39]
linux-headers-4.4.0-22-generic/xenial-updates,xenial-security 4.4.0-22.40 amd64 [upgradable from: 4.4.0-22.39]
linux-image-4.4.0-22-generic/xenial-updates,xenial-security 4.4.0-22.40 amd64 [upgradable from: 4.4.0-22.39]
linux-image-extra-4.4.0-22-generic/xenial-updates,xenial-security 4.4.0-22.40 amd64 [upgradable from: 4.4.0-22.39]
linux-libc-dev/xenial-updates,xenial-security 4.4.0-22.40 amd64 [upgradable from: 4.4.0-22.39]
linux-source-4.4.0/xenial-updates,xenial-updates,xenial-security,xenial-security 4.4.0-22.40 all [upgradable from: 4.4.0-22.39]
numix-gtk-theme/xenial,xenial 2.4ubuntu1+483~201605161647~ubuntu16.04.1 all [upgradable from: 2.4ubuntu1+477~201605151647~ubuntu16.04.1]
primus/xenial 20150328-1~xenialppa1 amd64 [upgradable from: 0~20150328-1]
primus-libs/xenial 20150328-1~xenialppa1 amd64 [upgradable from: 0~20150328-1]
primus-libs-ia32/xenial 20150328-1~xenialppa1 i386 [upgradable from: 0~20150328-1]

edit: I am talking about the bumblebee packages. Primus seems to be referred from ppa.

LordAmit commented 8 years ago

Okay, got it and installing!

what do I do after installation?

bluca commented 8 years ago

Try:

optirun -v -v glxgears

A window with spinning gears should pop up - else please report what the terminal prints

LordAmit commented 8 years ago
optirun -v -v glxgears
[71417.277534] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[71417.277735] [ERROR]You've no permission to communicate with the Bumblebee daemon. Try adding yourself to the 'bumblebee' group
[71417.277741] [DEBUG]Socket closed.
[71417.277755] [ERROR]Could not connect to bumblebee daemon - is it running?

I did not reboot from when I started btw.

edit:

sudo service bumblebeed status
[sudo] password for amit: 
● bumblebeed.service - Bumblebee C Daemon
   Loaded: loaded (/lib/systemd/system/bumblebeed.service; enabled; vendor prese
   Active: active (running) since Tue 2016-05-17 01:18:33 BDT; 1h 3min ago
 Main PID: 1363 (bumblebeed)
    Tasks: 1 (limit: 512)
   CGroup: /system.slice/bumblebeed.service
           └─1363 /usr/sbin/bumblebeed

May 17 01:18:33 amit-laptop systemd[1]: Started Bumblebee C Daemon.
May 17 01:18:33 amit-laptop bumblebeed[1363]: [67923.652182] [INFO]/usr/sbin/bum
lines 1-10/10 (END)

Just in case you were wondering. I don't think I saw bumblebee daemon running after following the same steps, except installing the latest packages from bumblebee/testing. :smile:

bluca commented 8 years ago

sudo adduser $USER bumblebee

Then log out, and log back in, and try again

LordAmit commented 8 years ago
sudo adduser $USER bumblebee
The user `amit' is already a member of `bumblebee'.

Logging out. I hope it won't flickr!

LordAmit commented 8 years ago

After logging in. It didn't flickr.. yet.

optirun -v -v  glxgears
[72620.884255] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[72620.884878] [DEBUG]optirun version 3.2.1 starting...
[72620.884905] [DEBUG]Active configuration:
[72620.884913] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[72620.884923] [DEBUG] X display: :8
[72620.884932] [DEBUG] LD_LIBRARY_PATH: 
[72620.884942] [DEBUG] Socket path: /var/run/bumblebee.socket
[72620.884951] [DEBUG] Accel/display bridge: auto
[72620.884959] [DEBUG] VGL Compression: proxy
[72620.884968] [DEBUG] VGLrun extra options: 
[72620.884977] [DEBUG] Primus LD Path: /usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus
[72620.885189] [DEBUG]Using auto-detected bridge primus
[72620.967276] [INFO]Response: No - error: Could not load GPU driver

[72620.967305] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver

[72620.967313] [DEBUG]Socket closed.
[72620.967341] [ERROR]Aborting because fallback start is disabled.
[72620.967348] [DEBUG]Killing all remaining processes.
bluca commented 8 years ago

Ok, so first of all LD_LIBRARY_PATH is emtpy, that is strange. Also, what is the output of:

sudo journalctl -b -u bumblebeed

and

sudo journalctl -b -k

Looking for anything nvidia related in the second one

bluca commented 8 years ago

Also, what is the content of

/etc/bumblebee/bumblebee.conf

bluca commented 8 years ago

and: ls /lib/modules/uname -r/updates/dkms

LordAmit commented 8 years ago
sudo journalctl -b -u bumblebeed 
-- Logs begin at Sun 2016-05-15 17:07:47 BDT, end at Tue 2016-05-17 02:43:08 BDT. --
May 16 19:20:13 amit-laptop systemd[1]: Started Bumblebee C Daemon.
May 16 19:20:14 amit-laptop bumblebeed[19150]: [46423.900283] [INFO]/usr/sbin/bumblebeed 3.2.1 started
May 16 19:21:30 amit-laptop bumblebeed[19150]: [46500.416377] [WARN]Received Terminated signal.
May 16 19:21:30 amit-laptop systemd[1]: Stopping Bumblebee C Daemon...
May 16 19:21:30 amit-laptop systemd[1]: Stopped Bumblebee C Daemon.
May 16 19:21:30 amit-laptop systemd[1]: Started Bumblebee C Daemon.
May 16 19:21:30 amit-laptop bumblebeed[27608]: [46500.514559] [INFO]/usr/sbin/bumblebeed 3.2.1 started
May 17 01:15:13 amit-laptop systemd[1]: Stopping Bumblebee C Daemon...
May 17 01:15:13 amit-laptop bumblebeed[27608]: [67723.683039] [WARN]Received Terminated signal.
May 17 01:15:13 amit-laptop systemd[1]: Stopped Bumblebee C Daemon.
May 17 01:17:16 amit-laptop systemd[1]: Started Bumblebee C Daemon.
May 17 01:17:16 amit-laptop bumblebeed[8595]: [67846.289825] [INFO]/usr/sbin/bumblebeed 3.2.1 started
May 17 01:18:33 amit-laptop systemd[1]: Stopping Bumblebee C Daemon...
May 17 01:18:33 amit-laptop bumblebeed[8595]: [67923.469074] [WARN]Received Terminated signal.
May 17 01:18:33 amit-laptop systemd[1]: Stopped Bumblebee C Daemon.
May 17 01:18:33 amit-laptop systemd[1]: Started Bumblebee C Daemon.
May 17 01:18:33 amit-laptop bumblebeed[1363]: [67923.652182] [INFO]/usr/sbin/bumblebeed 3.2.1 started
May 17 02:36:51 amit-laptop bumblebeed[1363]: modprobe: ERROR: ../libkmod/libkmod-module.c:832 kmod_module_insert_module() could not find module by name='off'
May 17 02:36:51 amit-laptop bumblebeed[1363]: modprobe: ERROR: could not insert 'off': Unknown symbol in module, or unknown parameter (see dmesg)
May 17 02:36:51 amit-laptop bumblebeed[1363]: modprobe: ERROR: ../libkmod/libkmod-module.c:832 kmod_module_insert_module() could not find module by name='off'
May 17 02:36:51 amit-laptop bumblebeed[1363]: modprobe: ERROR: could not insert 'off': Unknown symbol in module, or unknown parameter (see dmesg)
May 17 02:36:51 amit-laptop bumblebeed[1363]: [72620.967219] [ERROR]Module nouveau could not be loaded (timeout?)
May 17 02:36:51 amit-laptop bumblebeed[1363]: [72620.967243] [ERROR]Could not load GPU driver
May 17 02:38:38 amit-laptop bumblebeed[1363]: modprobe: ERROR: ../libkmod/libkmod-module.c:832 kmod_module_insert_module() could not find module by name='off'
May 17 02:38:38 amit-laptop bumblebeed[1363]: modprobe: ERROR: could not insert 'off': Unknown symbol in module, or unknown parameter (see dmesg)
May 17 02:38:38 amit-laptop bumblebeed[1363]: modprobe: ERROR: ../libkmod/libkmod-module.c:832 kmod_module_insert_module() could not find module by name='off'
May 17 02:38:38 amit-laptop bumblebeed[1363]: modprobe: ERROR: could not insert 'off': Unknown symbol in module, or unknown parameter (see dmesg)
May 17 02:38:38 amit-laptop bumblebeed[1363]: [72728.327897] [ERROR]Module nouveau could not be loaded (timeout?)
May 17 02:38:38 amit-laptop bumblebeed[1363]: [72728.327914] [ERROR]Could not load GPU driver
bluca commented 8 years ago

Nouveau? Have you rebooted since installing the nvidia drivers? If not, you should, to blacklist nouveau

LordAmit commented 8 years ago
 sudo journalctl -b -k 

output is too long for comment, hence this gist: https://gist.github.com/lordamit/48b1fc702180e8d1596a8af25d2509a1

LordAmit commented 8 years ago

oh. I did mention that I didn't reboot - since I was waiting for you to tell me.

Just in case the screen starts flickering - what should I do?

I am kinda sorta afraid of it >.>

bluca commented 8 years ago

ok, let's check first that libGL is in the right place. What's the outpout of:

ls -l /usr/lib/x86_64-linux-gnu/libGL.so

LordAmit commented 8 years ago
ls -l /usr/lib/x86_64-linux-gnu/libGL.so
lrwxrwxrwx 1 root root 13 Apr 15 01:07 /usr/lib/x86_64-linux-gnu/libGL.so -> mesa/libGL.so
bluca commented 8 years ago

That's good, what about:

ls -l /etc/alternatives/i386-linux-gnu_gl_conf

LordAmit commented 8 years ago
ls -l /etc/alternatives/i386-linux-gnu_gl_conf
lrwxrwxrwx 1 root root 39 May 16 19:21 /etc/alternatives/i386-linux-gnu_gl_conf -> /usr/lib/i386-linux-gnu/mesa/ld.so.conf
bluca commented 8 years ago

Ok, update-alternatives is all right it seems. Try to reboot, fingers crossed :-)

LordAmit commented 8 years ago

Hey it rebooted! I went ahead and tried this:

optirun -v -v glxgears
[  157.403652] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[  157.404023] [DEBUG]optirun version 3.2.1 starting...
[  157.404048] [DEBUG]Active configuration:
[  157.404055] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[  157.404062] [DEBUG] X display: :8
[  157.404069] [DEBUG] LD_LIBRARY_PATH: 
[  157.404076] [DEBUG] Socket path: /var/run/bumblebee.socket
[  157.404088] [DEBUG] Accel/display bridge: auto
[  157.404098] [DEBUG] VGL Compression: proxy
[  157.404107] [DEBUG] VGLrun extra options: 
[  157.404116] [DEBUG] Primus LD Path: /usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus
[  157.404191] [DEBUG]Using auto-detected bridge primus
[  157.406405] [INFO]Response: No - error: Could not load GPU driver

[  157.406428] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver

[  157.406435] [DEBUG]Socket closed.
[  157.406457] [ERROR]Aborting because fallback start is disabled.
[  157.406463] [DEBUG]Killing all remaining processes.
bluca commented 8 years ago

Ok, could you please upload again sudo journalctl -b -k and sudo journalctl -b -u bumblebeed