Re: [libdc] point grey chameleon
Capture and control API for IIDC compliant cameras
Brought to you by:
ddouxchamps,
gordp
From: Stefan R. <st...@s5...> - 2014-10-28 18:14:48
|
On Oct 28 Antoine Villeret wrote: > hello, > > just for reference, on Ubuntu (14.10), the Stefan's rule doesn't work for me. > > but this one works : > > ~~~~ > SUBSYSTEM=="usb", ATTR{idVendor}=="1e10", ATTR{idProduct}=="2005", > MODE:="0666", OWNER:="root", GROUP:="video", SYMLINK+="ptGreyCham" > ~~~~ > > note the double "==" between SUBSYSTEM and "usb". > > According to udev manual, "==" is for comparison and "=" is for assignment. > I guess it was a typo. > > Cheers > > A. Stock udev contains rules for FireWire cameras to which I contributed some time ago, but I never had a hand in the creation of rules for USB cameras. So, not sure what you mean by "Stefan's rule". :-) Furthermore, stock udev provides rules for FireWire cameras which (a) change the device node's group ownership to video (but do not grant access to the world) and (b) set access permission via ACL to the current console owner. Both mechanisms work e.g. in Gentoo Linux just like intended by upstream udev. I don't know whether Ubuntu 14.10 provides different rules and mechanisms. If merely changing group ownership to "video" is not sufficient for you, then I would guess that your user account is not member of the video group. On the other hand, if you grant access for all (mode 0666), then I would expect that there is no need to specify/ modify onwership. Unless udev does something really weird if mode but not owner/group is given. Anyhow, thanks for the heads-up. > do it yourself > http://antoine.villeret.free.fr > > > 2013-07-16 1:52 GMT+02:00 Stefan Richter <st...@s5...>: > > On Jul 15 Roger Oberholtzer wrote: > >> On Monday, July 15, 2013 02:53:38 PM Stefan Richter wrote: > >> > >> > Instead of MODE="0666" i.e. world-writable device file, something like > >> > GROUP="video" i.e. group-writable file with group ownership set to "video" > >> > is presumably a more common choice for this kind of hardware. > >> > >> Probably a combination of MODE and GROUP where the mode is set reasonably for > >> members of the GROUP: > >> > >> ,MODE=660, GROUP="video" > >> > >> and then assign users to the 'video' group as appropriate. > > > > IIRC, and as far as the contents of upstream udev rules imply, > > GROUP="foo" > > is a shorthand for > > GROUP="foo", MODE="0660" > > but I can't find explicit documentation about this at the moment. IOW if > > you specify GROUP, you need MODE only if you want something different from > > 660. (And if you don't specify GROUP, you need MODE only if you want > > something different from 600 of course.) -- Stefan Richter -=====-====- =-=- ===-- http://arcgraph.de/sr/ |