英伟达 - ubuntu 20.04无法识别第二个显示器

分享于 

17分钟阅读

ubuntu

 

问题:

我全新安装了Ubuntu 20.04,但它无法识别第二个显示器

我已经执行以下命令(这些在版本19.10中有效):


sudo apt update && sudo apt upgrade -y


sudo ubuntu-drivers autoinstall



我使用的显卡驱动程序是nvidia-driver-440

xrandr


Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384


eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 194mm


 1920x1080 60.02*+ 60.01 59.97 59.96 59.93 48.03 


 1680x1050 59.95 59.88 


 1600x1024 60.17 


 1400x1050 59.98 


 1600x900 59.99 59.94 59.95 59.82 


 1280x1024 60.02 


 1440x900 59.89 


 1400x900 59.96 59.88 


 1280x960 60.00 


 1440x810 60.00 59.97


 1368x768 59.88 59.85 


 1360x768 59.80 59.96 


 1280x800 59.99 59.97 59.81 59.91 


 1152x864 60.00 


 1280x720 60.00 59.99 59.86 59.74 


 1024x768 60.04 60.00 


 960x720 60.00 


 928x696 60.05 


 896x672 60.01 


 1024x576 59.95 59.96 59.90 59.82 


 960x600 59.93 60.00 


 960x540 59.96 59.99 59.63 59.82 


 800x600 60.00 60.32 56.25 


 840x525 60.01 59.88 


 864x486 59.92 59.57 


 800x512 60.17 


 700x525 59.98 


 800x450 59.95 59.82 


 640x512 60.02 


 720x450 59.89 


 700x450 59.96 59.88 


 640x480 60.00 59.94 


 720x405 59.51 58.99 


 684x384 59.88 59.85 


 680x384 59.80 59.96 


 640x400 59.88 59.98 


 576x432 60.06 


 640x360 59.86 59.83 59.84 59.32 


 512x384 60.00 


 512x288 60.00 59.92 


 480x270 59.63 59.82 


 400x300 60.32 56.34 


 432x243 59.92 59.57 


 320x240 60.05 


 360x202 59.51 59.13 


 320x180 59.84 59.32 


DP-1 disconnected (normal left inverted right x axis y axis)



sudo lshw -C显示


*-display


 descrição: VGA compatible controller


 produto: GP107M [GeForce GTX 1050 Ti Mobile]


 fabricante: NVIDIA Corporation


 ID físico: 0


 informações do barramento: pci@0000:01:00.0


 versão: a1


 largura: 64 bits


 clock: 33MHz


 capacidades: pm msi pciexpress vga_controller bus_master cap_list rom


 configuração: driver=nvidia latency=0


 recursos: irq:16 memória:de000000-deffffff memória:c0000000-cfffffff memória:d0000000-d1ffffff porta de E/S:e000(tamanho=128) memória:df000000-df07ffff


*-display


 descrição: VGA compatible controller


 produto: HD Graphics 630


 fabricante: Intel Corporation


 ID físico: 2


 informações do barramento: pci@0000:00:02.0


 versão: 04


 largura: 64 bits


 clock: 33MHz


 capacidades: pciexpress msi pm vga_controller bus_master cap_list rom


 configuração: driver=i915 latency=0


 recursos: irq:129 memória:dd000000-ddffffff memória:b0000000-bfffffff porta de E/S:f000(tamanho=64) memória:c0000-dffff



显示器可以在Windows中正常工作。

计算机是Dell inspiron 15。

添加可能有用的信息

dmesg (错误于3.413 227 )


[ 2.771157] input: Intel HID events as /devices/platform/INT33D5:00/input/input21


[ 2.771351] intel-hid INT33D5:00: platform supports 5 button array


[ 2.771385] input: Intel HID 5 button array as /devices/platform/INT33D5:00/input/input22


[ 2.818725] systemd[1]: Started Journal Service.


[ 2.824516] systemd-journald[357]: Received client request to flush runtime journal.


[ 2.861274] mei_me 0000:00:16.0: enabling device (0000 -> 0002)


[ 2.861718] mc: Linux media interface: v0.10


[ 2.867576] intel_rapl_common: Found RAPL domain package


[ 2.867577] intel_rapl_common: Found RAPL domain dram


[ 2.871051] proc_thermal 0000:00:04.0: Creating sysfs group for PROC_THERMAL_PCI


[ 2.877025] IPMI message handler: version 39.2


[ 2.877137] cfg80211: Loading compiled-in X.509 certificates for regulatory database


[ 2.883760] ipmi device interface


[ 2.888182] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'


[ 2.891093] videodev: Linux video capture interface: v2.00


[ 2.894789] Bluetooth: Core ver 2.22


[ 2.894802] NET: Registered protocol family 31


[ 2.894802] Bluetooth: HCI device and connection manager initialized


[ 2.894805] Bluetooth: HCI socket layer initialized


[ 2.894807] Bluetooth: L2CAP socket layer initialized


[ 2.894810] Bluetooth: SCO socket layer initialized


[ 2.900899] dcdbas dcdbas: Dell Systems Management Base Driver (version 5.6.0-3.3)


[ 2.951677] RAPL PMU: API unit is 2^-32 Joules, 4 fixed counters, 655360 ms ovfl timer


[ 2.951678] RAPL PMU: hw unit of domain pp0-core 2^-14 Joules


[ 2.951679] RAPL PMU: hw unit of domain package 2^-14 Joules


[ 2.951680] RAPL PMU: hw unit of domain dram 2^-14 Joules


[ 2.951681] RAPL PMU: hw unit of domain pp1-gpu 2^-14 Joules


[ 2.962398] input: Dell WMI hotkeys as /devices/platform/PNP0C14:02/wmi_bus/wmi_bus-PNP0C14:02/9DBB5994-A997-11DA-B012-B622A1EF5492/input/input23


[ 2.963189] checking generic (b0000000 7f0000) vs hw (b0000000 10000000)


[ 2.963190] fb0: switching to inteldrmfb from VESA VGA


[ 2.964973] Console: switching to colour dummy device 80x25


[ 2.965012] i915 0000:00:02.0: vgaarb: deactivate vga console


[ 2.968898] usbcore: registered new interface driver btusb


[ 2.968925] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).


[ 2.968926] [drm] Driver supports precise vblank timestamp query.


[ 2.970976] i915 0000:00:02.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=io+mem


[ 2.974394] [drm] Finished loading DMC firmware i915/kbl_dmc_ver1_04.bin (v1.4)


[ 3.012062] uvcvideo: Found UVC 1.00 device Integrated_Webcam_HD (1bcf:28c1)


[ 3.021359] i915 0000:00:02.0: [drm:intel_dp_aux_init_backlight_funcs [i915]] Panel advertises DPCD backlight support, but VBT disagrees. If your backlight controls don't work try booting with i915.enable_dpcd_backlight=1. If your machine needs this, please file a _new_ bug report on bugs.freedesktop.org against DRI -> DRM/Intel


[ 3.030752] uvcvideo 1-12:1.0: Entity type for entity Extension 4 was not initialized!


[ 3.030754] uvcvideo 1-12:1.0: Entity type for entity Extension 3 was not initialized!


[ 3.030755] uvcvideo 1-12:1.0: Entity type for entity Processing 2 was not initialized!


[ 3.030756] uvcvideo 1-12:1.0: Entity type for entity Camera 1 was not initialized!


[ 3.030811] input: Integrated_Webcam_HD: Integrate as /devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.0/input/input24


[ 3.067420] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040380


[ 3.138784] mei_hdcp 0000:00:16.0-b638ab7e-94e2-4ea2-a552-d1c54b627f04: bound 0000:00:02.0 (ops i915_hdcp_component_ops [i915])


[ 3.139119] intel_rapl_common: Found RAPL domain package


[ 3.139120] intel_rapl_common: Found RAPL domain core


[ 3.139121] intel_rapl_common: Found RAPL domain uncore


[ 3.139122] intel_rapl_common: Found RAPL domain dram


[ 3.139668] nvidia: loading out-of-tree module taints kernel.


[ 3.139675] nvidia: module license 'NVIDIA' taints kernel.


[ 3.139676] Disabling lock debugging due to kernel taint


[ 3.139719] snd_hda_intel 0000:01:00.1: enabling device (0000 -> 0002)


[ 3.139829] ath10k_pci 0000:03:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0


[ 3.140553] snd_hda_intel 0000:01:00.1: Disabling MSI


[ 3.140560] snd_hda_intel 0000:01:00.1: Handle vga_switcheroo audio client


[ 3.146572] cryptd: max_cpu_qlen set to 1000


[ 3.169953] usbcore: registered new interface driver uvcvideo


[ 3.169955] USB Video Class driver (1.1.1)


[ 3.180174] AVX2 version of gcm_enc/dec engaged.


[ 3.180175] AES CTR mode by8 optimization enabled


[ 3.180684] nvidia-nvlink: Nvlink Core is being initialized, major device number 236


[ 3.183871] nvidia 0000:01:00.0: enabling device (0004 -> 0007)


[ 3.186287] nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none


[ 3.285843] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 440.64 Fri Feb 21 01:17:26 UTC 2020


[ 3.293163] input: DLL0798:00 06CB:7E92 Mouse as /devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-2/i2c-DLL0798:00/0018:06CB:7E92.0001/input/input25


[ 3.293233] input: DLL0798:00 06CB:7E92 Touchpad as /devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-2/i2c-DLL0798:00/0018:06CB:7E92.0001/input/input26


[ 3.293294] hid-multitouch 0018:06CB:7E92.0001: input,hidraw0: I2C HID v1.00 Mouse [DLL0798:00 06CB:7E92] on i2c-DLL0798:00


[ 3.303291] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 440.64 Fri Feb 21 00:43:19 UTC 2020


[ 3.338157] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver


[ 3.338159] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 1


[ 3.356373] nvidia-uvm: Loaded the UVM driver, major device number 234.


[ 3.413227] [drm:lspcon_init [i915]] *ERROR* Failed to probe lspcon


[ 3.413265] [drm:intel_ddi_init [i915]] *ERROR* LSPCON init failed on port B


[ 3.416312] ath10k_pci 0000:03:00.0: qca6174 hw3.2 target 0x05030000 chip_id 0x00340aff sub 1028:0310


[ 3.416315] ath10k_pci 0000:03:00.0: kconfig debug 0 debugfs 1 tracing 1 dfs 0 testmode 0


[ 3.416738] ath10k_pci 0000:03:00.0: firmware ver WLAN.RM.4.4.1-00140-QCARMSWPZ-1 api 6 features wowlan,ignore-otp,mfp crc32 29eb8ca1


[ 3.433342] [drm] Initialized i915 1.6.0 20190822 for 0000:00:02.0 on minor 0


[ 3.438212] ACPI: Video Device [GFX0] (multi-head: yes rom: no post: no)


[ 3.439099] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input28


[ 3.439181] ACPI: Video Device [PEGP] (multi-head: no rom: yes post: no)


[ 3.439215] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:0a/LNXVIDEO:01/input/input29


[ 3.440445] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])


[ 3.441626] fbcon: i915drmfb (fb0) is primary device


[ 3.441683] Console: switching to colour frame buffer device 240x67


[ 3.441717] i915 0000:00:02.0: fb0: i915drmfb frame buffer device


[ 3.448458] Adding 19492860k swap on /dev/sdb7. Priority:-2 extents:1 across:19492860k SSFS


[ 3.473358] EXT4-fs (sdb6): mounted filesystem with ordered data mode. Opts: (null)


[ 3.485236] ath10k_pci 0000:03:00.0: board_file api 2 bmi_id N/A crc32 4ac0889b


[ 3.503143] audit: type=1400 audit(1587828434.218:2): apparmor="STATUS" operation="profile_load" profile="unconfined" name="lsb_release" pid=781 comm="apparmor_parser"


[ 3.504026] audit: type=1400 audit(1587828434.218:3): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/man" pid=774 comm="apparmor_parser"


[ 3.504029] audit: type=1400 audit(1587828434.218:4): apparmor="STATUS" operation="profile_load" profile="unconfined" name="man_filter" pid=774 comm="apparmor_parser"


[ 3.504031] audit: type=1400 audit(1587828434.218:5): apparmor="STATUS" operation="profile_load" profile="unconfined" name="man_groff" pid=774 comm="apparmor_parser"


[ 3.504469] audit: type=1400 audit(1587828434.222:6): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/snapd/snap-confine" pid=777 comm="apparmor_parser"


[ 3.504471] audit: type=1400 audit(1587828434.222:7): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/snapd/snap-confine//mount-namespace-capture-helper" pid=777 comm="apparmor_parser"


[ 3.507632] audit: type=1400 audit(1587828434.222:8): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=775 comm="apparmor_parser"


[ 3.507635] audit: type=1400 audit(1587828434.222:9): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-helper" pid=775 comm="apparmor_parser"


[ 3.507637] audit: type=1400 audit(1587828434.222:10): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/connman/scripts/dhclient-script" pid=775 comm="apparmor_parser"


[ 3.556939] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC3246: line_outs=2 (0x14/0x1b/0x0/0x0/0x0) type:speaker


[ 3.556941] snd_hda_codec_realtek hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)


[ 3.556943] snd_hda_codec_realtek hdaudioC0D0: hp_outs=1 (0x21/0x0/0x0/0x0/0x0)


[ 3.556944] snd_hda_codec_realtek hdaudioC0D0: mono: mono_out=0x0


[ 3.556944] snd_hda_codec_realtek hdaudioC0D0: inputs:


[ 3.556946] snd_hda_codec_realtek hdaudioC0D0: Headset Mic=0x19


[ 3.556947] snd_hda_codec_realtek hdaudioC0D0: Headphone Mic=0x1a


[ 3.556949] snd_hda_codec_realtek hdaudioC0D0: Internal Mic=0x12


[ 3.567779] ath10k_pci 0000:03:00.0: unsupported HTC service id: 1536


[ 3.587279] ath10k_pci 0000:03:00.0: htt-ver 3.60 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1


[ 3.604068] input: HDA Intel PCH Headphone Mic as /devices/pci0000:00/0000:00:1f.3/sound/card0/input30


[ 3.668427] ath: EEPROM regdomain: 0x6c


[ 3.668428] ath: EEPROM indicates we should expect a direct regpair map


[ 3.668439] ath: Country alpha2 being used: 00


[ 3.668440] ath: Regpair used: 0x6c


[ 3.671748] ath10k_pci 0000:03:00.0 wlp3s0: renamed from wlan0


[ 3.960890] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input31




答案1:

我在20.04上也遇到第二个显示器无法工作。有白色的鼠标光标,可以移动它,但是其他一切都保持黑色,联想Thinkpad Carbon X1上,也是NVIDIA。


答案2:

我在英伟达RTX 2060笔记本电脑(MSI GS65)上遇到了同样的问题。

我降级为nvidia-435驱动程序,它可以工作正常,440驱动程序未对某些内容进行彻底的审查/测试,降级看看是否有用。


答案3

在你最喜欢的编辑器中打开文件(vim,nano,gedit,等等)。


sudo nano /lib/modprobe.d/nvidia-kms.conf



并注释掉nvidia-drm模式设置选项。


# This file was generated by nvidia-prime


# Set value to 0 to disable modesetting


# options nvidia-drm modeset=1