EDIT
As of today, this was fixed by the latest nvidia-current update 
Until last week i had a working bumblee/nvidia set up.
Now, when i do
optirun -vv firefox
I’m greeted by:
[ 6174.504548] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[ 6174.632794] [DEBUG]optirun version 3.0.1 starting...
[ 6174.632850] [DEBUG]Active configuration:
[ 6174.632861] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[ 6174.632872] [DEBUG] X display: :8
[ 6174.632883] [DEBUG] LD_LIBRARY_PATH:
[ 6174.632893] [DEBUG] Socket path: /var/run/bumblebee.socket
[ 6174.632902] [DEBUG] VGL Compression: proxy
[ 6174.737261] [INFO]Response: No - error: Could not load GPU driver
[ 6174.737309] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver
[ 6174.737329] [DEBUG]Socket closed.
[ 6174.737365] [ERROR]Aborting because fallback start is disabled.
[ 6174.737379] [DEBUG]Killing all remaining processes.
dpkg -l | grep nvidia
ii bumblebee-nvidia 3.0.1-1~preciseppa1 nVidia Optimus support using the proprietary NVIDIA driver
ii nvidia-common 1:0.2.44 Find obsolete NVIDIA drivers
ii nvidia-current 304.37-0ubuntu1~precise~xup1 NVIDIA binary Xorg driver, kernel module and VDPAU library
ii nvidia-current-updates 295.49-0ubuntu0.2 NVIDIA binary Xorg driver, kernel module and VDPAU library
ii nvidia-settings 302.17-0ubuntu1~precise~xup3 Tool of configuring the NVIDIA graphics driver
ii nvidia-settings-updates 295.33-0ubuntu1 Tool of configuring the NVIDIA graphics driver
I’ve seen some comments to the effect of deleting
10-nvidia-current-thinkpad-t420s.conf
but doing
ls /usr/share/X11/xorg.conf.d/
yields:
10-evdev.conf 11-evdev-trackpoint.conf 50-vmmouse.conf 51-synaptics-quirks.conf
11-evdev-quirks.conf 50-synaptics.conf 50-wacom.conf
Is there a way to fix this?
asked Aug 20, 2012 at 9:35
This is copied from github user ArchangeGabriel:
For your current issue, the fact is that the nvidia kernel module and driver have changed their name on Ubuntu in this new 304.22 version. So you have to edit (with sudo rights) /etc/bumblebee/bumblebee.conf and do the two followings things :
- Replace
Driver=byDriver=nvidia - Replace
KernelDriver=nvidia-currentbyKernelDriver=nvidia
Then reboot, and you should be fine for optirun.
//end quote.
So the answer suggested of editing KernelDriver is correct, but needs 1 extra step due to the name change. In likelihood you probably have nouveau kicking around somewhere on your system which is overriding the nvidia driver when bumblebee goes to autodetect (if Driver= is left blank it tries to autodetect with nouveau winning out where you actually want nvidia).
I had the same problem as you, tried this more-complete answer and now bumblebee / optirun work just fine. Hope it works for you, too.
Kalle Richter
5,78619 gold badges67 silver badges100 bronze badges
answered Aug 21, 2012 at 4:59
1
same problem. Renaming the drivers name solved the problem but
- I can’t access external monitors (I could just before last update). I don’t see them from the «displays» system setting
-
Running optirun -vv nvidia-settings rise the error that I’m not currently using nvidia X drivers and that I shoud run nvidia-xconfig. the -vv doesn’t show any error, full log is reported below
optirun -vv nvidia-settings [ 674.856470] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf [ 674.856716] [INFO]Configured driver: nvidia [ 675.044903] [DEBUG]optirun version 3.0.1 starting... [ 675.044922] [DEBUG]Active configuration: [ 675.044925] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf [ 675.044928] [DEBUG] X display: :8 [ 675.044930] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia-current:/usr/lib32/nvidia-current [ 675.044933] [DEBUG] Socket path: /var/run/bumblebee.socket [ 675.044936] [DEBUG] VGL Compression: proxy [ 677.053609] [INFO]Response: Yes. X is active. [ 677.053623] [INFO]Running application through vglrun. [ 677.053851] [DEBUG]Process vglrun started, PID 4605.
* UPDATE *
Solved installing nvidia-current-updates
roslav
2682 silver badges16 bronze badges
answered Aug 21, 2012 at 8:11
2
@Bobjohnson thank you!
It worked for me (nvidia gforce 610m and Linux mint 13)
i just did
sudo nano /etc/bumblebee/bumblebee.conf- Replace the line
Driver=byDriver=nvidia - Replace the line
KernelDriver=nvidia-currentbyKernelDriver=nvidia - Then save, reboot and check with
optirun glxgears
Kalle Richter
5,78619 gold badges67 silver badges100 bronze badges
answered Aug 23, 2012 at 11:31
2
I had this problem too. It seems that nvidia module was renamed from nvidia-current to nvidia after recent updates. You need to edit file /etc/bumblebee/bumblebee.conf and change line:
KernelDriver=nvidia-current
to
KernelDriver=nvidia
Then restart computer or bumblebee, and optirun should work again.
I hope it helps. I have made few other changes, before it start working, so query if it didn’t work…
Kalle Richter
5,78619 gold badges67 silver badges100 bronze badges
answered Aug 20, 2012 at 12:06
3
I’ve been able to make my dGPU work twice in this way:
-
added pcie_port_pm=force to the kernel parameters;
-
Debian backported the patch to support nvidia drivers without bbswitch to its bumblebee: changed PMmethod to none and set AlwaysUnloadKernelDriver to true;
-
disabled the pm-utils scripts messing with PCI power management;
-
restarted the laptop.
The changes 1. and 3. probably didn’t change a lot: all /sys/bus/pci/devices/*/power/control were ‘on’ all the same, but as soon as I launched
$ optirun glxinfo
In dmesg I could see the nvidia-modeset module being loaded after nvidia.ko (it doesn’t happen when it doesn’t work) and the usual 2 Xids appearing, then I got the output of glxinfo; an IR-PCI-MSI 40 appeared in /proc/interrupts, which also doesn’t happen when it fails.
The second time I tried it failed, but it worked again after I manually loaded nvidia and nvidia-modeset.
It seems that my dGPU is still alive. What to do now to get it working in a more predictable way?
Из FAQ Bumblebee:
Bumblebee — решение, позволяющее задействовать NVIDIA Optimus в ноутбуках с GNU/Linux, что включает в себя два графических адаптера с двумя разными профилями энергопотребления, использующих общий фреймбуфер.
Примечание: Рассмотрите nvidia-xrun (Русский) или PRIME в качестве альтернативы, так как у Bumblebee присутствуют значительные проблемы с производительностью[1][2] и не планируется поддержка Vulkan[3].
This article or section needs expansion.
Bumblebee: Optimus для Linux
Optimus реализует технологию гибридной графики без аппаратного коммутатора. Интегрированная видеокарта выводит на экран,в то время,как дискретная видеокарта занимается рендерингом, который требует более высокой вычислительной мощности графического процессора. Технология NVIDIA Optimus дает большую производительность, сберегая при этом заряд батареи, подключая дискретный графический процессор, когда это требуется.
Bumblebee — программное решение, базирующееся на VirtualGL и драйверах ядра, позволяющее использовать дискретный GPU, не имеющий физического подключения к экрану.
Bumblebee реализует технологию Optimus в два шага:
- Дискретная видеокарта производит рендеринг на виртуальном дисплее, в то время как выводом на экран занимается интегрированная видеокарта.
- Дискретная видеокарта отключается от питания, когда ее вычислительная способность не требуется.
Установка
Перед установкой Bumblebee убедитесь, что поддержка NVIDIA Optimus включена в настройках BIOS, а дисплей подключён к интегрированной видеокарте.
Установите:
- bumblebee — Основной пакет, содержащий демон и клиентское ПО.
- mesa — Свободную реализацию спецификации OpenGL.
- Соответствующую версию драйвера NVIDIA, см. NVIDIA#Installation.
- Опционально установите xf86-video-intel — драйвер Xorg (Русский) для Intel.
Также включите репозиторий multilib для поддержки 32-битных приложений и установите:
- lib32-virtualgl — виртуальный дисплей для рендеринга в 32-битных приложениях.
- lib32-nvidia-utils или lib32-nvidia-340xx-utilsAUR (должен соответствовать версии обычного драйвера NVIDIA).
Чтобы использовать Bumblebee, необходимо добавить обычного пользователя в группу bumblebee:
# gpasswd -a user bumblebee
Также включите службу bumblebeed.service, перезагрузите систему и см. раздел #Использование.
Использование
Тестирование
Примечание: Для использования glxgears и glxspheres32, glxspheres64 требуется установить пакет mesa-demos
Протестируйте bumblebee:
$ optirun glxgears -info
Если это не сработало
- 64-битная система:
$ optirun glxspheres64
- 32-битная система:
$ optirun glxspheres32
Примечание: Если glxgears не запустилось,а glxspheresXX работает, используйте glxspheresXX во всех случаях
Запуск программ
$ optirun [options] application [application-options]
Для примера, запуск firefox с параметром ‘www.yandex.ru’:
$ optirun firefox www.yandex.ru
Для просмотра документации и всех опций optirun используйте следующую команду:
$ man optirun
Настройка
Вы можете настраивать bumblebee под свои нужды, редактируя /etc/bumblebee/bumblebee.conf
Оптимизация скорости
Использование VirtualGL в качестве ‘моста’
Bumblebee отрисовывает, используя дискретную видеокарту NVIDIA на виртуальном дисплее с помощью VirtualGL,а затем отрисовка происходит на ‘реальном’ дисплее, когда интегрированная видеокарта передает изображение на X Server. Для увеличения скорости передачи 'Виртуальный дисплей'->'X Server' можно использовать различные методы сжатия,вызывая optirun с опцией -c
$ optirun -c compress-method application [application-options]
Методы со сжатием:
jpegrgbyuv
Методы без сжатия
proxyxv
Таблица производительности с ASUS N550JV приложение для тестирования: unigine-heavenAUR:
| Command | FPS | Score | Min FPS | Max FPS |
|---|---|---|---|---|
| optirun unigine-heaven | 25.0 | 630 | 16.4 | 36.1 |
| optirun -c jpeg unigine-heaven | 24.2 | 610 | 9.5 | 36.8 |
| optirun -c rgb unigine-heaven | 25.1 | 632 | 16.6 | 35.5 |
| optirun -c yuv unigine-heaven | 24.9 | 626 | 16.5 | 35.8 |
| optirun -c proxy unigine-heaven | 25.0 | 629 | 16.0 | 36.1 |
| optirun -c xv unigine-heaven | 22.9 | 577 | 15.4 | 32.2 |
Для использования метода сжатия по-умолчанию выставьте переменную VGLTransport c параметром compress-method в /etc/bumblebee/bumblebee.conf:
/etc/bumblebee/bumblebee.conf
[...] [optirun] VGLTransport=proxy [...]
Использование Primus
Primus позволяет увеличить производительность и энергосбережение за счет неиспользования VirtualGL.
Преимущества Primus перед стандартным Optirun:
- уменьшенное использование дополнительных ресурсов (увеличена частота кадров) и оптимизированное решение (без сетевых процессов или процессов сжатия)
- отсутствие бага с преждевременным выключением GPU
- более стабильный,нежели
Optirun, а также более прост в отладке - дискретная видеокарта используется только для обработки OpenGL,вся остальная информация обрабатывается и хранится в интегрированном графическом процессоре
Примечание: Для использования primus понадобится пакет primus.
- Для запуска 32-битных приложений на 64-битной машине понадобится пакет lib32-primus (Должен быть подключен Multilib (Русский))
Пример запуска glxspheres32:
$ primusrun glxspheres32
Для запуска приложения с ипользованием VirtualGL используйте:
$ optirun -b primus glxspheres32
Энергосбережение
Для регулировки потребления энергии на десктопном ПК используется пакет bbswitch
Примечание: Bumblebee не умеет регулировать потребление энергии на ПК самостоятельно.
Для настройки включения и отключения видеокарты редактируйте опции load_state и unload_state. Подробнее смотрите BBSwitch-документация.
/etc/modprobe.d/bbswitch.conf
options bbswitch load_state=0 unload_state=1
Некорректная инициализация запуска видеокарты NVIDIA
Если ваша видеокарта NVidia некорректно запускается после последнего выключения, то следует выставить опцию TurnCardOffAtExit=false в /etc/bumblebee/bumblebee.conf — видеокарта будет выключаться каждый раз после отключения демона bumblebee.
Для того,чтобы видеокарта NVidia постоянно работала,следует включить соответствующий сервис:
# systemctl enable nvidia-enable.service
/etc/systemd/system/nvidia-enable.service
[Unit] Description=Enable NVIDIA card DefaultDependencies=no [Service] Type=oneshot ExecStart=/bin/sh -c 'echo ON > /proc/acpi/bbswitch' [Install] WantedBy=shutdown.target
Для более подробного разбора всех возможностей Bumblebee посетите английскую ветку wiki: bumblebee
Решение проблем
[VGL] ERROR: Could not open display :8
Проблема заключается в VirtualGL, в этом случае можно использовать primus
$ optirun -b primus wine windows program.exe
Если использование драйвера NVIDIA решило проблему,то отредактируйте файл /etc/bumblebee/xorg.conf.nvidia и измените опцию ConnectedMonitor на CRT-0.
Xlib: extension «GLX» missing on display «:0.0»
Если вы установили видеодрайвер с сайта NVIDIA, то проделайте следующее:
1. Удалите драйвер:
# ./NVIDIA-Linux-*.run --uninstall
2. Удалите сгенерированный NVIDIA конфигурационный файл Xorg:
# rm /etc/X11/xorg.conf
3. Установите корректный видеодрайвер — см. раздел #Установка.
[ERROR]Cannot access secondary GPU: No devices detected
В некоторых случаях запуск optirun возвращает сообщение об ошибке вида:
[ERROR]Cannot access secondary GPU - error: [XORG] (EE) No devices detected. [ERROR]Aborting because fallback start is disabled.
В этом случае вам следует переместить файл /etc/X11/xorg.conf.d/20-intel.conf куда-нибудь в другое место,а затем перезапустите the bumblebeed демона и это должно сработать. Если же вам нужны настройки модулей Intel, то соедините файл /etc/X11/xorg.conf.d/20-intel.conf c /etc/X11/xorg.conf.
Закомментируйте строку Drive в /etc/X11/xorg.conf.d/10-monitor.conf.
Если вы используете драйвер nouveau попробуйте поменять его на nvidia драйвер.
Вам требуется обозначить видеокарту (в конфигурационных файлах /etc/X11/xorg.conf.d), используя корректный BusID получив его выводом команды lspci;
Section "Device"
Identifier "nvidiagpu1"
Driver "nvidia"
BusID "PCI:0:1:0"
EndSection
NVIDIA(0): Failed to assign any connected display devices to X screen 0
Если консоль возвращает сообщения об ошибке вида:
[ERROR]Cannot access secondary GPU - error: [XORG] (EE) NVIDIA(0): Failed to assign any connected display devices to X screen 0 [ERROR]Aborting because fallback start is disabled.
Вы должны поменять эту строку в /etc/bumblebee/xorg.conf.nvidia:
Option "ConnectedMonitor" "DFP"
На:
Option "ConnectedMonitor" "CRT"
Failed to initialize the NVIDIA GPU at PCI:1:0:0 (GPU fallen off the bus / RmInitAdapter failed!)
Добавьте rcutree.rcu_idle_gp_delay=1 в параметры ядра из конфигурации загрузчика (подробнее BBS post для примера).
Could not load GPU driver
Если консоль возвращает сообщения об ошибке вида:
[ERROR]Cannot access secondary GPU - error: Could not load GPU driver
И вы пробуете загрузить модуль nvidia, но получаете это:
modprobe nvidia modprobe: ERROR: could not insert 'nvidia': Exec format error
Это происходит потому,что видеодрайвер не может синхронизироваться с ядром, к примеру,если вы установили последний драйвер nvidia, но не можете обновить ядро. Полное обновление системы поможет исправить эту проблему. Если проблема не ушла,то попробуйте вручную скомпилировать пакеты nvidia для своего ядра.
Потребуются: nvidia-dkms или скомпилированный nvidia из ABS.
NOUVEAU(0): [drm] failed to set drm interface version
Примите во внимание то,что nouveau драйвер в стадии тестирования. Как написано тут: here, лучшим выходом будет — установка официального драйвера nvidia.
/dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
Это можно решить, добавив в /etc/bumblebee/xorg.conf.nvidia несколько строк. (Подробнее тут):
Section "Screen"
Identifier "Default Screen"
Device "DiscreteNvidia"
EndSection
ERROR: ld.so: object ‘libdlfaker.so’ from LD_PRELOAD cannot be preloaded: ignored
Вы пытаетесь запустить 32-битное приложение. Решит проблему запуск приложения через primus
Fatal IO error 11 (Resource temporarily unavailable) on X server
Измените параметр KeepUnusedXServer в /etc/bumblebee/bumblebee.conf c false на true. Программа запустится в фоновом режиме и bumblebee не будет ‘видеть’ её.
- Печать
Страницы: [1] Вниз
Тема: Проблема с запуском optirun bumblebee на 15.04 (Прочитано 3382 раз)
0 Пользователей и 1 Гость просматривают эту тему.

c00lrad
Я обновил Ubuntu до последней версии.
Так вот, в прошлой версии запуск оптируна работал корректно.
А вот в новой, выводят вот такие ошибки —
allein@NoOneCares:~$ optirun steam steam://rungameid/570
[ 4389.816525] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver
[ 4389.816575] [ERROR]Aborting because fallback start is disabled.
Это попытка запуска игры дота2. Работала корректно уже год.
И, конечно же, через любую другую программу с оптируном или примусом, например, glxgears возвращает те же ошибки.
Так вот, прошу разгадать эту задачку.
P.S. Добавить в строку «Driver=» nvidia и «KernelDriver» nvidia-current или nvidia-331? Это бесполезно!
Конечно же, перезагрузить не забываю.
symon2014

c00lrad
Ну, это и было моей первой статьей и по ней пытался решить проблему, до создания этой темы.
Все бесполезно. После махинаций я получаю только это, но уже с другой ошибкой.
allein@NoOneCares:~$ optirun glxgearsЧтобы вернуться к первой ошибки, я удаляю бумблееды и нвидиа, переустанавливаю вновь.
[ 629.560057] [ERROR]The Bumblebee daemon has not been started yet or the socket path /var/run/bumblebee.socket was incorrect.
[ 629.560126] [ERROR]Could not connect to bumblebee daemon - is it running?
allein@NoOneCares:~$ sudo start bumblebeed
start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
Так, как же запустить сервис бумблебее?
Если так писать
systemctl enable bumblebeedТо выводятся какие-то ошибки, такое ощущение что эти команды не подходят линуксу в новой версии.
systemctl start bumblebeed
« Последнее редактирование: 27 Апреля 2015, 20:19:04 от c00lrad »
GNU/Linux forever.
symon2014

c00lrad
Нет, только что пришел с него, спасибо за хорошую ссылку.
Но там решение проблемы такое — переустановить заново Ubuntu. Неужели нет более лаконичного решения проблемы?
symon2014
Есть — через год выйдет Ubuntu 16.04 LTS, а 15.04 для тренировки.

c00lrad
Довольно логично.
А как можно откатать?) Через груб не поможет, хотя там были аж 3 ядра на выбор, ибо та же самая ошибка. Понимаю, что это уже другая тема, но тем не менее, это может послужить решением созданной проблемы)
symon2014
Я обновил Ubuntu до последней версии.
Надо понимать что установил а не обновил. Боюсь что вернуться можно таким же способом.

c00lrad
Итак, я решил проблему благодаря symon2014。
Он мне скинул ссылку в личное сообщение https://forum.ubuntu.ru/index.php?topic=190100.0
Так вот, начиная с последней страницы(как-никак 15.04 новая версия) я прочитал снизу вверх и пришло озарение)
Решение — установить nvidia-prime (https://help.ubuntu.ru/wiki/nvidia-prime)
Никаких вводов с консоли, кроме предварительной настройки, если потребуется, не нужно!
Кликаешь на стим, на доту и играешь. Как на винде.
Да и на других программах тоже. Принцип работы с праймом и оптируном схож.
- Печать
Страницы: [1] Вверх
- Forum
- The Ubuntu Forum Community
- Ubuntu Official Flavours Support
- Multimedia Software
- [SOLVED] Nvidia Bumblebee optirun not working any more
-
Nvidia Bumblebee optirun not working any more
If bumblebee was working fine up to now and you get this error message when running optirun
Code:
[ERROR]Cannot access secondary GPU - error: Could not load GPU driver [ERROR]Aborting because fallback start is disabled.
then edit the bumblebee configuration file
Code:
sudo gedit /etc/bumblebee/bumblebee.conf
change
Driver=
to
Driver=nvidiaand
KernelDriver=nvidia-current
to
KernelDriver=nvidiaLast edited by Marric; August 20th, 2012 at 06:16 PM.
-
Re: Nvidia Bumblebee optirun not working any more
This didn’t work for me until after I rebooted… I know that might be an obvious step for most people but I didn’t think of it right away
-
Re: Nvidia Bumblebee optirun not working any more
you can restart the bumblebee daemon in order to assume the changes
Code:
sudo restart bumblebeed
Last edited by Marric; August 20th, 2012 at 11:20 PM.
-
Re: Nvidia Bumblebee optirun not working any more
Awesome — this worked great for me on Ubuntu 12.04. I’ve got an Asus laptop with optimus, which randomly stopped working after I upgraded the Nvidia drivers. This helped me get up & running again. Thanks!
-
Re: Nvidia Bumblebee optirun not working any more
Originally Posted by Marric
you can restart the bumblebee daemon in order to assume the changes
Code:
sudo restart bumblebeed
I have tried this but I’ve got the following error:
restart: Unknown instance:
Any clue?
-
Re: Nvidia Bumblebee optirun not working any more
Thank you! This drived me crazy.
Works in Ubuntu 12.10.
-
Re: Nvidia Bumblebee optirun not working any more
Originally Posted by Marric
If bumblebee was working fine up to now and you get this error message when running optirun
Code:
[ERROR]Cannot access secondary GPU - error: Could not load GPU driver [ERROR]Aborting because fallback start is disabled.
then edit the bumblebee configuration file
Code:
sudo gedit /etc/bumblebee/bumblebee.conf
change
Driver=
to
Driver=nvidiaand
KernelDriver=nvidia-current
to
KernelDriver=nvidiaHello! I modify same the bumblebbe.conf file, and restart the system, but it doesn’t work.
This message give me the system:
[ 96.155131] [ERROR]The Bumblebee daemon has not been started yet or the socket path /var/run/bumblebee.socket was incorrect.
[ 96.155208] [ERROR]Could not connect to bumblebee daemon — is it running?Last edited by herczigem; October 29th, 2012 at 09:07 AM.
-
Re: Nvidia Bumblebee optirun not working any more
Hi everybody!
I came back in the LInux World yesterday with Ubuntu, I installed Bumblebee right after and I had the same message than Marric, then I changed the «driver=» and the «KernelDriver=», but know I’ve got the same problem than herczigem!
Do you have a solution?Just for information I installed the 12.10 version, and a couple of months ago, with the same laptop, but with the 12.04 everthing was fine.
ThanksMatthieu
12/25: I installed all the last update! And evrything is fine! So my problem is solved! Merry Christmas!
Last edited by Tieuc; December 25th, 2012 at 03:38 PM.
Reason: SOLVED
-
Re: Nvidia Bumblebee optirun not working any more
Originally Posted by Tieuc
Hi everybody!
I came back in the LInux World yesterday with Ubuntu, I installed Bumblebee right after and I had the same message than Marric, then I changed the «driver=» and the «KernelDriver=», but know I’ve got the same problem than herczigem!
Do you have a solution?Just for information I installed the 12.10 version, and a couple of months ago, with the same laptop, but with the 12.04 everthing was fine.
ThanksMatthieu
12/25: I installed all the last update! And evrything is fine! So my problem is solved! Merry Christmas!
I did the same with Tieuc including last updates. But I still have the same problem than herczigem.
Code:
[ERROR]The Bumblebee daemon has not been started yet or the socket path /var/run/bumblebee.socket was incorrect. [ERROR]Could not connect to bumblebee daemon - is it running?
And sudo restart bumblebeed doesn’t work for me. I got:
Code:
restart: Unknown instance:
I changed «KernelDriver=nvidia-current» to «KernelDriver=nvidia» but I found nvidia-current package when I searched in synaptic package manager. I’m not sure what driver I’m using. I run this lastly:
Code:
sudo apt-add-repository ppa:ubuntu-x-swat/x-updates
EDIT: I installed Ubuntu 12.10 and bumblebee works fine now. Thanks..
Last edited by SabriCan; February 8th, 2013 at 08:04 AM.
Reason: solved
-
Re: Nvidia Bumblebee optirun not working any more
Today I’m running Ubuntu Studio 12.04 with the 3.2.0-38-lowlatency-pae kernel and I wasn’t able to run anything using optirun without getting an error message that included but was not limited to the following: Could not connect to bumblebee daemon
I was able to resolve this by going back into /etc/bumblebee/bumblebee.conf and changingKernelDriver=nvidia
back to what it was originally
KernelDriver=nvidia-currentand then restarting my laptop
Also I did NOT change left Driver=nvidia back to Drive=
Tags for this Thread
Bookmarks
Bookmarks

Posting Permissions
I recently installed Ubuntu 14.04 GNOME Beta1 on my Asus K55VM laptop with NVIDIA GeForce 630M graphics. Like the previous release (Ubuntu 13.10), the LTS version beta1 release also ships with nouveau drivers for NVIDIA. Now I encountered problems of laptop overheating as the hybrid graphics are always on, which I don’t require.
Hence, the best option for me was to install bumblebee. I ran the following codes in the terminal to install bumblebee:
$ lspci | egrep ‘VGA|3D’
To check your drivers if you are not sure of your graphic card.
In case NVIDIA is present, proceed with the following steps.
$ sudo add-apt-repository ppa:bumblebee/stable
$ sudo apt-get install bumblebee bumblebee-nvidia primus linux-headers-generic
$ sudo apt-get install bbswitch-dkms
$ sudo apt-get install mesa-utils
Post installation of all, I added myself to the bumblebee group.
$ sudo gpasswd -a arindam bumblebee
A reboot and after that I wanted to check if bumblebee was working or not.
$ optirun glxgears
I got error something like this:
[ERROR]Cannot access secondary GPU - error: [XORG] (EE) NVIDIA(0): Failed to initialize the NVIDIA GPU at PCI:1:0:0.
Please[ERROR]Aborting because fallback start is disabled.
Now I did a fair amount of research on it, trying to find out a solution. After a lot of trial and errors, here's the solution that worked for me.
Step 1: Download the nvidia-331-updates
$ sudo apt-get install nvidia-331-updates
Step 2: Once installed open the bumblebee configuration file
$ sudo gedit /etc/bumblebee/bumblebee.conf
I had gedit as my text editor and hence, put gedit there. In case you are using leafpad, replace gedit with leafpad. In case you don’t know, simply use nano — sudo nano /etc/bumblebee/bumblebee.conf
Now edit to make it look exactly the same as mine for the section on nvidia.
# Configuration file for Bumblebee. Values should **not** be put between quotes
## Server options. Any change made in this section will need a server restart
# to take effect.
[bumblebeed]
# The secondary Xorg server DISPLAY number
VirtualDisplay=:8
# Should the unused Xorg server be kept running? Set this to true if waiting
# for X to be ready is too long and don’t need power management at all.
KeepUnusedXServer=false
# The name of the Bumbleblee server group name (GID name)
ServerGroup=bumblebee
# Card power state at exit. Set to false if the card shoud be ON when Bumblebee
# server exits.
TurnCardOffAtExit=false
# The default behavior of ‘-f’ option on optirun. If set to «true», ‘-f’ will
# be ignored.
NoEcoModeOverride=false
# The Driver used by Bumblebee server. If this value is not set (or empty),
# auto-detection is performed. The available drivers are nvidia and nouveau
# (See also the driver-specific sections below)
Driver=nvidia
# Directory with a dummy config file to pass as a -configdir to secondary X
XorgConfDir=/etc/bumblebee/xorg.conf.d
## Client options. Will take effect on the next optirun executed.
[optirun]
# Acceleration/ rendering bridge, possible values are auto, virtualgl and
# primus.
Bridge=auto
# The method used for VirtualGL to transport frames between X servers.
# Possible values are proxy, jpeg, rgb, xv and yuv.
VGLTransport=proxy
# List of paths which are searched for the primus libGL.so.1 when using
# the primus bridge
PrimusLibraryPath=/usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus
# Should the program run under optirun even if Bumblebee server or nvidia card
# is not available?
AllowFallbackToIGC=false
# Driver-specific settings are grouped under [driver-NAME]. The sections are
# parsed if the Driver setting in [bumblebeed] is set to NAME (or if auto-
# detection resolves to NAME).
# PMMethod: method to use for saving power by disabling the nvidia card, valid
# values are: auto — automatically detect which PM method to use
# bbswitch — new in BB 3, recommended if available
# switcheroo — vga_switcheroo method, use at your own risk
# none — disable PM completely
# https://github.com/Bumblebee-Project/Bumblebee/wiki/Comparison-of-PM-methods
## Section with nvidia driver specific options, only parsed if Driver=nvidia
[driver-nvidia]
# Module name to load, defaults to Driver if empty or unset
KernelDriver=nvidia-331-updates
PMMethod=auto
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib/nvidia-331-updates:/usr/lib32/nvidia-331-updates
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib/nvidia-331-updates/xorg,/usr/lib/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia
## Section with nouveau driver specific options, only parsed if Driver=nouveau
[driver-nouveau]
KernelDriver=nouveau
PMMethod=auto
XorgConfFile=/etc/bumblebee/xorg.conf.nouveau
Once done, save it and reboot.
Now check optirun glxgears or optirun glxheads in terminal. You’ll see the output shown below and withe optirun, glxgears and glxheads work 4 times faster than with Intel graphics. Also, my laptop stays ice cool even after using for 12-14 hours. I hope it helps those who are facing the same issue as I was facing.





