You are not logged in.

#1 2018-10-03 14:38:14

myerscc
Member
From: Stockholm, Sweden
Registered: 2018-09-24
Posts: 13

Using custom xrandr mode causes virtual display to go blank

I have a thinkpad x1 extreme with intel and nvidia integrated graphics, managing them with bumblebee and using the HDMI output with intel-virtual-output.

I am using an attached ultrawide display (3440x1440) and have tried this on regular 1920x1080 displays as well with no luck.

my current xrandr output with external display connected (after running intel-virtual-output and xrandr --output VIRTUAL3 --auto --above eDP1) is as such:

Screen 0: minimum 8 x 8, current 1920 x 1980, maximum 32767 x 32767
eDP1 connected primary 1920x1080+0+900 (normal left inverted right x axis y axis) 340mm x 190mm
   1920x1080     60.03 +  60.03*   59.93    47.99  
   1680x1050     59.95    59.88  
   1400x1050     59.98  
   1600x900      60.00    59.95    59.82  
   1280x1024     60.02  
   1400x900      59.96    59.88  
   1280x960      60.00  
   1368x768      60.00    59.88    59.85  
   1280x800      59.81    59.91  
   1280x720      59.86    60.00    59.74  
   1024x768      60.00  
   1024x576      60.00    59.90    59.82  
   960x540       60.00    59.63    59.82  
   800x600       60.32    56.25  
   864x486       60.00    59.92    59.57  
   640x480       59.94  
   720x405       59.51    60.00    58.99  
   640x360       59.84    59.32    60.00  
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
VIRTUAL2 disconnected (normal left inverted right x axis y axis)
VIRTUAL3 connected 1600x900+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1024x768      60.00  
   1600x900      59.82* 
   1400x900      59.88  
   1368x768      59.88    59.85  
   1280x800      59.91    59.81  
   1280x720      59.86    59.74  
   1024x576      59.90    59.82  
   960x540       59.82    59.63  
   864x486       59.92    59.57  
   VIRTUAL3.464-800x600  72.19  
   800x600       60.32    56.25  
   VIRTUAL3.467-800x450  59.82  
   VIRTUAL3.468-700x450  59.88  
   VIRTUAL3.469-684x384  59.88  
   VIRTUAL3.470-684x384  59.85  
   640x480       59.94  
   VIRTUAL3.472-640x400  59.98  
   VIRTUAL3.473-640x400  59.88  
   VIRTUAL3.474-640x360  59.86  
   VIRTUAL3.475-640x360  59.83  
   VIRTUAL3.476-512x384  60.00  
   VIRTUAL3.477-512x288  60.00  
   VIRTUAL3.478-512x288  59.92  
   VIRTUAL3.479-480x270  59.82  
   VIRTUAL3.480-480x270  59.63  
   VIRTUAL3.481-432x243  59.92  
   VIRTUAL3.482-432x243  59.57  
   VIRTUAL3.483-400x300  72.19  
   VIRTUAL3.484-320x240  60.05  
VIRTUAL4 disconnected (normal left inverted right x axis y axis)
VIRTUAL5 disconnected (normal left inverted right x axis y axis)

I used the following steps to add a new mode:

$ cvt 3440 1440 60.0
# 3440x1440 59.94 Hz (CVT) hsync: 89.48 kHz; pclk: 419.50 MHz
Modeline "3440x1440_60.00"  419.50  3440 3696 4064 4688  1440 1443 1453 1493 -hsync +vsync

$ xrandr --newmode "3440x1440_60.00"  419.50  3440 3696 4064 4688  1440 1443 1453 1493 -hsync +vsync

$ xrandr --addmode VIRTUAL3 "3440x1440_60.00"

That all seems to work and xrandr shows a new "3440x1440_60.00  59.94" line under VIRTUAL3. It also added the mode to VIRTUAL5 (which I'm not sure what VIRTUAL5 pertains to):

VIRTUAL5 disconnected (normal left inverted right x axis y axis)
  3440x1440 (0x1ec) 319.750MHz +HSync -VSync
        h: width  3440 start 3488 end 3520 total 3600 skew    0 clock  88.82KHz
        v: height 1440 start 1443 end 1453 total 1481           clock  59.97Hz

When I run this command:

xrandr --output VIRTUAL3 --mode "3440x1440_60.00" --above eDP1

the screen goes blank, all my i3 workspaces move onto the builtin display, and the mode disappears from VIRTUAL3 in xrandr.

I don't know what all the extra numbers in the modeline mean but I guess I'm probably getting something wrong about the display that causes it to fail. I've tried a few different modes with various refresh rates (including 59.82, the rate of the auto mode that works):

  3440x1440 (0x1ec) 319.750MHz +HSync -VSync
        h: width  3440 start 3488 end 3520 total 3600 skew    0 clock  88.82KHz
        v: height 1440 start 1443 end 1453 total 1481           clock  59.97Hz
  3440x1440_60.00 (0x1f2) 419.500MHz -HSync +VSync
        h: width  3440 start 3696 end 4064 total 4688 skew    0 clock  89.48KHz
        v: height 1440 start 1443 end 1453 total 1493           clock  59.94Hz
  3440x1440_59.82 (0x1f8) 418.250MHz -HSync +VSync
        h: width  3440 start 3696 end 4064 total 4688 skew    0 clock  89.22KHz
        v: height 1440 start 1443 end 1453 total 1493           clock  59.76Hz

Is there a way I can get more information about the connected display so I can use the correct modeline? Or is something else wrong with how I'm setting up the mode?

Last edited by myerscc (2018-10-03 15:26:16)

Offline

Board footer

Powered by FluxBB