Import problems with Cobalt 2 on Fedora 21

Linus Torvalds torvalds at linux-foundation.org
Sun Feb 1 20:33:40 PST 2015


On Sun, Feb 1, 2015 at 7:36 PM, Matt Thompson <mathomp at gmail.com> wrote:
>
> I recently switched to Fedora 21 from Sabayon.  I added my user to the
> dialout group as that is the group for /dev/ttyS*.  All of the
> /dev/ttyS* devices have permissions 660.

The cobalt isn't a serial device, so the usual "dialout" thing won't
help. You need to make the USB device accessible so that libusb can
access it.

Generally that means a udev rule.

I don't know what the device ID's for Cobalt are, but for the Suunto
EON Steel I have something like this:

    [torvalds at i7 subsurface]$ cat /lib/udev/rules.d/91-suunto-eonsteel.rules
    SUBSYSTEM=="usb",ATTR{idVendor}=="1493",ATTR{idProduct}=="0030", MODE="0666"
    SUBSYSTEM=="usb",ATTR{idVendor}=="1493",ATTR{idProduct}=="0031",
MODE="0666"

which just makes the dang thing world read-write.  It would probably
be a better idea to make it do GROUP="dialout" and make it only group
read-write, but I couldn't be bothered.

(The reason for the two different product IDs? The EON Steel actually
goes into a magical "firmware update mode" where it has that 0031
product ID, while the 0030 ID is the normal USB ID for it)

I *think* udevd will just automatically notice new rules, but maybe I
remember incorrectly and you may have to do something like "udevadm
control --reload" after adding the new rule file.  No need to reboot
or anything quite that drastic.

Maybe we should try to gather those kinds of rules in the Linux
packages? I have no idea how to do udev rule packaging, though, so
somebody else would have to do it.

                        Linus


More information about the subsurface mailing list