带有 cinnamon 和 mdm 的 Nvidia/Intel 混合显卡

带有 cinnamon 和 mdm 的 Nvidia/Intel 混合显卡

我到处都找过了,但似乎找不到答案

我有一台笔记本电脑(Acer V3-5726-54S6),1TB 8GBRam,集成英特尔 GPU 和 Nvidia GT840m(2GB)。运行 Ubuntu 14.04,带有 cinnamon 和 mdm

我正在尝试使用 mdm 让 nvidia 卡与 cinnamon 配合使用,但似乎无法让它工作。我试过了

  • 大黄蜂。编辑 bumblebee.conf。编辑 xorg.conf.nvidia
  • 带有 nvidia-340 驱动程序的大黄蜂,
  • 大黄蜂与 nvidia-331
  • 搭载 nvidia-337 的大黄蜂
  • 带有 nvidia-current 的 bumblebee — nvidia 驱动程序(来自网站和 xorg-edgers ppa)
  • 新型驱动程序

当我使用大黄蜂时我尝试过

    $ optirun (any program)

我回来了

[错误]无法访问辅助 GPU - 错误:无法加载 GPU 驱动程序

[错误]由于后备启动已被禁用,因此正在中止。

这发生在我使用的所有不同驱动程序上(331、337、340、当前),所以我卸载了 bumblebee* 和 nvidia*,并尝试从网站安装 nvidia 驱动程序,但这导致 cinnamon 崩溃。

尝试安装没有大黄蜂的干燥机(331,340)

当它给我选项时我选择了 lightdm,重新启动,启动画面后出现黑屏。当我选择 mdm 时,cinnamon 崩溃了……

$ lspci | egrep 'VGA|3D'

然后回来了

00:02.0 VGA 兼容控制器:英特尔公司 Haswell-ULT 集成图形控制器(rev 0b)

03:00.0 3D 控制器:NVIDIA Corporation GM108M [GeForce 840M](rev a2)

有什么帮助吗?

答案1

首先,我不确定我是否能帮助您解决这个问题,但我目前无法对您的问题发表评论。

我假设您遵循了以下顺序:

sudo apt-get install linux-headers-generic
sudo apt-get install bumblebee primus primus-libs-ia32

比 nvidia 驱动程序:

sudo add-apt-repository ppa:xorg-edgers/ppa 
sudo apt-get update
sudo apt-get install nvidia-xxx

或者

sudo apt-get install bumblebee-nvidia

最后,重新安装 bbswitch-dkms:

sudo apt-get install --reinstall bbswitch-dkms

编辑配置文件,重新启动。

如果不:

sudo apt-get remove --purge nvidia-xxx
sudo apt-get remove --purge bumblebee

如果您有 bumblebee-nvidia,请在代码中替换它。现在从顶部开始重新安装所有内容。

我可以报告 nvidia-346 无法工作,重启后你只会看到黑屏,并且必须清除 nvidia 和 x-server 并重新安装 x-server 才能使系统恢复正常。

我认为在 Optimus 系统上没有办法安全地安装 nvidia 驱动程序(从 nvidia-XXX.run),我尝试过几次但都失败了。

您究竟是如何编辑 bumblebee、bumblebee.conf、xorg.conf.nvidia 的?

当我碰巧没有在 bumblebee.conf 中指定正确的驱动程序名称时,我收到了该错误。

我会在文本下方提供我的 bumblebee.conf。请记住,我使用的是默认驱动程序 (bumblebee-nvidia)。我们使用相同的操作系统。

不过,我认为问题稍后会出现在 xorg.conf.nvidia 中的 BusID 行中。如您所见,您的 nvidia 卡的 BusID 是 03:00.0,而 nvidia.conf 文件中的默认 BusID 是 01:00:0。目前,该行如下:

#   BusID "PCI:01:00:0"

您需要删除标签并更改值,使其如下所示:

    BusID "PCI:03:00:0"

尝试我的 bumblebee.conf,在 xorg.nvidia.conf 中编辑 BusID,看看会发生什么。希望这会有所帮助。

等待回覆。

# 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=virtualgl
# 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-current
PMMethod=bbswitch
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib/nvidia-current:/usr/lib32/nvidia-current
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib/nvidia-current/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=bbswitch
XorgConfFile=/etc/bumblebee/xorg.conf.nouveau

相关内容