Dear all,
I am trying to configure devd(8) or devfs(8) rules to always create a specific /dev name for a couple of devices (gamepads/game controllers). I would like for them to always have the same /dev name that way one is not picked up instead of the other if I have them both plugged in. Is this possible? The order seems to vary depending on which order I plug then in as. They are either ugen0.2 or ugen0.3. The names don't matter to me, but it would be very nice to have them setup in a way that I can use them both in the same program by switching between them, as some tasks are easier done with one vs the other. Or perhaps be able to have it set up so that 2 people can use them in the same program as two different controllers, like in a game. However, currently with them switching between the two /dev names/links I have to remove them or be very careful in which order they get plugged in as.
I have hit Google, and even found a few forum threads that I thought would be helpful including:
http://forums.freebsd.org/viewtopic.php?f=39&t=18454
https://forums.freebsd.org/viewtopic.php?t=31551
But seeing as I do not have xf86-input-joystick installed and everything seems to work perfectly, except for the naming, I would like to find an alternative since some of the programs I run that I would like to use them with without worrying about the order use only SDL and other libraries and run from the console (without requiring xorg to run).
I have tried creating configurations for devd(8) but it never seems to work quite right.
The output of
Any help on this would be very appreciated.
Sincerely,
pauline123
I am trying to configure devd(8) or devfs(8) rules to always create a specific /dev name for a couple of devices (gamepads/game controllers). I would like for them to always have the same /dev name that way one is not picked up instead of the other if I have them both plugged in. Is this possible? The order seems to vary depending on which order I plug then in as. They are either ugen0.2 or ugen0.3. The names don't matter to me, but it would be very nice to have them setup in a way that I can use them both in the same program by switching between them, as some tasks are easier done with one vs the other. Or perhaps be able to have it set up so that 2 people can use them in the same program as two different controllers, like in a game. However, currently with them switching between the two /dev names/links I have to remove them or be very careful in which order they get plugged in as.
I have hit Google, and even found a few forum threads that I thought would be helpful including:
http://forums.freebsd.org/viewtopic.php?f=39&t=18454
https://forums.freebsd.org/viewtopic.php?t=31551
But seeing as I do not have xf86-input-joystick installed and everything seems to work perfectly, except for the naming, I would like to find an alternative since some of the programs I run that I would like to use them with without worrying about the order use only SDL and other libraries and run from the console (without requiring xorg to run).
I have tried creating configurations for devd(8) but it never seems to work quite right.
The output of
lsusb
tells me that one of the devices have vendor ID of 0x0079 and product ID of 0x0006. I was unable to find the serial number.Any help on this would be very appreciated.
Sincerely,
pauline123