flightgear
, neverball
, seemingly doomsday
but it freezes on launch/dev/uhid#
1)uhidd
by-default does /dev/uvhid#
, that can be symlinked to /dev/uhid#
or be done automatically with uhidd -H uhid
2)uhidd
has a lot of flags in examples for keyboard/mouse/consumer, but a joystick only needs the virtual generic interface with uhidd -h
(not all of -kmohs
)uhidd
has to unbind whatever kernel driver is on the joystick with uhidd -u
to take it overuhidd
takes control of the original /dev/input/event#
device, if it had evdev
or joystick
forced through xorg.conf
that driver gets unloaded according to Xorg.0.log
3)devd.conf
rule below to automate thissu -
pkg install 'uhidd'
dmesg | grep 'ugen'
uhidd -h -H 'uhid' -u '/dev/ugen0.6'
su -
pkg install 'uhidd'
ee '/usr/local/etc/devd/sidewinder-precision-pro-joystick-uhidd.conf'
notify 0 { match "type" "ATTACH"; match "ugen" "ugen[0-9]+.[0-9]+"; match "vendor" "0x045e"; match "product" "0x0008"; action "/usr/local/sbin/uhidd -h -H uhid -u /dev/$ugen"; };
ld-elf.so.1 %LIBCUSE%
error (thread)su -l
mv '/usr/local/etc/devd/uhidd-devd.conf' '/usr/local/etc/devd/uhidd-devd.conf~'
uhidd
(connect joystick within 3 seconds)su - root -c "sysctl 'hw.usb.usbhid.enable=0' && sleep 3 && sysctl 'hw.usb.usbhid.enable=1'"
flightgear
, neverball
, seemingly doomsday
but it freezes on launchuhid#
automaticallyevdev
to re-probe on the newly-created uhid#
device could work? there's a cdev
mention with devd -d
, but FlightGear shows buttons fine without joystick/evdev binding?uhidd
to solve; hence use the newer usbhid
driver with hw.usb.usbhid.enable=“1”
and uhidd
as-needed on game controllers