袁曙光
NVIDIA Optimus without bumblebee
2015-11-26 23:28
阅读:3071

Although bumblebee under Linux gives people lots of convenience in switching dedicated GPU to integrated ones, it still causes plenty of problems such as many software cannot detect the GPU correctly. NVIDIA Optimus, which only use the dedicated Nivida GPU by default for all program, seems to solve this issue.


Here are some steps showing how to configure Nivida optimus without Blumblebee:

Be sure:

* You are running OpenSUSE LEAP 42.1, 13.2 or 13.1

* You don't have bumblebee installed


1)install nvidia drivers using http://opensuse-community.org/nvidia.ymp

2)Download necessary tools:https://drive.google.com/file/d/0B-XzV1WxKN20Z3h2WFIxbWlEc3M/view?pli=1

Put the content of this package somewhere


3)Added the following lines

if [ -f /etc/X11/xinit/xinitrc.d/prime-offload.sh ];

then

. /etc/X11/xinit/xinitrc.d/prime-offload.sh

fi


To /etc/X11/xdm/Xsetup


after the line

". /etc/sysconfig/displaymanager"


4) Edit xorg.conf provided by this package to set the right PCI BusID for your nvidia card  (find it by `lspci|grep NVIDIA`), mine was 02:00.0, yours is probably something else. Edit the line in xorg.conf:BusID "PCI:2:0:0"


5)Run "bash primeselect.sh nvidia" as root. Log out and login again, hopefully you are using nvidia GPU. To switch back to intel GPU run "bash prime-select.sh intel"


testing:

>pymol
>     Created by Warren L. DeLano, Ph.D.
 
   PyMOL is user-supported open-source software.  Although some versions
   are freely available, PyMOL is not in the public domain.
 
   If PyMOL is helpful in your work or study, then please volunteer
   support for our ongoing efforts to create open and affordable scientific
   software by purchasing a PyMOL Maintenance and/or Support subscription.

   More information can be found at "http://www.pymol.org".
 
   Enter "help" for a list of commands.
   Enter "help <command-name>" for information on a specific command.

Hit ESC anytime to toggle between text and graphics.

Detected OpenGL version 2.0 or greater. Shaders available.
Detected GLSL version 4.50.
OpenGL graphics engine:
 GL_VENDOR:   NVIDIA Corporation
 GL_RENDERER: Quadro K1100M/PCIe/SSE2
 GL_VERSION:  4.5.0 NVIDIA 352.55
Adapting to Quadro hardware.
Detected 8 CPU cores.  Enabled multithreaded rendering.


转载本文请联系原作者获取授权,同时请注明本文来自袁曙光科学网博客。

链接地址:https://wap.sciencenet.cn/blog-355217-938919.html?mobile=1

收藏

分享到:

当前推荐数:0
推荐到博客首页
网友评论0 条评论
确定删除指定的回复吗?
确定删除本博文吗?