Hi Phil,<br><br>Every DisplayLink device should have a unique USB PID/serial number combo. So you'd need both in your id string, but then that sounds like a good strategy for uniquely identifying a particular device.<br>
<br>Thanks for raising this issue of ownership of devices between drivers and apps! libdlo doesn't really try to deal with this system-wide yet. Also very interested in hearing how precedents might guide us. <br><br>
It may be these type of devices are somewhat unique in that they're, in a sense, mostly stateless. Just screens to scribble on. Assuming we want to allow for uses other than through X, we do need to have some concepts of current ownership and end-user intent about the purposes they want a screen to be dedicated to. But also don't want to make this too complex, as most people probably will be using through X eventually.<br>
<br>Thanks again,<br>Bernie<br><br><div class="gmail_quote">On Sat, May 23, 2009 at 7:50 AM, Phil Endecott <span dir="ltr"><<a href="mailto:spam_from_libdlo@chezphil.org">spam_from_libdlo@chezphil.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
This leaves the question of how to name the displays. We can see<br>
serial numbers in the dlo_devinfo_t; is this really a unique number?<br>
I.e. do the devices have PROMs in them? I've dismantled my dongle and<br>
it does indeed have an I2C PROM, but is this essential to the design or<br>
is it the first thing that el cheapo OEM will not implement? (I have<br>
seen other USB devices that present a default set of IDs if no PROM is attached.)<br>
<br>
I'm trying to think of precedents, but I can only think of things where<br>
the kernel and udev choose names; that doesn't apply to libusb stuff.<br>
What else uses libusb? How does SANE name devices?<br></blockquote></div><br>