我购买了配备 nvidia GT 540m 和内置显卡的 Alienware m11xr3。
uname -r
3.2.0-33-generic-pae
输出如下lspci | grep VGA
:
lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
01:00.0 VGA compatible controller: NVIDIA Corporation GF108 [GeForce GT 540M] (rev ff)
到目前为止一切顺利。Geforce 已被识别,我可以通过 optirun 使用它:
optirun glxspheres
Polygons in scene: 62464
Visual ID of window: 0x21
Context is Direct
OpenGL Renderer: GeForce GT 540M/PCIe/SSE2
glxspheres
Polygons in scene: 62464
Visual ID of window: 0x9e
Context is Direct
OpenGL Renderer: Mesa DRI Intel(R) Sandybridge Mobile x86/MMX/SSE2
以下是来自 /etc/bumblebee 的文件
大黄蜂配置文件
# 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=true
# 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=
## Client options. Will take effect on the next optirun executed.
[optirun]
# The method used for VirtualGL to transport frames between X servers.
# Possible values are proxy, jpeg, rgb, xv and yuv.
VGLTransport=proxy
# 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
Module=nvidia
PMMethod=auto
# 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=auto
XorgConfFile=/etc/bumblebee/xorg.conf.nouveau
xorg.conf.nouveau
Section "ServerLayout"
Identifier "Layout0"
Screen "Screen0"
EndSection
Section "Device"
Identifier "Device0"
Driver "nouveau"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
EndSection
xorg..conf.nvidia
Section "ServerLayout"
Identifier "Layout0"
EndSection
Section "Device"
Identifier "Device1"
Driver "nvidia"
VendorName "NVIDIA Corporation"
Option "NoLogo" "true"
Option "ConnectedMonitor" "DFP"
EndSection
xrandr -q
Screen 0: minimum 320 x 200, current 1366 x 768, maximum 8192 x 8192
LVDS1 connected 1366x768+0+0 (normal left inverted right x axis y axis) 256mm x 144mm
1366x768 60.0*+
1360x768 59.8 60.0
1024x768 60.0
800x600 60.3 56.2
640x480 59.9
VGA1 disconnected (normal left inverted right x axis y axis)
现在有几个问题:
1) 当我关闭在 optirun 中运行的应用程序时,Bumblebee 似乎不会关闭。它仍处于“开启”状态
2) HDMI 输出根本不起作用。这意味着,当我插入 HDMI 电缆时,我真的不能说是否有反应。显然没有显示任何内容。
3) 找不到 cat /etc/X11/xorg.conf!
4) 我也有 DisplayPort 并想过使用它,但还没有适配器。也许用这个就可以了?
老实说,我对 Linux/Ubuntu 还比较陌生。我使用 Ubuntu 大约有半年了,所以我不是专业人士,但我可以毫无问题地完成基本工作并遵循指南。
如果我们能解决这个问题就太好了。有很多 m11xr3 用户都遇到了这个问题,我想让 hdmi/Displayport(?) 工作并非不可能。如果您需要任何其他信息,请告诉我!感谢您的时间和帮助!
好的,我这边有更新。
现在我可以用不太方便的方式使用 hdmi 输出。我做了什么:正如我在上一条评论中所写,我使用 linlap 指南重新安装了 Ubuntu。然后我发现这 二有用的指南。
现在它的工作方式这里。
希望我能用这个解决方案帮助别人,但对我来说,主要问题是,你无法克隆你的桌面,你需要安装另一个桌面环境。有什么想法可以改进脚本以在两个显示器上使用统一吗?
答案1
您应该提交错误报告。
摘自大黄蜂维基
Optimus 笔记本电脑有两个视频芯片:一个集成的 Intel 芯片和一个独立的 nVidia 芯片。如果端口 (DisplayPort / HDMI / VGA) 连接到 Intel 芯片,则无需执行任何特殊操作即可使外接显示器正常工作。
当端口连接到 nvidia 芯片时,您目前无法将屏幕扩展到显示器上。显示器仍可用作额外屏幕(不运行桌面)或在其上运行完整桌面(Intel LVDS 输出上没有输出,又称“笔记本电脑显示器”)。
我不知道您使用的是哪种类型的线路。需要禁用电源管理。您可以阅读更多内容
Bumble 不使用普通的 xorg.conf 文件。配置文件是这个(根据您的问题)
/etc/bumblebee/xorg.conf.nouveau
因此,最好阅读问题和 wiki从这个 github 项目页面。