You are not logged in.

#1 2015-02-24 16:04:23

silpertan
Member
Registered: 2014-01-30
Posts: 6

[Solved] Strange redraw behavior on second and third monitors

I have a Lenovo T430 laptop (with the Nvidia Optimus hardware). With the default X configuration (i.e. no xorg.conf or any files in /etc/X11/xorg.conf.d/), the builtin monitor of my laptop works fine. However, I am not able to see the two monitors connected to my docking station with xrandr:

Screen 0: minimum 8 x 8, current 1600 x 900, maximum 32767 x 32767
LVDS1 connected 1600x900+0+0 (normal left inverted right x axis y axis) 309mm x 174mm
   1600x900      60.01*+  40.00  
   1024x768      60.00  
   800x600       60.32    56.25  
   640x480       59.94  
VGA1 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)

However, I just learned that I can use the --setprovideroutputsource option to get those monitors to show up in xrandr:

[adavis@adavis-T430L ~]$ xrandr --listproviders
Providers: number : 2
Provider 0: id: 0xa2 cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 4 outputs: 3 associated providers: 0 name:Intel
Provider 1: id: 0x66 cap: 0x7, Source Output, Sink Output, Source Offload crtcs: 2 outputs: 5 associated providers: 0 name:nouveau
[adavis@adavis-T430L ~]$ xrandr --setprovideroutputsource nouveau Intel
[adavis@adavis-T430L ~]$ xrandr
Screen 0: minimum 8 x 8, current 1600 x 900, maximum 32767 x 32767
LVDS1 connected 1600x900+0+0 (normal left inverted right x axis y axis) 309mm x 174mm
   1600x900      60.01*+  40.00  
   1024x768      60.00  
   800x600       60.32    56.25  
   640x480       59.94  
VGA1 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
LVDS-1-2 disconnected (normal left inverted right x axis y axis)
VGA-1-2 disconnected (normal left inverted right x axis y axis)
DP-1-1 disconnected (normal left inverted right x axis y axis)
DP-1-2 connected (normal left inverted right x axis y axis)
   1920x1080     60.00 +
   1600x1200     60.00  
   1680x1050     59.88  
   1280x1024     75.02    60.02  
   1440x900      59.90  
   1280x960      60.00  
   1152x864      75.00  
   1024x768      75.08    70.07    60.00  
   832x624       74.55  
   800x600       72.19    75.00    60.32    56.25  
   640x480       75.00    72.81    66.67    60.00  
   720x400       70.08  
DP-1-3 connected (normal left inverted right x axis y axis)
   1920x1080     60.00 +
   1600x1200     60.00  
   1680x1050     59.88  
   1280x1024     75.02    60.02  
   1440x900      59.90  
   1280x960      60.00  
   1152x864      75.00  
   1024x768      75.08    70.07    60.00  
   832x624       74.55  
   800x600       72.19    75.00    60.32    56.25  
   640x480       75.00    72.81    66.67    60.00  
   720x400       70.08  
  1024x768 (0x71) 65.000MHz
        h: width  1024 start 1048 end 1184 total 1344 skew    0 clock  48.36KHz
        v: height  768 start  771 end  777 total  806           clock  60.00Hz
  800x600 (0x75) 40.000MHz
        h: width   800 start  840 end  968 total 1056 skew    0 clock  37.88KHz
        v: height  600 start  601 end  605 total  628           clock  60.32Hz
  800x600 (0x76) 36.000MHz
        h: width   800 start  824 end  896 total 1024 skew    0 clock  35.16KHz
        v: height  600 start  601 end  603 total  625           clock  56.25Hz
[adavis@adavis-T430L ~]$

Then I can enable them:

[adavis@adavis-T430L ~]$ xrandr --output DP-1-2 --auto --right-of LVDS1
[adavis@adavis-T430L ~]$ xrandr --output DP-1-3 --auto --right-of DP-1-2
[adavis@adavis-T430L ~]$

Unfortunately, when I drag any windows onto the two additional monitors (the builtin laptop monitor works fine throughout all of this), I get some really weird redraw behavior: I have to scroll or resize a window to see the new output, moving windows leaves fragments of the window behind, I can mouse over anything to see the latest output in small, mouse-sized chunks.

See this picture of my screen:  http://picpaste.com/E6sR62Ah.jpg

What is this kind of Xserver artifact called (that might help my googling)? Any ideas how to fix this?

Last edited by silpertan (2015-07-22 14:10:51)

Offline

#2 2015-07-22 14:09:48

silpertan
Member
Registered: 2014-01-30
Posts: 6

Re: [Solved] Strange redraw behavior on second and third monitors

By the way, this now works. I don't know what changed - I just tried it again, and whatever updates have happened since I posted this seem to have fixed the problem I was seeing. I can now use the standard, out-of-the-box X config, and the xrandr commands I was originally using now properly activate all three monitors (two DVI attached and the builtin laptop monitor).

Offline

Board footer

Powered by FluxBB