[Spice-devel] [PATCH linux vdagent] Add POC for getting xrandr output from monitor ID

Frediano Ziglio fziglio at redhat.com
Tue Oct 30 09:32:35 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?
> 

Should be, the T460p is not that old.

What does "ls -l /sys/class/drm" say? Looks like the
system has 2 card and this is the second. Maybe 2 drivers
(like fb and no fb) for the same card? Is a docking station
attached?

> > 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
> 
> 

In DRM connector_type_id match with name only if is the first card with this connector_type.

Frediano


More information about the Spice-devel mailing list