openambitproject / openambit

openambit
280 stars 82 forks source link

Ambit2 not found unless compiled with hid-libusb.c instead of hid.c #72

Closed bwaldvogel closed 9 years ago

bwaldvogel commented 9 years ago

Device: Suunto Ambit2 Model: Duck F/W version: 2.0.9 Linux: Gentoo Tested openambit versions: master (383fff4) and 0.3 (a391e12).

My Ambit2 is not found by libambit. There is no warning, no error… nothing.

Out of brevity I replaced hid.c by hid-libusb.c in src/libambit/CMakeLists.txt which solves the issue and my watch is found!

svenstorp commented 9 years ago

Did you check the permissions of /dev/hidraw*? On most dists regular users do not have access to the hidraw devices by default. src/openambit/deployment/99-suunto-ambit.rules (installed to /etc/udev/rules.d/) should fix the permissions automatically.

bwaldvogel commented 9 years ago

Thanks for the hint. My kernel wasn't build with raw HID device support. We should probably add this dependency to the README.