Reply To: Water Drain

Home Forums AR Sandbox Forum Water Drain Reply To: Water Drain

#103755
peggyfenner
Participant

Hey there,

My long reply has gone missing.

I cannot get the buttons to work. I bought the Delcom quad switch. I programmed it on the Windows box. I can get the lights to go on and off but the device itself is not being recognized by the system as I keep getting the error message “Ignoring tool binding sectino Water Tool due to exception Unknown device ButtonBox.

peggy@AugmentedRealityTable /etc/udev/rules.d $ uname -a
Linux AugmentedRealityTable 4.8.0-58-generic #63~16.04.1-Ubuntu SMP Mon Jun 26 18:08:51 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

peggy@AugmentedRealityTable /etc/udev/rules.d $ lsusb | grep Delcom
Bus 001 Device 003: ID 0fc5:b080 Delcom Engineering

peggy@AugmentedRealityTable ~/.config/Vrui-4.2/Applications $ pwd; cat SandboxButtons.cfg
/home/peggy/.config/Vrui-4.2/Applications
section Vrui
section Desktop
inputDeviceAdapterNames (MouseAdapter, HIDAdapter)

section HIDAdapter
inputDeviceAdapterType HID
inputDeviceNames (ButtonBox)

section ButtonBox
name ButtonBox
deviceVendorProductId 0fc5:b080
endsection
endsection

section Tools
section DefaultTools
section WaterTool
toolClass GlobalWaterTool
bindings ((ButtonBox, Button1, Button2))
endsection
endsection
endsection
endsection
endsection

peggy@AugmentedRealityTable ~/.config/Vrui-4.2/Applications $ cat SARndbox.cfg
section Vrui
section Desktop
section MouseAdapter
mouseIdleTimeout 5.0
endsection

section Window
windowFullscreen true
endsection

section Tools
section DefaultTools
section WaterTool
toolClass GlobalWaterTool
bindings ((Mouse, 1, 2))
endsection
endsection
endsection
endsection
endsection
peggy@AugmentedRealityTable ~/.config/Vrui-4.2/Applications $

Command running from the console:
./bin/SARndbox -uhm -fpv -rer 20 50 -mergeConfig /home/peggy/.config/Vrui-4.2/Applications/SandboxButtons.cfg -vruiVerbose

It seems that udev isn’t bringing into the system as a HID device and I cannot figure out why.

I made this file:
peggy@AugmentedRealityTable /etc/udev/rules.d $ pwd; cat 70-Sandbox.rules
/etc/udev/rules.d
SUBSYSTEMS==”usb”, ATTRS{idVendor}==”0fc5″, ATTRS{idProduct}==”b080″, GROUP:=”users”

I see it showing up in the syslog file:
Oct 2 12:05:20 AugmentedRealityTable upowerd[1797]: (upowerd:1797): UPower-Linux-WARNING **: treating change event as add on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:0FC5:B080.0001

peggy@AugmentedRealityTable /var/log $ ls -l /sys/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:0FC5:B080.0001
total 0
-r–r–r– 1 root root 4096 Oct 2 13:35 modalias
drwxr-xr-x 2 root root 0 Oct 2 13:35 power
-r–r–r– 1 root root 4096 Oct 2 13:35 report_descriptor
lrwxrwxrwx 1 root root 0 Oct 2 12:46 subsystem -> ../../../../../../../bus/hid
-rw-r–r– 1 root root 4096 Oct 2 12:46 uevent

I watch it being read in by the udevadm command. The permissions seem ok. I can’t find any obvious documentation on how to maybe force the SUBSYSTEM to be hid.. My next step is to strace the processes to see if anything obvious comes up but any help would be greatly appreciated.

I tried to run the program as root proper and I still get the Unknown Device error.

Thanks so much,
Peggy Fenner

Comments are closed.