Ubuntu 19.04 nvidia 430:一次只能工作一个显示器

Ubuntu 19.04 nvidia 430:一次只能工作一个显示器

很抱歉让你陷入这种困境,但我很确定我不是唯一一个遇到这个问题的人:

我有一台相对较新的笔记本电脑,配备 Ge-force 1050TI。由于我需要能够运行需要 cuDNN 库的初步模型,因此我无法使用 ubuntu 驱动程序,而是在 Ubuntu 19.04 系统上安装了 nvidia 430 驱动程序。驱动程序运行良好,包括 cuDNN,但无论我尝试什么,我只能让内部或外部显示器工作:使用 GDM3 时,只有内部显示器可以工作。使用 Lightdm 和 xorg 时,只有外部显示器可以工作。

请有人帮我省去花更多时间处理这个问题的麻烦!以下是一些调试输出。如果您需要更多信息,请告诉我 - 我会尽我所能。

(base):~$ lspci -nnk | grep -i vga -A3
00:02.0 VGA compatible controller [0300]: Intel Corporation UHD Graphics 630 (Mobile) [8086:3e9b]
    Subsystem: Hewlett-Packard Company UHD Graphics 630 (Mobile) [103c:8519]
    Kernel driver in use: i915
    Kernel modules: i915
--
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP107M [GeForce GTX 1050 Ti Mobile] [10de:1c8c] (rev a1)
    Subsystem: Hewlett-Packard Company GP107M [GeForce GTX 1050 Ti Mobile] [103c:8519]
    Kernel driver in use: nvidia
    Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia


(base):~$ lshw -C video
WARNING: you should run this program as super-user.
  *-display                 
       description: VGA compatible controller
       product: GP107M [GeForce GTX 1050 Ti Mobile]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: vga_controller bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: iomemory:600-5ff iomemory:600-5ff irq:190 memory:8f000000-8fffffff memory:6050000000-605fffffff memory:6060000000-6061ffffff ioport:3000(size=128) memory:90000000-9007ffff
  *-display
       description: VGA compatible controller
       product: Intel Corporation
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 00
       width: 64 bits
       clock: 33MHz
       capabilities: vga_controller bus_master cap_list rom
       configuration: driver=i915 latency=0
       resources: iomemory:600-5ff iomemory:400-3ff irq:189 memory:6062000000-6062ffffff memory:4000000000-400fffffff ioport:4000(size=64) memory:c0000-dffff
WARNING: output may be incomplete or inaccurate, you should run this program as super-user.


(base):~$ modinfo nvidia
filename:       /lib/modules/5.0.0-15-generic/kernel/drivers/video/nvidia.ko
alias:          char-major-195-*
version:        430.14
supported:      external
license:        NVIDIA
srcversion:     7CC15950AB2B0F0117C7586
alias:          pci:v000010DEd00000E00sv*sd*bc04sc80i00*
alias:          pci:v000010DEd*sv*sd*bc03sc02i00*
alias:          pci:v000010DEd*sv*sd*bc03sc00i00*
depends:        ipmi_msghandler
retpoline:      Y
name:           nvidia
vermagic:       5.0.0-15-generic SMP mod_unload 
parm:           NvSwitchRegDwords:NvSwitch regkey (charp)
parm:           NVreg_Mobile:int
parm:           NVreg_ResmanDebugLevel:int
parm:           NVreg_RmLogonRC:int
parm:           NVreg_ModifyDeviceFiles:int
parm:           NVreg_DeviceFileUID:int
parm:           NVreg_DeviceFileGID:int
parm:           NVreg_DeviceFileMode:int
parm:           NVreg_InitializeSystemMemoryAllocations:int
parm:           NVreg_UsePageAttributeTable:int
parm:           NVreg_MapRegistersEarly:int
parm:           NVreg_RegisterForACPIEvents:int
parm:           NVreg_EnablePCIeGen3:int
parm:           NVreg_EnableMSI:int
parm:           NVreg_TCEBypassMode:int
parm:           NVreg_EnableStreamMemOPs:int
parm:           NVreg_EnableBacklightHandler:int
parm:           NVreg_RestrictProfilingToAdminUsers:int
parm:           NVreg_PreserveVideoMemoryAllocations:int
parm:           NVreg_DynamicPowerManagement:int
parm:           NVreg_EnableUserNUMAManagement:int
parm:           NVreg_MemoryPoolSize:int
parm:           NVreg_KMallocHeapMaxSize:int
parm:           NVreg_VMallocHeapMaxSize:int
parm:           NVreg_IgnoreMMIOCheck:int
parm:           NVreg_NvLinkDisable:int
parm:           NVreg_RegistryDwords:charp
parm:           NVreg_RegistryDwordsPerDevice:charp
parm:           NVreg_RmMsg:charp
parm:           NVreg_GpuBlacklist:charp
parm:           NVreg_TemporaryFilePath:charp
parm:           NVreg_AssignGpus:charp


(base):~$ xrandr --listmonitors 
Monitors: 1
 0: +*HDMI-0 3840/1050x2160/590+0+0  HDMI-0
(base):~$ xrandr
Screen 0: minimum 8 x 8, current 3840 x 2160, maximum 32767 x 32767
HDMI-0 connected primary 3840x2160+0+0 (normal left inverted right x axis y axis) 1050mm x 590mm
   3840x2160     30.00 +  59.94*   50.00    29.97    25.00    23.98  
   4096x2160     59.94    50.00    29.97    25.00    24.00    23.98  
   1920x1080     60.00    59.94    50.00    29.97    25.00    23.98    60.00    50.04  
   1680x1050     59.95  
   1600x900      60.00  
   1440x900      59.89  
   1366x768      59.79  
   1280x1024     75.02    60.02  
   1280x800      59.81  
   1280x720      60.00    59.94    50.00  
   1152x864      75.00  
   1024x768      75.03    70.07    60.00  
   800x600       75.00    72.19    60.32  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    72.81    59.94  
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)

答案1

对于有同样问题的人:

我必须重新安装并安装 ubuntu nvidia 驱动程序。在安装过程中选中该复选框或:sudo ubuntu-drivers autoinstall

当前适用于我的自动安装版本是 418.56 , 430+ 目前处于测试阶段。

为了使 tensorflow > 1.3 工作,仅通过 Anacona 安装 CuDNN(使用 conda install tensorflow-gpu 而不是 pip install tensorflow-gpu)。

现在,除了 s2idle 或任何挂起/待机/休眠之外,显卡周围的一切都正常工作。似乎也与 NVIDIA 有关,但也可能是 HP Spectre x360 特有的。当我找到解决方案时,我会发布。

相关内容