安装好nvidia显卡后无法调整分辩率


(Pirate) #1

今天安装一台新机器,安装nvidia显卡后先是黑屏,后删除/etc/X11/xorg.conf文件进入桌面。可是分辨率调整不了,目前依然是1024x768。请教如何解决分辨率无法调整的问题。

> lspci | grep VGA
01:00.0 VGA compatible controller: NVIDIA Corporation GP108 (rev a1)
> sudo lshw -c video
  *-display                 
       description: VGA compatible controller
       product: GP108
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: irq:16 memory:f6000000-f6ffffff memory:e0000000-efffffff memory:f0000000-f1ffffff ioport:e000(size=128) memory:c0000-dffff

(Pirate) #2

问题出在驱动版本太低,安装了375版本的驱动,应该是390的。显卡比较新,用低版本驱动不了。

  1. 在源文件中加入分支stretch-backports
  2. apt-get install -t stretch-backports nvidia-driver

参考:
https://wiki.debian.org/NvidiaGraphicsDrivers#stretch