|
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.
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-11-25 00:23
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社