Scubapro Aladin Square

Linus Torvalds torvalds at linux-foundation.org
Mon Nov 13 10:28:33 PST 2017


On Mon, Nov 13, 2017 at 9:51 AM, vavincavent <vavincavent at gmail.com> wrote:
> I have used scubapro_g2.c joined and this is the log :

This is the same udev rule problem:

> Subsurface: v4.7.4-1-g4d04f74312dc, built with libdivecomputer v0.6.0-
> devel-Subsurface-branch (7de3a549ee588fef4702ee9d894e390aca43950d)
> INFO: Open: vid=c251, pid=2006
> INFO: Open: interface=0, endpoints=81,02
> ERROR: Failed to open the usb device (LIBUSB_ERROR_ACCESS). [in ../../src/usbhid.c:392 (dc_usbhid_open)]

You simply don't have permissions to access that device.

So I have this for my G2 to make it world readable and writable:

  [torvalds at i7 ~]$ cat /usr/lib/udev/rules.d/91-scubapro-g2.rules

  SUBSYSTEM=="usb",ATTR{idVendor}=="2e6c",ATTR{idProduct}=="3201", MODE="0666"

(NOTE! That udev rule is _one_ line, maybe this email breaks it up).

You'll obviously have to update the ID to match the Aladin Square, and
you may have to make sure udev rules are reloaded and then plug in the
device again.

   udevadm control --reload-rules

Also, I'm not sure where Debian stretch puts the udev rules. I'm
running Fedora 26, so that /ust/lib/udev/rules.d/ directory is what I
use. But I think Debian may be using /lib/udev/rules.d, so you need to
check that.

            Linus


More information about the subsurface mailing list