I'm gonna give it a try. Thank you! > i would suggest you to use udev rules, it is quite easy. > > for example here is a line i used for arduino to appear as > /dev/arduino_SERIALNO: > > KERNEL=="ttyUSB*", SUBSYSTEMS=="usb", ATTRS{product}=="FT232R USB > UART", > ATTRS{idProduct}=="6001", ATTRS{idVendor}=="0403", > SYMLINK+="arduino.port%n arduino_$attr{serial} > arduino_$attr{serial}.port%n", > RUN+="/bin/stty --file=/dev/arduino_$attr{serial}.port%n" > > if i remeber correct [hid] wants the minor numbers, right? > > read some udev rules example and you will figure ..if you are really in > trouble - give us a shout. > > hint: use `udevadm control --reload-rules` after you add or modified > something in /etc/udev/rules.d/ > (btw, this the new udev command syntax, they keep changing it .. > the older one was like --reload_rules and before it was something else > too ;) so beware! ) > > so using udev rules the particular device will always have the same > symlink in "/dev/". it up to you what you wanna name it .. > > > > > > Hi, > > does anybody know if I can receive the stdout that prints to the pd console? > > I am trying to get the ID number of an hid gamecontroller / joystick > > automatically at startup. I tried sending "dmesg | grep Joystick" to the > > shell object which gives me the "hidraw" ID but not the one that Pd uses. > > > > [print( - [hid] gives me the correct IDs but I don't know how to get these > > into pd. > > > > Alternatively I could use the "hidraw" ID if I would know how to open the > > [hid] device with that ID. > > > > Any help appreciated! > > > > Ingo
_______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list