Hi Jonathan,<br><br>Yea, that&#39;s a very fragile part of the scripts (relying on the details of the tree structure in /sys).  If anyone has a better suggestion, it&#39;s welcome!<br><br>What it&#39;s looking for is the devnum of the common hub that the keyboard, mouse, and display are all sitting off of.  With that, you&#39;ll see ls -lR /dev/usbseat showing kbd, mouse, display clustered together.<br>
<br>Guessing from your output, if you back up one more directory on those two lines (more more ../ ), I&#39;d guess you&#39;ll have it.<br><br>Thanks,<br>Bernie<br><br><div class="gmail_quote">On Tue, Sep 15, 2009 at 8:47 AM, Jonathan D. Proulx <span dir="ltr">&lt;<a href="mailto:jon@csail.mit.edu">jon@csail.mit.edu</a>&gt;</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;">Hi Bernie,<br>
<br>
Thanks for writing up the multiseat stuff!<br>
<br>
After a couple of issue with finding missing execute bits and a script<br>
I forgot to copy into play I think I&#39;ve narrowed the actual problem<br>
to:<br>
<br>
run_program: &#39;/bin/cat /sys//class/input/input12/mouse2/../../../../../devnum&#39;<br>
run_program: &#39;/bin/cat&#39; (stderr) &#39;/bin/cat: /sys//class/input/input12/mouse2/../../../../../devnum: No such file or directory&#39;<br>
<br>
presumably it wants to get to one of these:<br>
<br>
[jon@kvas multiseat-bits]$ find /sys/ -name devnum<br>
/sys/devices/pci0000:00/0000:00:1a.0/usb1/devnum<br>
/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/devnum<br>
/sys/devices/pci0000:00/0000:00:1a.1/usb2/devnum<br>
/sys/devices/pci0000:00/0000:00:1a.2/usb3/devnum<br>
/sys/devices/pci0000:00/0000:00:1a.7/usb4/devnum<br>
/sys/devices/pci0000:00/0000:00:1a.7/usb4/4-2/devnum<br>
/sys/devices/pci0000:00/0000:00:1a.7/usb4/4-2/4-2.2/devnum<br>
/sys/devices/pci0000:00/0000:00:1a.7/usb4/4-2/4-2.4/devnum<br>
/sys/devices/pci0000:00/0000:00:1d.0/usb5/devnum<br>
/sys/devices/pci0000:00/0000:00:1d.1/usb6/devnum<br>
/sys/devices/pci0000:00/0000:00:1d.2/usb7/devnum<br>
/sys/devices/pci0000:00/0000:00:1d.7/usb8/devnum<br>
/sys/devices/pci0000:00/0000:00:1d.7/usb8/8-3/devnum<br>
/sys/devices/pci0000:00/0000:00:1d.7/usb8/8-4/devnum<br>
/sys/devices/pci0000:00/0000:00:1d.7/usb8/8-4/8-4.3/devnum<br>
/sys/devices/pci0000:00/0000:00:1d.7/usb8/8-4/8-4.3/8-4.3.1/devnum<br>
/sys/devices/pci0000:00/0000:00:1d.7/usb8/8-4/8-4.3/8-4.3.3/devnum<br>
/sys/devices/pci0000:00/0000:00:1d.7/usb8/8-4/8-4.4/devnum<br>
/sys/devices/pci0000:00/0000:00:1d.7/usb8/8-5/devnum<br>
/sys/devices/pci0000:00/0000:00:1d.7/usb8/8-5/8-5.2/devnum<br>
<br>
But can&#39;t figure any number of ../ paths that will get there<br>
/sys//class/input/input12/mouse2/device/../devnum<br>
does exist<br>
<br>
but is apparently the wrong thing, switching the rules to use that<br>
gives me:<br>
<br>
ls -R /dev/usbseat/<br>
/dev/usbseat/:<br>
17  18  3<br>
<br>
/dev/usbseat/17:<br>
mouse<br>
<br>
/dev/usbseat/18:<br>
keyboard<br>
<br>
/dev/usbseat/3:<br>
display<br>
<br>
So the rules are getting triggered, but I&#39;m not sure what devnums we<br>
want to pull<br>
<br>
-Jon<br>
</blockquote></div><br>