Re: [PATCH linux vdagent] Add POC for getting xrandr output from monitor ID

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > > drm		xrandr
> > > ---		------
> > > DP-4		DP-3-1
> > > DP-5		DP-3-2
> > > DP-6		DP-3-3
> > 
> > What hardware is this?
> 
> This is a Lenovo T460p laptop with intel graphics. 

Hmm, havn't seen this before.
Has this multiple display devices?
/me wonders what DP-1 ... DP-3 (drm) are ...

Is that hardware supported by gvt?
Do you get those names inside a guest (with gvt) too?

> driver as well. At least I see the following code in
> drmmmode_create_name():
> 
>     if (koutput->connector_type >= ARRAY_SIZE(output_names))
>         snprintf(name, 32, "Unknown%d-%d", koutput->connector_type, koutput->connector_type_id);
>     else if (pScrn->is_gpu)
>         snprintf(name, 32, "%s-%d-%d", output_names[koutput->connector_type], pScrn->scrnIndex - GPU_SCREEN_OFFSET + 1, koutput->connector_type_id);
>     else
>         snprintf(name, 32, "%s-%d", output_names[koutput->connector_type], koutput->connector_type_id);
> 
> The name format within the "if (pScrn->is_gpu)" block seems similar,
> though I'm not sure if that branch applies in this situation.

Yes, seems so.  koutput->connector_type_id differs between drm and
xrandr too.  Strange.

cheers,
  Gerd

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]