RandR 1.5 Monitors: "No monitor named '...'"

Aaron Plattner aplattner at nvidia.com
Wed Sep 14 16:16:13 UTC 2016


On 09/11/2016 08:29 PM, Nathan Schulte wrote:
> I'm using X.org w/ Debian Sid:
> 
>> nmschulte at desmas-l:~$ Xorg -version
>>
>> X.Org X Server 1.18.4
>> Release Date: 2016-07-19
>> X Protocol Version 11, Revision 0
>> Build Operating System: Linux 3.16.0-4-amd64 x86_64 Debian
>> Current Operating System: Linux desmas-l 4.7.0-1-amd64 #1 SMP Debian
>> 4.7.2-1 (2016-08-28) x86_64
>> Kernel command line: BOOT_IMAGE=/vmlinuz-4.7.0-1-amd64
>> root=UUID=f5ba8b5c-63aa-4a67-a07c-dd8d3297b2d3 ro quiet
>> i915.enable_dp_mst=0
>> Build Date: 06 September 2016  01:32:44PM
>> xorg-server 2:1.18.4-2 (https://www.debian.org/support)
>> Current version of pixman: 0.33.6
>>     Before reporting problems, check http://wiki.x.org
>>     to make sure that you have the latest version.
> 
> I'm playing around with the new Monitors support which came with RandR
> 1.5 support.  Thanks for this awesome kit; it's extremely useful, and
> awesome that there's full-stack support for this virtualization concept
> finally.
> 
> Anyway, it seems I've been able to make RandR very confused; I cannot
> delete a monitor which xrandr tells me exists:
> 
>> nmschulte at desmas-l:~$ xrandr --listmonitors
>> Monitors: 2
>>  0: +*eDP1 1920/340x1080/190+0+0  eDP1
>>  1: dp2_0 0/0x0/0+0+0
>> nmschulte at desmas-l:~$ xrandr --delmonitor dp2_0
>> No monitor named 'dp2_0'
>> nmschulte at desmas-l:~$ xrandr --setmonitor dp2_0 auto eDP1
>> output list eDP1
>> add monitor eDP1
>> output name eDP1
>> X Error of failed request:  BadValue (integer parameter out of range
>> for operation)
>>   Major opcode of failed request:  140 (RANDR)
>>   Minor opcode of failed request:  43 ()
>>   Value in failed request:  0x2c0
>>   Serial number of failed request:  43
>>   Current serial number in output stream:  44
>> nmschulte at desmas-l:~$ xrandr --listmonitors
>> Monitors: 2
>>  0: +*eDP1 1920/340x1080/190+0+0  eDP1
>>  1: dp2_0 0/0x0/0+0+0
> 
> Below is my setup; this is on a laptop with Intel Haswell / Intel HD
> 4600 graphics, as well as an AMD Radeon HD 8970M gpu (no heads; render
> offload hybrid graphics setup).
> 
>> nmschulte at desmas-l:~$ xrandr
>> Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
>> eDP1 connected 1920x1080+0+0 (normal left inverted right x axis y
>> axis) 340mm x 190mm
>>    1920x1080     60.00*+  59.93    50.00
>>    1680x1050     59.95    59.88
>>    1600x1024     60.17
>>    1400x1050     59.98
>>    1600x900      60.00
>>    1280x1024     60.02
>>    1440x900      59.89
>>    1280x960      60.00
>>    1368x768      60.00
>>    1360x768      59.80    59.96
>>    1152x864      60.00
>>    1280x720      60.00
>>    1024x768      60.00
>>    1024x576      60.00
>>    960x540       60.00
>>    800x600       60.32    56.25
>>    864x486       60.00
>>    640x480       59.94
>>    720x405       60.00
>>    640x360       60.00
>> 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)
>> HDMI3 disconnected (normal left inverted right x axis y axis)
>> VIRTUAL1 disconnected (normal left inverted right x axis y axis)
> 
> Also, can anyone explain the VIRTUAL1 output?  I wonder why it exists,
> what purpose it serves.
> 
> As well, this laptop "only" has three external output connectors; on
> mini DisplayPort, one DisplayPort, and one HDMI.  Do the two other HDMI
> outputs show in the list because the DisplayPort connectors are
> dual-mode DisplayPort / DisplayPort++?  If so, is there any part of the
> stack that can communicate this (to user-space)?  I don't believe it's
> possible to use the HDMI and DP outputs at the same time for a single
> DP++ port, so it's somewhat confusing that they're listed in the list,
> if what I'm suggesting above is the case.

There is supposed to be a "ConnectorNumber" property that you can use to
correlate these RandR outputs with physical connectors.

https://cgit.freedesktop.org/xorg/proto/randrproto/tree/randrproto.txt?id=cf3272717e08325f69bdbb759ab35cb4d1839fb7#n1931

E.g., on my system, these two are halves of the same mini-DisplayPort
connector:

DP-0 connected 1920x1200+0+960 (normal left inverted right x axis y
axis) 518mm x 324mm
	_MUTTER_PRESENTATION_OUTPUT: 0
	CscMatrix: 65536 0 0 0 0 65536 0 0 0 0 65536 0
	EDID:
		00ffffffffffff0010ac2ea055574a31
		1b12010380342078eeee91a3544c9926
		0f5054a54b00714f8180a94001010101
		010101010101283c80a070b023403020
		360006442100001a000000ff00473237
		3348383731314a575520000000fc0044
		454c4c20453234385746500a000000fd
		00384c1e5311000a202020202020000b
	BorderDimensions: 4
		supported: 4
	Border: 0 0 0 0
		range: (0, 65535)
	SignalFormat: TMDS
		supported: TMDS
	ConnectorType: DisplayPort
	ConnectorNumber: 1
	_ConnectorLocation: 1
   1920x1200     59.95*+
   1600x1200     60.00
   1280x1024     75.02    60.02
   1152x864      75.00
   1024x768      75.03    60.00
   800x600       75.00    60.32
   640x480       75.00    59.94

DP-4 disconnected (normal left inverted right x axis y axis)
	CscMatrix: 65536 0 0 0 0 65536 0 0 0 0 65536 0
	BorderDimensions: 4
		supported: 4
	Border: 0 0 0 0
		range: (0, 65535)
	SignalFormat: DisplayPort
		supported: DisplayPort
	ConnectorType: DisplayPort
	ConnectorNumber: 1
	_ConnectorLocation: 1

> Thanks.
> 
> -- 
> Nate



More information about the xorg mailing list