<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2014-07-17 14:57 GMT+02:00 Jasper St. Pierre <span dir="ltr"><<a href="mailto:jstpierre@mecheye.net" target="_blank">jstpierre@mecheye.net</a>></span>:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I don't see a benefit for running directly on a Linux console.<br><br>I don't have any examples of using udev on me at the moment, but Weston should have a few.<br>


</div></blockquote><div><br></div><div>Thanks for your help so far.<br><br>The benefit applies to applications running on limited hardware such as Raspberry Pi; specialized media applications that do not require a desktop environment, such as XMBC; and applications that can benefit from tighter timing, such as emulators. It's not generally useful, but there is interest in making this work.<br>


<br><div class="gmail_extra"><div class="gmail_quote"><div>I am currently reading the documentation on <a href="http://www.freedesktop.org/wiki/Software/systemd/multiseat/" target="_blank">multiseat on freedesktop.org</a> and trying to understand how that applies to my use case. <br>


</div><div><br>"loginctl
 list-seats" returns a single seat ("seat0") no matter how many I 
keyboards I have connected (internal, internal + external, internal + 2 
external). Same thing happens with mice - it appears that all input devices are assigned to seat0 by default.<br><br></div><div>According to the documentation, "Assignment of hardware devices to seats is managed inside the udev database, via settings on the devices." IF I understand correctly, this means that only the system administrator can change the device-seat assignments. This makes perfect sense in a multi-user / multi-seat environment, but I don't think it actually covers my use-case which is a single-user system where two people want to play a game together for half an hour.<br>


<br></div><div>When reading through libinput.h, I see references to "physical seats", which I understand to be seat names as seen in loginctl, and "logical seats" which sounds very close to the way I am treating input devices inside my library. However, although I can retrieve the name of a logical seat, I don't see how I would go about assigning devices to logical seats: (a) there is not "libinput_assign_device_to_logical_seat" API; (b) even if there was, I am back to the original problem, namely how to decide which devices to assign to each logical seat.<br>


</div><div><br>As far as I can tell, libinput *does* take my use case into account. I think what I am missing is a key piece of information on how to make everything fit together. I'll check the weston source again, maybe there is something hiding there. (Or maybe someone has an idea on how to make this work?)<br>


</div></div></div></div></div></div></div>