I do se that some symlinks in /boot are still pointing to the old deleted 3.16.7 kernel. Not sure if this is a problem for Bumblebee:
initrd -> initrd-3.16.7-7-desktop
vmlinuz -> vmlinuz-3.16.7-7-desktop
Edit: Reinstalling the kernel fixed the symlinks. Will try optirun again after a restart.
I did some digging and found out a little more of this error:
machine:/ # service bumblebeed status
bumblebeed.service - Bumblebee C Daemon
Loaded: loaded (/usr/lib/systemd/system/bumblebeed.service; enabled)
Active: active (running) since Wed 2015-02-04 09:25:49 CET; 1h 34min ago
Main PID: 856 (bumblebeed)
CGroup: /system.slice/bumblebeed.service
`-856 /usr/sbin/bumblebeed
Feb 04 09:25:49 machine bumblebeed[856]: 7.501619] [INFO]/usr/sbin/bumblebeed 3.2.1 started
Feb 04 09:26:33 machine bumblebeed[856]: 51.020949] [ERROR][XORG] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
Feb 04 09:26:33 machine bumblebeed[856]: 51.020990] [ERROR][XORG] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
Feb 04 09:26:38 machine bumblebeed[856]: 56.751474] [ERROR][XORG] (EE) Server terminated successfully (0). Closing log file.
I have chosen first to try running only with the integrated Intel graphics and have blacklisted nouveau. So I didn’t install bumblebee-nvidia, just regular bumblebee.
machine:/ # primusrun glxinfo | grep OpenGL
primus: fatal: failed to load any of the libraries: /usr/$LIB/nvidia/libGL.so.1
/usr/$LIB/nvidia/libGL.so.1: cannot open shared object file: No such file or directory
That was something else:
714.691413 frames/sec - 797.595617 Mpixels/sec
How can I control the switch between Intel and Nvidia manually? For instance if I want to disable Nvidia when I’m using only battery power.
Or will it only use nvidia when i use primusrun?
What graphic card is X using? I reckon that X cannot switch between them without restarting X.
I look into /var/log/Xorg.0.conf I would guess that X is running with the Intel graphic card.
Bumblebee, or more correct bbswitch, will keep the Nvidia card powered off unless you’re running a program with primusrun or optirun. You can check the status of bbswitch with the following command:
cat /proc/acpi/bbswitch
I hope I got that right, I’m not on an optimus system right now.
Your desktop will always run on the Intel chip, primusrun launches a second instance of xorg for the Nvidia card and the output of that instance is piped over to the primary xorg instance.
The log for the Nvidia instance of xorg is in /var/log/Xorg.8.log.