新笔记本Deepin 15.4外接显示器不显示及解决
Tofloor
poster avatar
lfol
deepin
2017-08-23 01:05
Author
首先说明下,本人Windows 20年使用经验,Linux系统几乎小白。


笔记本:HP 银河战队 i7/8G/GTX 960M

装Deepin 感觉不错,但有一个问题,外接显示器无法显示,各种找资料,解决时间3天。

1、驱动阶段
      刚开始怀疑是驱动问题,包括装Bumblebee、装开源驱动、装闭源驱动,等等,都无法解决(很多驱动按百度的步骤来,装了不管用),当然也和个人水平有关,估计部分驱动是没装对的。

2、配置文件阶段
    很多教程,把显示配置指向xorg.conf 设置,但是参照配置后,不是无效就是导致系统黑屏,无奈放弃。


3、Ubuntu阶段
     装起Ubuntu,发现系统直接可以外屏输出。学着复制xorg.conf、继续装闭源驱动等等,但最终仍解决不了。

4、xrandr阶段
     无意中,xrandr,发现在Ubuntu中,显示的是 edp-1 hdmi-1 hdmi-1-2 三个输出,在Deepin中,只有edp-1 hdmi-1,感觉应该是驱动问题,又折腾了好久,最后在某篇教程中提到 xrandr --setprovideroutputsource   modesetting NVIDIA-0  
加以改变,在系统默认驱动的情况下,直接调用
xrandr --setprovideroutputsource  nouveau  modesetting  

解决了3天的问题。。。。。
现在我还比较纳闷的是,为什么是xrandr --setprovideroutputsource  nouveau  modesetting   而不是xrandr --setprovideroutputsource  modesetting nouveau  

另外,各位高手指点下,如何设置到开机配置上,不用每次都手动切换。  

Reply Favorite View the author
All Replies
tmacy
deepin
2017-08-23 02:13
#1
man xrandr 中有说明     
  --setprovideroutputsource provider source
              Set source as the source of display output images for provider.  This is only  possible  if  source
              and  provider have the Source Output and Sink Output capabilities, respectively.  If source is 0x0,
              then provider is disconnected from its current output source.
至于为啥,我也不是很清楚:
另外:
xrandr --listproviders
Providers: number : 1
Provider 0: id: 0x46 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 4 associated providers: 0 name:modesetting
可以看provider有哪些。
如果要加入开机启动,建议写个desktop文件到$HOME/.config/autostart中,可以在启动器中选个应用,右键添加开机启动,当成一个示例参考一下。

Reply View the author
lfol
deepin
2017-08-23 05:11
#2
https://bbs.deepin.org/post/144542
man xrandr 中有说明     
  --setprovideroutputsource provider source
              Set source as th ...

谢谢,开机启动已完成。
Reply View the author
zhengyc9090
deepin
2017-09-15 01:41
#3
你好楼主,我的本本和你的是一个型号的,但是外接显示器也是显示不了
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
eDP-1 connected primary 1920x1080+0+0 (0x45) normal (normal left inverted right x axis y axis) 344mm x 194mm
        Identifier: 0x42
        Timestamp:  2185904
        Subpixel:   unknown
        Gamma:      1.0:1.0:1.0
        Brightness: 1.0
        Clones:   
        CRTC:       0
        CRTCs:      0 1 2
        Transform:  1.000000 0.000000 0.000000
                    0.000000 1.000000 0.000000
                    0.000000 0.000000 1.000000
                   filter:
        EDID:
                00ffffffffffff0030e4320500000000
                001a01049522137803a1c59459578f27
                20505400000001010101010101010101
                0101010101012e3680a070381f403020
                350058c210000019222480a070381f40
                3020350058c210000019000000fd0028
                3c43430e010a20202020202000000002
                000c47ff0a3c6e1c151f6e0000000015
        scaling mode: Full aspect
                supported: None, Full, Center, Full aspect
        Broadcast RGB: Automatic
                supported: Automatic, Full, Limited 16:235
        audio: auto
                supported: force-dvi, off, auto, on
  1920x1080 (0x45) 138.700MHz -HSync -VSync *current +preferred
        h: width  1920 start 1968 end 2000 total 2080 skew    0 clock  66.68KHz
        v: height 1080 start 1083 end 1088 total 1111           clock  60.02Hz
  1920x1080 (0x46) 92.500MHz -HSync -VSync
        h: width  1920 start 1968 end 2000 total 2080 skew    0 clock  44.47KHz
        v: height 1080 start 1083 end 1088 total 1111           clock  40.03Hz
HDMI-1 disconnected (normal left inverted right x axis y axis)
        Identifier: 0x43
        Timestamp:  2185904
        Subpixel:   unknown
        Clones:   
        CRTCs:      0 1 2
        Transform:  1.000000 0.000000 0.000000
                    0.000000 1.000000 0.000000
                    0.000000 0.000000 1.000000
                   filter:
        aspect ratio: Automatic
                supported: Automatic, 4:3, 16:9
        Broadcast RGB: Automatic
                supported: Automatic, Full, Limited 16:235
        audio: auto
                supported: force-dvi, off, auto, on

这是我的xrandr显示的信息 麻烦传授点经验啊
Reply View the author
lfol
deepin
2017-11-02 17:15
#4
https://bbs.deepin.org/post/144542
你好楼主,我的本本和你的是一个型号的,但是外接显示器也是显示不了
这是我的xrandr显示的信息 麻烦传授点 ...

试试干净系统下执行

xrandr --listproviders
看下有几个provider,如果有多个,那么可能是不同显示口在不同显卡上,运行
xrandr --setprovideroutputsource 0 1

xrandr --setprovideroutputsource 1 0
做下链接,就可以看到所有硬件接口,然后
xrandr --output xxxxx --auto
设置输出
Reply View the author