Bumblebee Intel+Nvidia 15.10 黑屏问题

Bumblebee Intel+Nvidia 15.10 黑屏问题

我全新安装了 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

我有

$ cat /proc/acpi/bbswitch 
0000:01:00.0 ON

我输入/etc/modules-load.d/modules.conf

i915
bbswitch

所以我可以这样做:

$ primusrun glxinfo | grep "OpenGL version"
OpenGL version string: 4.2.0 NVIDIA 304.128

如果我重新启动,我将看到黑屏,为了启动我的系统,我必须登录 tty1 并执行以下操作:

sudo modprobe nvidia_304
sudo service sddm restart

获取 kubuntu 登录屏幕有什么办法可以解决这个问题?

如果我更换NVIDIA-304经过NVIDIA-355我根本无法启动:modprobe 提示不起作用。

这是我的配置串行通信

$ 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)

编辑:

一些相关信息和潜在的修复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

  1. 安装 nvidia-355 和 nvidia-prime
  2. 在 nvidia 面板中选择英特尔驱动程序并注销
  3. 仅安装 bumblebee(不安装 bumblebee-nvidia)
  4. 根据需要编辑 /etc/bumblebee/bumblebee.conf 第 22 行 KernelDriver=nvidia 将 nvidia-current 替换为 nvidia-355
  5. /etc/bumblebee/xorg.conf.nvidia 取消注释 BusID“PCI:01:00:0”,如下所述https://askubuntu.com/questions/29044...vices-detected
  6. 现在您可以在英特尔卡下启动并使用 optirun 和 primusrun。到目前为止,它对我来说是有效的,使用 primusrun glxinfo 进行测试

编辑3:五月 03/12/2015

使用ppa:图形驱动程序/ppappa:xorg-edgers/ppa,更新并重启后,我使用时出现黑屏358.16-0ubuntu0~gpu15.10.2

所以我清除了所有内容然后安装了bumblee-nvidia nvidia-358,已编辑/etc/bumblebee/bumblebee.conf并且做到了sudo 服务 bumblebeed 重启

重启后它确实再次工作了。

答案1

由于您拥有相当新的 GPU 硬件,因此您也应该使用新的 NVIDIA 驱动程序和软件。

用 替换 大黄蜂 以nvidia-prime在 之间切换融合的独立显卡

重新安装 NVIDIA 驱动程序,但首先卸载所有 NVIDIA 软件并删除大黄蜂。

打开终端并执行:

sudo apt-get purge nvidia* '^bumblebee.*'  
sudo reboot  

当。。。的时候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

当您想要使用最新的驱动程序时 - 请从专有 GPU 驱动程序 PPA 安装它们:

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-355 nvidia-prime
sudo reboot  

答案2

在经历了太多不必要的麻烦之后,终于设法让大黄蜂在 Wily 中工作,并且摆脱了 nvidia-prime 的困扰。

正如其他人所怀疑的那样,这是因为 gpu-manager。不管它是什么,它都在 update-alternative 配置中乱窜。屏蔽该服务并重新安装 bumblebee[-nvidia] 可以解决所有问题,现在显卡可以通过 optirun 按预期打开和关闭,启动时不再出现黑屏。

sudo systemctl mask gpu-manager.service
sudo apt-get install --reinstall bumblebee bumblebee-nvidia

还要确保没有留下损坏的 /etc/X11/xorg.conf。

答案3

尽管一切似乎都正常,但尝试以下操作表明 bbswitch 无法正确关闭 nvidia 卡:

cat /proc/acpi/bbswitch
primusrun glxinfo|grep OpenGL
sleep 1
cat /proc/acpi/bbswitch

然后我重新安装了 bumblebee-nvidia,它一直工作到我重新启动系统。在进一步研究了这个问题之后,我注意到 update-alternatives 在重新启动系统后会更新,而且我注意到这是 gpu-manager 造成的。(只需运行“sudo gpu-manager”,您就会看到它已更新)

启动 lig​​htdm 后,gpu-manager 会运行。因此,作为一种快速解决方法,我禁用了它。

现在一切都按预期工作。在使用 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

编辑:我删除了 rc.local 修改,因为 gpu-manager 不仅在运行时运行,而且在使用系统时也运行。因此我完全禁用了它。

相关内容