Bumblebee

Материал из Rosalab Wiki
Версия от 13:14, 31 октября 2014; Euspectre (обсуждение | вклад) (Инструкция по установке)

Перейти к: навигация, поиск

Инструкция по установке

- Установите пакеты драйверов NVidia. Для приемлемой производительности установите проприетарные драйвера, подключив источник non-free и запустив настройку через XFDrake. - Добавьте своего пользователя в группу bumblebee (если эта группа не существует, создайте ее и перезапустите демон bumblebeed после этого). - Возможно потребуется войти и выйти из системы, для применения изменений. Перегружаться не нужно. - Приложения теперь можно запускать с префиксом "optirun" для запуска на видеокарте Nvidia. Например так:

"optirun glxgears". 

Отличие в работе можно заметить в росте числа кадров по сравнению с нормальным режимом.

Если это не срабатывает, то:

  • Запустите optirun with the --debug commandline line parameter (as in:

"optirun --debug glxgears", for example), and it should provide some meaningful error message as to where the problem is. - If the bumblebeed daemon could not be reached, stop the daemon and manually run it (as root), also with the --debug parameter. It should print a lot of helpful info and error messages. Also make sure you are added to the bumblebee group! - If the GPU could not be started, make sure nvidia drivers are installed properly and power management is working correctly. A reboot might help as well (this restores some internal PCI values that may be corrupted). - If X could not be started, you may have to edit the /etc/bumblebee/xorg.conf.nvidia file. Some errors will also specifically tell you that you need to do this and tell you exactly what to change there. - Still having trouble? Ask for help in #bumblebee on irc.freenode.net

If after a reboot the whole screen is upside-down and/or garbled: You installed nvidia drivers through some other means than the Mandriva packages - this overwrites the Intel hardware acceleration with non-compatible files. Un-install them and replace by the Mandriva packages. If that doesn't fix the problem, you may have to force-reinstall the Intel drivers and xorg files with urpmi --replacepkgs (do a search for packages containing libGL.so, specifically!). It is possible to use the latest official nvidia drivers as well, but it requires a lot of manual configuration. You need to backup the intel-compatible files and move the nvidia versions to a new directory (for example /usr/lib/nvidia-current), then move the intel files back to their original location. The directory that contains the nvidia-compatible files needs to be put in /etc/bumblebee/bumblebee.conf as well.

If you want to use nouveau instead: The version of nouveau in Mandriva is not recommended for Optimus configurations, so you may want to manually compile and install a newer version (the more recent, the better). Then change the line "Driver=nvidia" in /etc/bumblebee/bumblebee.conf to "Driver=nouveau". That should be all you need to do. When using nouveau, bbswitch is no longer required for power management and vga_switcheroo can be used instead (enabled by default if bbswitch is not installed), but an extremely recent development version kernel is required for it to work on all models, so this is not advised. Keeping bbswitch installed should allow the nouveau drivers to work with power management on all Optimus model laptops. In the future vga_switcheroo should/will surpass bbswitch in functionality, so the option to use it is there.