在 ubuntu 上安装显卡(NVIDIA GT630)遇到问题

在 ubuntu 上安装显卡(NVIDIA GT630)遇到问题

我尝试了很多方法来安装显卡,以便为我的两个屏幕获得正确的分辨率。我尝试过在 ubuntu 16.10 上安装,但目前使用的是 14.04

一个是 1920x1080,另一个是 1680x1050

我的显卡是 NVIDIA GT 630。

我最近做的事情是:

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-367

(我在 NVIDIA 网站上搜索并找到了正确的数字)

sudo reboot

我检查我使用的驱动程序是否正确:

Ubuntu 软件

但是我无法在 X Server 中看到两个屏幕的正确分辨率:

在此处输入图片描述

我获得的每个屏幕的最大分辨率是 1360*768!

以下是该命令的屏幕截图xrandr --query

在此处输入图片描述

(我也尝试从 nvidia 服务器下载 .run 并通过Ctrl++模式安装它Altf1但没有成功!我手动添加新分辨率也没有成功(使用 xrandr --addmode 方法))

lspci -v以下是显示我的显卡的命令的输出:

在此处输入图片描述

答案1

对于那些寻找答案的人来说,我终于让它发挥作用了!

除了安装 nvidia-367 之外,我还在两个屏幕之间切换了电缆:

我使用了三星 SyncMaster S22B150 的 VGA,它解决了这个问题。

我把 ACER AL2216W 放在 DVI 上,但它仍然无法工作。

我在 /etc/X11/xorg.conf 文件中添加了以下内容:

Section "Monitor"
    Identifier "Monitor0"
    VendorName "ACER"
    ModelName "AL2216W"
    HorizSync 31 - 80
    VertRefresh 56 - 75
EndSection

Section "Screen"
    Identifier "Screen0"
    Device "Device0"
    Monitor "Monitor0"
    DefaultDepth 24
    SubSection "Display"
        Depth 24
        Modes "1680x1050"
    EndSubSection
EndSection

我重新启动并打开 X 服务器,我能够选择正确的分辨率。从这里开始,我不知道我到底做了什么,因为每次重新启动后分辨率都不会保持不变,但我知道有以下 /etc/X11/xorg.conf 文件:

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"

    # HorizSync source: xconfig, VertRefresh source: xconfig
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "CRT-0"
    HorizSync       30.0 - 83.0
    VertRefresh     50.0 - 75.0
    ModeLine       "1680x1050" 146.250 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync
    ModeLine       "1920x1200" 154.000 1920 1968 2000 2080 1200 1203 1209 1235 +hsync -vsync
    ModeLine       "1920x1080" 173.000 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
    ModeLine       "1792x1344" 204.800 1792 1920 2120 2448 1344 1345 1348 1394 -hsync +vsync
    ModeLine       "1600x1200" 175.500 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
    ModeLine       "1440x900" 106.500 1440 1520 1672 1904 900 903 909 934 -hsync +vsync
    ModeLine       "1400x1050" 155.800 1400 1464 1784 1912 1050 1052 1064 1090 +hsync +vsync
    ModeLine       "1360x768" 72.000 1360 1408 1440 1520 768 771 781 790 +hsync -vsync
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GT 630"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "CRT-0"
    Option         "metamodes" "DVI-I-0: 1680x1050_60 +0+0, VGA-0: nvidia-auto-select +1680+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
    Depth       24
    Modes       "1680x1050"
    EndSubSection
EndSection

从这里开始还不够,我必须在 shell 中输入以下几行:

gtf 1680 1050 60

它输出:

# 1680x1050 @ 60.00 Hz (GTF) hsync: 65.22 kHz; pclk: 147.14 MHz
Modeline "1680x1050_60.00"  147.14  1680 1784 1968 2256  1050 1051 1054 1087  -HSync +Vsync

我使用模式行并输入:

xrandr --newmode "1680x1050_60.00"  147.14  1680 1784 1968 2256  1050 1051 1054 1087  -HSync +Vsync
xrandr --addmode DVI-I-0 1680x1050_60.00
xrandr --output DVI-I-0 --mode 1680x1050_60.00 --rate 60

一切都很好!

当我重新启动时,在登录屏幕上,我的 ACER 屏幕仍然没有良好的分辨率,但只要我登录,就没问题了!

相关内容