Kwa*_*per 11 nvidia kubuntu nvidia-optimus bumblebee drivers
我全新安装了 Kubuntu 15.10,我有一台带有 optimus 的 msi GT70 笔记本电脑。
我已经安装了bumblebee bumblebee-nvidia
,它是绝对需要的,因为 nouveau 在登录时不断崩溃。
所以我编辑了/etc/bumblebee/bumblebee.conf
# 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-304
PMMethod=auto
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib/nvidia-304:/usr/lib32/nvidia-304
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib/nvidia-304/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
Run Code Online (Sandbox Code Playgroud)
我有
$ cat /proc/acpi/bbswitch
0000:01:00.0 ON
Run Code Online (Sandbox Code Playgroud)
我把/etc/modules-load.d/modules.conf
i915
bbswitch
Run Code Online (Sandbox Code Playgroud)
所以我能够做到:
$ primusrun glxinfo | grep "OpenGL version"
OpenGL version string: 4.2.0 NVIDIA 304.128
Run Code Online (Sandbox Code Playgroud)
但是,如果我重新启动,我只有一个黑屏,要启动我的系统,我必须登录 tty1 并执行以下操作:
sudo modprobe nvidia_304
sudo service sddm restart
Run Code Online (Sandbox Code Playgroud)
获取 kubuntu 登录屏幕 有什么想法可以解决这个问题吗?
另外,如果我用nvidia- 355替换nvidia-304,我根本无法启动:modprobe 尖端不工作。
这是我的lspci配置:
$ lspci|grep -i vga
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
01:00.0 VGA compatible controller: NVIDIA Corporation GK104M [GeForce GTX 870M] (rev ff)
Run Code Online (Sandbox Code Playgroud)
编辑:
一些相关信息和潜在修复http://forum.ubuntu-it.org/viewtopic.php?p=4760241(意大利语通过) https://www.kubuntuforums.net/showthread.php?69190-Bumblebee-Nvidia355&p=381043
此外,内核 4.2 上的 i915 模块实际上存在一个错误https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1494903
EDIT2(工作大黄蜂解决方案):
我设法使这项工作https://www.kubuntuforums.net/showthread.php?69190-Bumblebee-Nvidia355&p=381043
EDIT3: (少校2015年3月12日)
使用ppa:graphics-drivers/ppa和ppa:xorg-edgers/ppa,更新并重新启动后,我使用358.16-0ubuntu0~gpu15.10.2 出现黑屏。
所以我清除了所有内容,然后安装了bumblee-nvidia nvidia-358,编辑了/etc/bumblebee/bumblebee.conf并执行了sudo service bumblebeed restart。
重新启动后它再次工作。
cl-*_*box 11
由于您拥有相当新的 GPU 硬件,因此您也应该使用新的 NVIDIA 驱动程序和软件。
替换 bumblebeenvidia-prime
以在集成显卡和专用显卡之间切换。
重新安装 NVIDIA 驱动程序,但首先卸载所有 NVIDIA 软件并删除大黄蜂。
打开终端并执行:
sudo apt-get purge nvidia* '^bumblebee.*'
sudo reboot
Run Code Online (Sandbox Code Playgroud)
当GRUB 启动菜单出现时:突出显示Ubuntu 菜单项并按下E键。
将nouveau.modeset=0
参数添加到 Linux 行的末尾...然后按F10启动。
从 Ubuntu 存储库安装稳定的 NVIDIA 专有驱动程序(不适用于 ubuntu 12.04:
sudo apt-get update
sudo apt-get install nvidia-352 nvidia-prime
sudo reboot
Run Code Online (Sandbox Code Playgroud)
如果您想使用最新的驱动程序 - 从专有 GPU 驱动程序 PPA 安装它们:
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-355 nvidia-prime
sudo reboot
Run Code Online (Sandbox Code Playgroud)
尽管一切似乎都正常,但尝试以下操作显示 bbswitch 无法正确关闭 nvidia 卡:
cat /proc/acpi/bbswitch
primusrun glxinfo|grep OpenGL
sleep 1
cat /proc/acpi/bbswitch
Run Code Online (Sandbox Code Playgroud)
然后我重新安装了 bumblebee-nvidia,它一直工作到我重新启动系统。在深入了解该问题后,我注意到在重新启动系统后更新了 update-alternatives,并且我注意到 gpu-manager 导致了这种情况。(只需运行“sudo gpu-manager”,您就会看到它已更新)
gpu-manager 在您启动 lightdm 后运行。所以,作为一个快速的解决方法,我禁用了它。
现在一切都按预期进行。使用 optirun 或 primusrun 运行某些程序后,bbswitch 会在进程退出时正确关闭 nvidia。
总而言之,这是我从头开始安装所有内容的总结(通过阅读评论手动运行):
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get purge -y nvidia* bumblebee bumblebee-nvidia bbswitch-dkms primus
sudo apt-get install nvidia-355
#switch to intel
sudo tee /etc/prime-discrete <<< off
#reboot is recommended at this point
sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get update
sudo apt-get install bumblebee primus
#sudo gedit /etc/modules
# add the line "bbswitch load_state=0"
#sudo gedit /etc/modprobe.d/bumblebee.conf
#and make sure the following line exists
# blacklist nvidia-355
#sudo gedit /etc/bumblebee/bumblebee.conf
# change line 22 "Driver=" to "Driver=nvidia"
# change all nvidia-current to nvidia-355
#sudo gedit /etc/bumblebee/xorg.conf.nvidia
# uncomment BusID line if it is commented and make sure it corresponds to the correct BusID
#disable gpu-manager as it changes i386-linux-gnu_gl_conf and x86_64-linux-gnu_gl_conf
sudo systemctl mask gpu-manager.service
Run Code Online (Sandbox Code Playgroud)
编辑:我删除了 rc.local 修改,因为 gpu-manager 不仅在运行时运行,而且在使用系统时也运行。因此我完全禁用了它。
小智 7
在经历了太多不必要的头痛之后,设法让大黄蜂在 Wily 工作,而没有那种 nvidia-prime 的可怕之处。
正如其他人所怀疑的那样,这是因为 gpu-manager。不管是什么,它都在更新替代配置中呕吐。屏蔽该服务并重新安装 bumblebee[-nvidia] 解决了所有问题,现在该卡按预期通过 optirun 打开和关闭,并且启动时不再出现黑屏。
sudo systemctl mask gpu-manager.service
sudo apt-get install --reinstall bumblebee bumblebee-nvidia
Run Code Online (Sandbox Code Playgroud)
还要确保没有留下损坏的 /etc/X11/xorg.conf。
归档时间: |
|
查看次数: |
21141 次 |
最近记录: |