A little better?? (/etc/udev/rules.d): The log file : 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 INFO: Timeout: value=10 ERROR: Usb read interrupt transfer failed (LIBUSB_ERROR_TIMEOUT). [in ../../src/usbhid.c:518 (dc_usbhid_read)] INFO: Read: size=0, data= INFO: Timeout: value=5000 DEBUG: cmd: size=1, data=10 INFO: Write: size=2, data=0110 ERROR: Usb read interrupt transfer failed (LIBUSB_ERROR_TIMEOUT). [in ../../src/usbhid.c:518 (dc_usbhid_read)] INFO: Read: size=0, data= ERROR: read interrupt transfer failed [in ../../src/scubapro_g2.c:78 (receive_data)] ERROR: Failed to receive the answer. [in ../../src/scubapro_g2.c:145 (scubapro_g2_transfer)]
Vincent Le lundi 13 novembre 2017 à 10:28 -0800, Linus Torvalds a écrit : > On Mon, Nov 13, 2017 at 9:51 AM, vavincavent <[email protected]> > 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@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 _______________________________________________ subsurface mailing list [email protected] http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
