[Spice-devel] [PATCH linux vdagent] Add POC for getting xrandr output from monitor ID
Gerd Hoffmann
kraxel at redhat.com
Tue Oct 30 06:45:10 UTC 2018
> > > 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
More information about the Spice-devel
mailing list