[PATCH randrproto] Add a "GUID" property
Aaron Plattner
aplattner at nvidia.com
Tue May 7 14:01:17 PDT 2013
These things actually exist in the real world now:
http://accessories.us.dell.com/sna/productdetail.aspx?sku=225-4429
http://accessories.us.dell.com/sna/productdetail.aspx?sku=320-9567
and most ridiculously,
http://accessories.us.dell.com/sna/productdetail.aspx?sku=225-4201
Once this is a real, specified property, I'll probably want to add
special handling of it in xrandr:
DP-3.8 connected primary 2560x1080+0+0 (normal left inverted right x
axis y axis) 673mm x 284mm
_GUID: 16 -34 -112 112 0 4 -36 38 -81 78 -30 27 0 0 0 22
On 06/12/2012 12:32 PM, Aaron Plattner wrote:
> This property represents the globally-unique identifier of the connected
> display, if one is available.
>
> Signed-off-by: Aaron Plattner <aplattner at nvidia.com>
> Reviewed-by: Andy Ritger <aritger at nvidia.com>
> ---
> randr.h | 1 +
> randrproto.txt | 12 ++++++++++++
> 2 files changed, 13 insertions(+)
>
> diff --git a/randr.h b/randr.h
> index 9cb9403..53e2660 100644
> --- a/randr.h
> +++ b/randr.h
> @@ -183,5 +183,6 @@ typedef unsigned long XRandrModeFlags;
> #define RR_PROPERTY_CLONE_LIST "CloneList"
> #define RR_PROPERTY_BORDER "Border"
> #define RR_PROPERTY_BORDER_DIMENSIONS "BorderDimensions"
> +#define RR_PROPERTY_GUID "GUID"
>
> #endif /* _RANDR_H_ */
> diff --git a/randrproto.txt b/randrproto.txt
> index e90b1cd..2190540 100644
> --- a/randrproto.txt
> +++ b/randrproto.txt
> @@ -1856,6 +1856,17 @@ doesn't handle a mandatory property correctly.
> 2 = left/right and top/bottom borders can be specified independently
> 4 = all four borders can be specified independently
>
> + "GUID" aka RR_PROPERTY_GUID
> + Type: INTEGER
> + Format: 8
> + Num items: 16
> + Flags: Immutable
> + Range/List: -
> +
> + Some display devices, such as DisplayPort 1.2 devices, have globally
> + unique identifiers. When such an identifier is available, this property
> + contains its raw bytes.
> +
>
> 9.2 Properties introduced with version 1.2 of the RandR extension
>
> @@ -1889,6 +1900,7 @@ Property Immutable Mandatory since
> ──────── ───────── ───────────────
> Border yes not mandatory
> BorderDimensions yes: static not mandatory
> +GUID yes not mandatory
>
> ❧❧❧❧❧❧❧❧❧❧❧
>
>
--
Aaron
More information about the xorg-devel
mailing list