<div dir="ltr"><div>In that case, yes, the two keyboards should be on different seats. You can use udev to determine the different seats.<br><br></div>Are you sure you don't want to use Wayland or another protocol where the compositor will already do all this logic for you?<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 17, 2014 at 8:38 AM, Stefanos A. <span dir="ltr"><<a href="mailto:stapostol@gmail.com" target="_blank">stapostol@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra">2014-07-17 14:20 GMT+02:00 Jasper St. Pierre <span dir="ltr"><<a href="mailto:jstpierre@mecheye.net" target="_blank">jstpierre@mecheye.net</a>></span>:<br>
<div class="gmail_quote"><div class="">

<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"><div><div><div><div><div><div><div><div>Why do you need to know which one is the "real" keyboard? Just listen to events from all of them. On my laptop, I also have six keyboards. They are:<br><br>



</div>
    Power Button<br></div>    Video Bus<br></div>    Sleep Button<br></div>    Integrated Camera<br></div>    AT Translated Set 2 keyboard (this is the actual "keyboard" keyboard)<br></div>    ThinkPad Extra Buttons<br>




<br></div>All of these are real keyboard devices that will send keyboard events if you try hard enough. If you get multiple keyboard devices on the same seat, you should treat all of them as equally valid and group them together into one virtual keyboard. Same thing with pointer devices.<br>


</div></div></blockquote></div><div><br>Why would the Video Bus and Integrated Camera be detected as a keyboard 
in the first place? Is this really the intended meaning for 
LIBINPUT_DEVICE_CAP_KEYBOARD? It may be a matter of semantics, but I would expect Integrated Camera to provide events under a separate cap, such as 
LIBINPUT_DEVICE_CAP_GENERIC.<br><br>For my use case, I need to be able to connect multiple keyboards and
 receive input from them independently. For example, in a two player 
co-op game, each player should be able to use his own keyboard to 
control his character.<br>
<br>Without knowing whether a given device is a "real" keyboard, how can I 
distinguish between e.g. the internal laptop keyboard and an external 
keyboard connected via USB? Do I need to create multiple seats? If so, how would I know how many seats to create, given that I don't know how many keyboards are there in the first place?<br></div></div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br>  Jasper<br>
</div>