如何在搭载 Nvidia GeForce GT 540M 的 m11x 上设置 HDMI 输出?

如何在搭载 Nvidia GeForce GT 540M 的 m11x 上设置 HDMI 输出?

我有一台配备 Optimus 技术的 Alienware m11x。我使用 bumblebee 设置(全新安装)Ubuntu 12.04,如下所示。请帮我设置 HDMI 输出,以便我可以将其连接到我的显示器。

$ uname -a
Linux ubuntu 3.2.0-24-generic-pae #39-Ubuntu SMP Mon May 21 18:54:21 UTC 2012 i686 i686 i386 GNU/Linux

$ lspci | grep -i 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 a1)

$ dpkg --get-selections
bumblebee                                       install
bumblebee-nvidia                                install

$ bumblebeed -version
bumblebeed --version
bumblebeed (Bumblebee) 3.0
Copyright (C) 2011 The Bumblebee Project

应该xrandr正常显示HDMI吗?

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



$ cat /etc/X11/xorg.conf 
Section "ServerLayout"
    Identifier "Layout0"
EndSection

Section "Device"
    Identifier "Device1"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    Option "NoLogo" "true"
    Option "ConnectedMonitor" "DFP"
EndSection

$ cat /etc/bumblebee/xorg.conf.nvidia 
Section "ServerLayout"
    Identifier "Layout0"
EndSection

Section "Device"
    Identifier "Device1"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    Option "NoLogo" "true"
    Option "ConnectedMonitor" "DFP"
EndSection

$ cat /etc/bumblebee/xorg.conf.nouveau 
Section "ServerLayout"
    Identifier     "Layout0"
    Screen         "Screen0"
    Option         "AutoAddDevices" "true"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nouveau"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
EndSection

最后是最大的配置文件:

$cat /etc/bumblebee/bumblebee.conf 
[bumblebeed]
VirtualDisplay=:8
KeepUnusedXServer=true
ServerGroup=bumblebee
TurnCardOffAtExit=false
NoEcoModeOverride=false
Driver=

[optirun]
VGLTransport=proxy
AllowFallbackToIGC=false
PMMethod=none

[driver-nvidia]
KernelDriver=nvidia-current
Module=nvidia
PMMethod=none
LibraryPath=/usr/lib/nvidia-current:/usr/lib32/nvidia-current
XorgModulePath=/usr/lib/nvidia-current/xorg,/usr/lib/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia

[driver-nouveau]
KernelDriver=nouveau
PMMethod=none
XorgConfFile=/etc/bumblebee/xorg.conf.nouveau

关于设置 Optimus 以输出至 HDMI 电视,您有什么想法吗?

我想通过 GeForce GT 540M 启用 HDMI。

答案1

我确信您现在已经意识到,使用 GNU/Linux 让 HDMI 在 Optimus 笔记本电脑上运行并非易事,至少可以这么说 :) 不过,有一个相当不错的 95% 解决方案,您可以在此处阅读:

http://www.webupd8.org/2012/08/get-hdmi-working-with-nvidia-optimus-on.html

我买了一台支持 Optimus 的笔记本电脑(我看的规格没有非 Optimus 配置),愚蠢地想着“好吧,我只需禁用 Optimus,就可以了!”... 希望我没有...

答案2

很抱歉我无法通过 xorg.conf 提供解决方案,但也许这个程序可以解决您的问题:

sudo add-apt-repository ppa:nmellegard/disper-indicator-ppa
sudo apt-get update
sudo apt-get install disper disper-indicator

这将在您的顶部栏安装一个小指示器,以便进行简单的一键显示配置。它几乎是不言自明的,所以我将剩下的留给你。希望这会有所帮助。

祝你好运!

相关内容