External Monitor not working
Tofloor
poster avatar
skyyydeveloper
deepin
2017-09-17 07:56
Author
I have dual monitor setup and both monitors are plugged in seprate graphic card. My primary monitor is connected to Nvidia GT610 via VGA and secondary monitor is connected to Intel integrated graphics via VGA. During boot both monitors are working fine both monitors are showing deepin boot logo but once i reach login screen secondary monitor(which is connected to intel) goes black and doesn't show anything. I tries using intel graphic driver from drivers manager still no luck.

xrandr output

Screen 0: minimum 320 x 200, current 1366 x 768, maximum 16384 x 16384DVI-I-1 disconnected (normal left inverted right x axis y axis)HDMI-1 disconnected (normal left inverted right x axis y axis)VGA-2 connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 410mm x 230mm   1366x768      59.79*+   1280x720      60.00     1024x768      75.03    60.00     832x624       74.55     800x600       75.00    60.32    56.25     640x480       75.00    59.94     720x400       70.08
Later oon i switched nvidia driver from open-source to official nvidia driver and on boot both monitors are working but secondary monitors shows bbswitch: no suitable dsl call found. And now secondary monitor shows black screen with a dash cursor on left corner.

and xrandr ouput also changed

Screen 0: minimum 8 x 8, current 1366 x 768, maximum 16384 x 16384DVI-I-0 disconnected (normal left inverted right x axis y axis)VGA-0 connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 410mm x 230mm   1366x768      59.79*+   1280x720      60.00     1024x768      75.03    60.00     800x600       75.00    60.32    56.25     640x480       75.00    59.94  DVI-I-1 disconnected (normal left inverted right x axis y axis)HDMI-0 disconnected (normal left inverted right x axis y axis)
How can i use secondary display?





Reply Favorite View the author
All Replies
187******46
deepin
2017-09-18 21:08
#1
exec sudo deepin-feedback-cli,  then upload the generated tar package files please! thank you!
Reply View the author
skyyydeveloper
deepin
2017-09-19 07:47
#2
Here .. .....................
Reply View the author
skyyydeveloper
deepin
2017-09-21 08:55
#3
https://bbs.deepin.org/post/145638
exec sudo deepin-feedback-cli,  then upload the generated tar package files please! thank you!

Here......................
Reply View the author
melodyzou
deepin
2017-09-21 22:35
#4
Reply View the author
187******46
deepin
2017-09-22 00:27
#5
本帖最后由 caicai 于 2017-9-21 17:06 编辑

你安装了nvidia的闭源驱动,你安装nvidia-settings工具,看是否有办法。不然在不同的卡之间实现复制模式或扩展模式,默认的xorg配置现在还没有支持。在deepin-logo的时候显示正常,是因为kernel默认优先使用intel的集成显卡,锁=所以tty界面光标会显示在intel上。
如果只是用intel的卡,可以增加xorg.conf文件强制使用intel的显卡。
Reply View the author
187******46
deepin
2017-09-22 00:52
#6
你可以参考nvidia的官网设置尝试一下:  http://download.nvidia.com/XFree ... README/randr14.html
Using the NVIDIA Driver as a RandR 1.4 Output Source Provider

To use the NVIDIA driver as an RandR 1.4 output source provider, the X server needs to be configured to use the NVIDIA driver for its primary screen and to use the “modesetting” driver for the other graphics device. This can be achieved by placing the following in /etc/X11/xorg.conf:

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "nvidia"
    Inactive "intel"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID ""
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration"
EndSection

Section "Device"
    Identifier "intel"
    Driver "modesetting"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection
See “What is the format of a PCI Bus ID?” for information on determining the appropriate BusID string for your graphics card.

The X server does not automatically enable displays attached to the non-NVIDIA graphics device in this configuration. To do that, use the xrandr command line tool:

$ xrandr --setprovideroutputsource modesetting NVIDIA-0
$ xrandr --auto
This pair of commands can be added to your X session startup scripts, for example by putting them in $HOME/.xinitrc before running startx.

Use the

$ xrandr --listproviders
command to query the capabilities of the graphics devices. If the system requirements are met and the X server is configured correctly, there should be a provider named NVIDIA-0 with the Source Output capability and one named modesetting with the Sink Output capability. If either provider is missing or doesn't have the expected capability, check your system configuration.


Synchronized RandR 1.4 Outputs

When running against X.Org X server with video driver ABI 23 or higher, synchronization is supported with compatible drivers. At the time of writing, synchronization is compatible with the “modesetting” driver with Intel devices on Linux version 4.5 or newer. If all requirements are met, synchronization will be used automatically.

X.Org X server version 1.19 or newer is required to support synchronization. Without synchronization, displays are prone to “tearing”. See Caveats for details.

If synchronization is being used but is not desired, it can be disabled with:

$ xrandr --output --set "RIME Synchronization" 0
and re-enabled with:

$ xrandr --output --set "RIME Synchronization" 1
See Vblank syncing for information on how OpenGL applications can synchronize with sink-provided outputs.
Reply View the author
melodyzou
deepin
2017-09-26 01:30
#7
@caicai thinks that you have installed nvidia closed source driver.   The default xorg configuration is not supported yet between different cards to achieve replication mode or extended mode. Could you install nvidia-settings tool to see if there is a way to fix that?  It is normal In the deepin-logo page, because the default kernel default use intel integrated graphics, lock = tty interface cursor will be displayed on the intel.
If you just use the intel card, you can add xorg.conf file to mandatory use of intel graphics card.
Reply View the author