gud: set PATH connector property
Peter Stuge
peter at stuge.se
Tue Feb 28 12:31:34 UTC 2023
Hi Simon,
Simon Ser wrote:
> Would it be possible to set the PATH connector property based on the
> USB port used by gud?
Sadly not really easily.
The physical topology underneath each host controller is stable but
bus numbers (usb1, usb2 etc.) are not.
For onboard host controllers it could be possible to anchor to a
PCI or platform bus device.
But busses on expansion cards can't be recognized so easily without
using maybe serial numbers - which may be cloned across multiple
devices - we can't know.
> This would give user-space a persistent identifier for the connector:
> if the user plugs in a USB display on a given port, the PATH would be
> the same even if the machine rebooted or the displays were plugged in
> in a different order.
How about using e.g. the serial number of the gud USB device instead
of host topology, or maybe some other information from the panel
behind it?
//Peter
More information about the dri-devel
mailing list