双显示器不工作 – 英特尔图形和Nvidia 960m

我真的不知道从哪里开始寻找解决这个问题的方法。 搜索网络并没有让我走得太远。 我没有使用任何特殊的适配器,它是一根直的HDMI线。 这是Ubuntu 14.04.3(后来也是15.10)的全新安装。 Windows中使用相同的显示器,电缆和笔记本电脑。

奇怪的是

如果我拔下显示器,那么我就跑了

sudo apt-get install --reinstall ubuntu-desktop sudo reboot now 

我第一次登录,第一次插入电缆,第二次屏幕工作没有问题(dmesg仍然抱怨WARN_ON(!wm_changed) ,但没有更多的i2c i2c-1: sendbytes: NAK bailout. )。 但是一旦笔记本电脑关闭屏幕(待机)或我重新启动机器或拔掉电缆,第二个屏幕就不再工作了。

此外,如果我重新安装ubuntu-desktop,但在插入HDMI线的情况下关闭笔记本电脑,这个trick似乎不起作用。

HW

  • 宏碁Aspire V 17 Nitro – 黑色版(Aspire VN7-792G)
  • GeForce GTX 960m / Intel显卡
  • 第二台显示器通过HDMI端口连接

我正在使用“其他驱动程序”应用程序中的专有nvidia驱动程序。 但设置使用nouveau显示驱动程序也无济于事。

司机

xrandr

 roman@roman-aspire:~$ xrandr --query Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 16384 x 16384 eDP1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 382mm x 215mm 1920x1080 60.0*+ 59.9 1680x1050 60.0 59.9 1600x1024 60.2 1400x1050 60.0 1280x1024 60.0 1440x900 59.9 1280x960 60.0 1360x768 59.8 60.0 1152x864 60.0 1024x768 60.0 800x600 60.3 56.2 640x480 59.9 DP1 disconnected (normal left inverted right x axis y axis) DP2 disconnected (normal left inverted right x axis y axis) HDMI1 disconnected (normal left inverted right x axis y axis) HDMI2 disconnected (normal left inverted right x axis y axis) VIRTUAL1 disconnected (normal left inverted right x axis y axis) 

nvidia-settings只能看到一个屏幕。 nvidia-settings中

lshw -c显示

 roman@roman-aspire:/$ sudo lshw -c display *-display description: 3D controller product: NVIDIA Corporation vendor: NVIDIA Corporation physical id: 0 bus info: pci@0000:01:00.0 version: a2 width: 64 bits clock: 33MHz capabilities: pm msi pciexpress bus_master cap_list configuration: driver=nvidia latency=0 resources: irq:128 memory:83000000-83ffffff memory:40000000-4fffffff memory:50000000-51ffffff ioport:4000(size=128) *-display description: VGA compatible controller product: Intel Corporation vendor: Intel Corporation physical id: 2 bus info: pci@0000:00:02.0 version: 06 width: 64 bits clock: 33MHz capabilities: pciexpress msi pm vga_controller bus_master cap_list rom configuration: driver=i915_bpo latency=0 resources: irq:126 memory:82000000-82ffffff memory:90000000-9fffffff ioport:5000(size=64) 

有人可以指点我的方向吗?

更新:我已经安装了15.10。 安装了“Intel Graphics for Linux”驱动程序。 它仍然无法正常工作。 但现在当我点击nvidia-settings “Detect Displays”时,应用程序会出现段错误。 不知道这是否有任何意义。

当我插入显示器时dmesg

 [46290.977521] WARNING: CPU: 0 PID: 958 at /build/linux-NgsOGa/linux-4.2.0/drivers/gpu/drm/i915/intel_pm.c:3404 skl_update_other_pipe_wm+0x1de/0x1f0 [i915]() [46290.977522] WARN_ON(!wm_changed) [46290.977522] Modules linked in: [46290.977524] visor usbserial uas usb_storage snd_seq_dummy xt_nat xt_tcpudp veth arc4 rfcomm bbswitch(OE) xt_conntrack ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 xt_addrtype iptable_filter ip_tables x_tables nf_nat nf_conntrack br_netfilter bridge stp llc aufs rtsx_usb_ms rtsx_usb_sdmmc memstick rtsx_usb bnep snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic nls_iso8859_1 hid_multitouch joydev i2c_designware_platform i2c_designware_core acer_wmi sparse_keymap intel_rapl snd_hda_intel x86_pkg_temp_thermal intel_powerclamp coretemp snd_hda_codec snd_hda_core kvm_intel nvidia(POE) snd_hwdep kvm crct10dif_pclmul crc32_pclmul snd_pcm aesni_intel uvcvideo aes_x86_64 videobuf2_vmalloc lrw videobuf2_memops ath10k_pci gf128mul snd_seq_midi videobuf2_core [46290.977546] glue_helper snd_seq_midi_event ath10k_core v4l2_common ablk_helper cryptd snd_rawmidi videodev ath media snd_seq mac80211 snd_seq_device snd_timer input_leds idma64 virt_dma serio_raw mei_me snd btusb mei cfg80211 soundcore btrtl btbcm btintel bluetooth intel_lpss_pci shpchp acpi_als kfifo_buf industrialio wmi intel_lpss_acpi intel_lpss tpm_crb acpi_pad mac_hid parport_pc ppdev lp parport autofs4 hid_generic usbhid i915 i2c_algo_bit drm_kms_helper drm r8169 ahci mii libahci i2c_hid hid video pinctrl_sunrisepoint pinctrl_intel [46290.977565] CPU: 0 PID: 958 Comm: Xorg Tainted: P OE 4.2.0-27-generic #32-Ubuntu [46290.977566] Hardware name: Acer Aspire VN7-792G/Aspire VN7-792G, BIOS V1.02 09/25/2015 [46290.977567] 0000000000000000 000000007e6118ab ffff880897287628 ffffffff817eae99 [46290.977568] 0000000000000000 ffff880897287680 ffff880897287668 ffffffff8107b9c6 [46290.977569] ffff880897287730 ffff8808972877d4 ffff88089e3c7000 ffff88089e3c6000 [46290.977571] Call Trace: [46290.977574] [] dump_stack+0x45/0x57 [46290.977577] [] warn_slowpath_common+0x86/0xc0 [46290.977578] [] warn_slowpath_fmt+0x55/0x70 [46290.977584] [] skl_update_other_pipe_wm+0x1de/0x1f0 [i915] [46290.977592] [] ? zone_statistics+0x7c/0xa0 [46290.977597] [] skl_update_wm+0x1bb/0x740 [i915] [46290.977603] [] intel_update_watermarks+0x1e/0x30 [i915] [46290.977614] [] haswell_crtc_enable+0x488/0xa90 [i915] [46290.977624] [] __intel_set_mode+0x916/0xb60 [i915] [46290.977633] [] intel_crtc_set_config+0x2b6/0x580 [i915] [46290.977642] [] ? drm_mode_create+0x25/0x60 [drm] [46290.977648] [] drm_mode_set_config_internal+0x66/0x100 [drm] [46290.977655] [] drm_mode_setcrtc+0x3e9/0x500 [drm] [46290.977659] [] drm_ioctl+0x125/0x610 [drm] [46290.977665] [] ? drm_mode_setplane+0x1b0/0x1b0 [drm] [46290.977667] [] do_vfs_ioctl+0x295/0x480 [46290.977669] [] ? __set_task_blocked+0x41/0xa0 [46290.977671] [] SyS_ioctl+0x79/0x90 [46290.977672] [] ? SyS_rt_sigprocmask+0x74/0xc0 [46290.977673] [] entry_SYSCALL_64_fastpath+0x16/0x75 [46290.977674] ---[ end trace 83ee13270bae676a ]--- [46294.680523] [drm] GMBUS [i915 gmbus dpb] timed out, falling back to bit banging on pin 5 

然后是无穷无尽的:

 [46295.906998] i2c i2c-1: sendbytes: NAK bailout. 

如果安装有点过头,我会尝试跟进:

 sudo apt-get install ppa-purge sudo apt-get purge nvidia* sudo ppa-purge ppa:xorg-edgers/ppa sudo reboot 

回到终端,只需尝试这个:

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

这个在这里:

 sudo apt-get install nvidia-358 nvidia-prime sudo apt-get install --reinstall xserver-xorg reboot 

我会安装ARandR并使用该GUI而不是NVIDIA或其他人。 它适用于我在Ubuntu版本的linux上使用多个监视器设置和保持分辨率。

打开终端窗口并安装:

 sudo apt-get update && sudo apt-get install arandr 

然后开始使用只需找到arandr作为应用程序菜单中列出的应用程序。 安装完成后,在菜单中找到它:

 System -> Preferences -> ARandR 

ARandR的主页 : http : //christian.amsuess.com/tools/arandr/

祝一切顺利 ..

可能是驱动程序或Xserver问题? 也许试试:

 sudo apt-get remove purge nvidia* sudo reboot 

用nouveau驱动程序启动(在grub中添加’nomodeset’到linux行的末尾)

 sudo apt-get install nvidia-current nvidia-current-updates 

^或用你正在使用的驱动程序版本替换’current’(我认为最新的是352?)

使用ctrl + alt + 1-7打开tty1-7

 sudo apt-get install --reinstall xserver-xorg sudo reboot 

不要在此重新启动时添加’nomodeset’

这可能无法解决,但我想你应该确保它不会破坏司机

尝试OEM驱动程序, 在此处下载。 您将需要终止图形会话,并以root用户身份登录。 你可以这样做,只要你有权限,按ctrl + alt + F5然后登录,然后执行: sudo -i接下来,使用kill -9 lightdm杀死会话你可能需要让你下载的脚本可执行。 您可以使用chmod +x 执行此操作,然后执行驱动程序安装脚本。 按照说明操作,然后安装GPU驱动程序。 完成后,您可以运行lightdmstartx来查看更改是否改善了您的情况。

您可以转到system-> properties->显示

查看您的显示器是否被检测到。

您可能还希望将英特尔驱动程序列入黑名单,而您尝试使用NVIDIA GPU。

我过去遇到过这个问题。

我能够在V15 Nitro上使用外部显示器(每次)的唯一内核是4.7.2。

我挖了几天试图找到它的底部。 甚至不记得它是试验错误还是拼凑多个网站或诸如此类的东西,但这是我遇到的唯一解决方案。 希望能帮助到你。