更新至 Ubuntu 18.04 后,联想 w520 的分辨率错误(缺少 1920x1080)

更新至 Ubuntu 18.04 后,联想 w520 的分辨率错误(缺少 1920x1080)

如果问题已经得到解答,请原谅;我四处寻找,但不知道该怎么做。

我正在使用 w520,最近从 14.04 更新到了 18.04(中间 16.04 坏了,UI 完全停止工作 - 低图形模式 - 必须进行修复。)

我现在有了一个 GUI,但是分辨率是 1600x900,而不是预期的 1920x1080。

在 BIOS 上,显示模式设置为离散,且 Optimus 处于关闭状态。

我尝试手动安装 nvidia-driver-390(不知道这是否正确,但它似乎是其他 w520 安装的)——也

ubuntu-drivers 设备显示:

 ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd00000DFAsv000017AAsd000021CFbc03sc00i00
vendor   : NVIDIA Corporation
model    : GF108GLM [Quadro 1000M]
driver   : nvidia-340 - distro non-free
driver   : nvidia-driver-390 - third-party free recommended
driver   : nvidia-304 - third-party free
driver   : xserver-xorg-video-nouveau - distro free builtin

xrandr 显示:

Screen 0: minimum 8 x 8, current 1600 x 900, maximum 16384 x 16384
VGA-0 disconnected (normal left inverted right x axis y axis)
LVDS-0 connected primary 1600x900+0+0 (normal left inverted right x axis y axis) 344mm x 193mm
   1600x900      60.22*+  50.01  
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 disconnected (normal left inverted right x axis y axis)
sudo get-edid|parse-edid
This is read-edid version 3.0.2. Prepare for some fun.
Attempting to use i2c interface
No EDID on bus 0
No EDID on bus 1
No EDID on bus 3
No EDID on bus 4
No EDID on bus 5
No EDID on bus 6
No byte reading on this bus...
Problem requesting slave address: Bad file descriptor
No byte reading on this bus...
Problem requesting slave address: Bad file descriptor
No byte reading on this bus...
Problem requesting slave address: Bad file descriptor
1 potential busses found: 2
128-byte EDID successfully retrieved from i2c bus 2
Looks like i2c was successful. Have a good day.
Checksum Correct

Section "Monitor"
    Identifier "�p"
    ModelName "�p"
    VendorName "LEN"
    # Monitor Manufactured week 1 of 2008
    # EDID version 1.3
    # Digital Display
    DisplaySize 340 190
    Gamma 2.20
    Option "DPMS" "true"
    Modeline    "Mode 0" 106.00 1600 1664 1706 1930 900 903 906 912 -hsync -vsync 
    Modeline    "Mode 1" 106.00 1600 1664 1706 2324 900 903 906 912 -hsync -vsync 
EndSection

运行 sudo nvidia-xconfig,

/etc/X11/xorg.conf 变成:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 390.116  (buildmeister@swio-display-x64-rhel04-14)  Sun Jan 27 07:47:55 PST 2019


Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
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"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

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

sudo lspci | grep -i vga/nvidia

是空的。

sudo modprobe -v nvidia (来自Ubuntu 18.04 更新后显示端口显示器分辨率低

运行无错误。

在软件和更新=>附加驱动程序上显示: 截屏

有人能帮助我吗?我不仅想知道该怎么做,还想知道发生了什么以及如何修复。谢谢!

===更新:尝试以下https://linoxide.com/linux-how-to/install-nvidia-drivers-ubuntu/包括建议的 ppa,但都无济于事。

===更新:尝试通过 GUI 更改为 340,结果却转到 noveau,损坏,并且变成 480x480。清除等操作后,我想我已经恢复到以前的状态。

lspci -k | grep -EA3 'VGA|3D|Display' 的输出:

 '
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
    Subsystem: Lenovo ThinkPad T520
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09)
    Kernel driver in use: pcieport
    Kernel modules: shpchp
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
    Subsystem: Lenovo ThinkPad T520
    Kernel driver in use: mei_me
    Kernel modules: mei_me
00:16.3 Serial controller: Intel Corporation 6 Series/C200 Series Chipset Family KT Controller (rev 04)
    Subsystem: Lenovo 6 Series/C200 Series Chipset Family KT Controller
    Kernel driver in use: serial
00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (Lewisville) (rev 04)
    Subsystem: Lenovo ThinkPad T520
    Kernel driver in use: e1000e
    Kernel modules: e1000e
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
    Subsystem: Lenovo ThinkPad T520
    Kernel driver in use: ehci-pci
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 04)
    Subsystem: Lenovo ThinkPad T520
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b4)
    Kernel driver in use: pcieport
    Kernel modules: shpchp
00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 (rev b4)
    Kernel driver in use: pcieport
    Kernel modules: shpchp
00:1c.3 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 (rev b4)
    Kernel driver in use: pcieport
    Kernel modules: shpchp
00:1c.4 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 5 (rev b4)
    Kernel driver in use: pcieport
    Kernel modules: shpchp
00:1c.6 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 7 (rev b4)
    Kernel driver in use: pcieport
    Kernel modules: shpchp
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
    Subsystem: Lenovo ThinkPad T520
    Kernel driver in use: ehci-pci
00:1f.0 ISA bridge: Intel Corporation QM67 Express Chipset LPC Controller (rev 04)
    Subsystem: Lenovo ThinkPad T520
    Kernel driver in use: lpc_ich
    Kernel modules: lpc_ich
00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port Mobile SATA AHCI Controller (rev 04)
    Subsystem: Lenovo ThinkPad T520
    Kernel driver in use: ahci
    Kernel modules: ahci
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 04)
    Subsystem: Lenovo ThinkPad T520
    Kernel modules: i2c_i801
01:00.0 VGA compatible controller: NVIDIA Corporation GF108GLM [Quadro 1000M] (rev a1)
    Subsystem: Lenovo GF108GLM [Quadro 1000M]
    Kernel driver in use: nvidia
    Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia
01:00.1 Audio device: NVIDIA Corporation GF108 High Definition Audio Controller (rev a1)
    Subsystem: Lenovo GF108 High Definition Audio Controller
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel
03:00.0 Network controller: Intel Corporation Centrino Ultimate-N 6300 (rev 35)
    Subsystem: Intel Corporation Centrino Ultimate-N 6300 3x3 AGN
    Kernel driver in use: iwlwifi
    Kernel modules: iwlwifi
0d:00.0 System peripheral: Ricoh Co Ltd MMC/SD Host Controller (rev 08)
    Subsystem: Lenovo MMC/SD Host Controller
    Kernel driver in use: sdhci-pci
    Kernel modules: sdhci_pci
0d:00.3 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 PCIe IEEE 1394 Controller (rev 04)
    Subsystem: Lenovo ThinkPad T520
    Kernel driver in use: firewire_ohci
    Kernel modules: firewire_ohci
0e:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 04)
    Subsystem: Lenovo uPD720200 USB 3.0 Host Controller
    Kernel driver in use: xhci_hcd

答案1

使用无级变速器兰德添加 1920x1080 的命令如下

xrandr --newmode $(cvt 1920 1080 60 | sed 's/^.*MHz//' | sed 's/\/.*//' | sed 's/^.*Modeline//' | sed 's/\"//g')
sudo xrandr --addmode $(sudo xrandr -q | grep " connected" | cut -d " " -f 1) $(echo $(cvt 1920 1080 60 | sed 's/^.*MHz//' | sed 's/\/.*//' | sed 's/^.*Modeline//' | sed 's/\"//g') | sed 's/\ .*//')
xrandr -s $(echo $(cvt 1920 1080 60 | sed 's/^.*MHz//' | sed 's/\/.*//' | sed 's/^.*Modeline//' | sed 's/\"//g') | sed 's/\ .*//')

或者使用来自 github 的简单 bash 脚本github.com/porczynski/add-display-resolution

wget https://github.com/porczynski/add-display-resolution/archive/master.zip
unzip ./master.zip
cd add-display-resolution

对我来说很管用。您可以通过简单的命令添加任何分辨率,例如:

./addre 1080

相关内容