12.04 通过 vga 显示视频,禁用 optimus 但未检测到外部显示器

12.04 通过 vga 显示视频,禁用 optimus 但未检测到外部显示器

我有一台配备 nvidia optimus 的 Dell vostro 3446 笔记本。由于我不需要专用 gpu 的功能,因此我将 nouveau 驱动程序列入黑名单,并使用 bbswitch(更好的电池备份)关闭了 nvidia gpu。

笔记本电脑只有 VGA 输出(没有 HDMI)

我使用 VGA 电缆将笔记本电脑连接到三星电视。第一次连接电缆时,电视屏幕从边到边都充满屏幕,分辨率与笔记本电脑屏幕的原始分辨率相同 - 1366 X 768。重新启动后,现在显示的是同一屏幕,分辨率为 1920X1080。因此,基本上 VGA 输出显示在 1366 X 768 窗口内,右侧和底部有黑带。

我检查了系统设置>显示。“镜像”复选框已禁用,并且仅检测到笔记本电脑屏幕显示为“笔记本电脑”。未检测到第二个显示器。

我基本上需要在电视上以 1920 X 1080 显示 vga 输出,并能够切换笔记本电脑屏幕。

任何帮助深表感谢。

如果您需要我运行任何工具来收集错误/调试信息,请告诉我。我自己尝试过一些,以下是输出:

兰德

xrandr: Failed to get size of gamma for output default
Screen 0: minimum 1366 x 768, current 1366 x 768, maximum 1366 x 768
default connected 1366x768+0+0 0mm x 0mm
1366x768        0.0* 

xorg-configure

最后显示一个错误:

Number of created screens does not match number of detected devices.
Configuration failed.  ddxSigGiveUp: Closing log Server terminated with error (2). 
Closing log file.

这是xorg配置文件文件:

Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    Screen      1  "Screen1" RightOf "Screen0"
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
    ModulePath   "/usr/lib/xorg/modules"
    FontPath     "/usr/share/fonts/X11/misc"
    FontPath     "/usr/share/fonts/X11/cyrillic"
    FontPath     "/usr/share/fonts/X11/100dpi/:unscaled"
    FontPath     "/usr/share/fonts/X11/75dpi/:unscaled"
    FontPath     "/usr/share/fonts/X11/Type1"
    FontPath     "/usr/share/fonts/X11/100dpi"
    FontPath     "/usr/share/fonts/X11/75dpi"
    FontPath     "/var/lib/defoma/x-ttcidfont-conf.d/dirs/  TrueType"
    FontPath     "built-ins"
EndSection

Section "Module"
    Load  "extmod"
    Load  "dri"
    Load  "dri2"
    Load  "glx"
    Load  "dbe"
    Load  "record"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
EndSection

Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option      "Protocol" "auto"
    Option      "Device" "/dev/input/mice"
    Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
    Identifier   "Monitor0"
    VendorName   "Monitor Vendor"
    ModelName    "Monitor Model"
EndSection

Section "Monitor"
    Identifier   "Monitor1"
    VendorName   "Monitor Vendor"
    ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>:   "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "ShadowFB"              # [<bool>]
        #Option     "Rotate"                # <str>
        #Option     "fbdev"                 # <str>
        #Option     "debug"                 # [<bool>]
    Identifier  "Card0"
    Driver      "fbdev"
    BusID       "PCI:0:2:0"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>:   "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "ShadowFB"              # [<bool>]
        #Option     "DefaultRefresh"        # [<bool>]
        #Option     "ModeSetClearScreen"    # [<bool>]
    Identifier  "Card1"
    Driver      "vesa"
    BusID       "PCI:0:2:0"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "Card0"
    Monitor    "Monitor0"
    SubSection "Display"
        Viewport   0 0
        Depth     1
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     4
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     8
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     15
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     16
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     24
    EndSubSection
EndSection

Section "Screen"
    Identifier "Screen1"
    Device     "Card1"
    Monitor    "Monitor1"
    SubSection "Display"
        Viewport   0 0
        Depth     1
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     4
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     8
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     15
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     16
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     24
    EndSubSection
EndSection

答案1

即使您不使用 NVidia 方面,您可能仍需要安装“bumblebee”包来正确管理 Optimus GPU。

我有一台配备 Optimus 显卡的 ThinkPad T410s,尽管 BIOS 配置为仅使用 Intel GPU,但它无法正常工作,直到我安装了 Bumblebee。现在它很正常。

相关内容