Send Motion-user mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/motion-user
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Motion-user digest..."


Today's Topics:

   1. Re: Permanent assign cam order: video0 / video1 for       USB cam1
      / USB cam2 (stlth)


----------------------------------------------------------------------

Message: 1
Date: Sat, 19 Sep 2015 14:36:21 +0200
From: stlth <[email protected]>
Subject: Re: [Motion-user] Permanent assign cam order: video0 / video1
        for     USB cam1 / USB cam2
To: Motion discussion list <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"

Run udevadm for other cameras and check what is unique.
Perhaps this parameter ATTRS{serial}=="9H005586" will be the best to assign 
this device to /dev/videoX every time on boot.


Wiadomo?? napisana przez Mariusz Ciszewski <[email protected]> w dniu 
19 wrz 2015, o godz. 14:31:

> Thank you.
> 
> Hmm... In my case result is like below.
> Can I see similar string here?
> 
> 
> root@raspberrypi:~# udevadm info --name=/dev/video0 --attribute-walk
> 
> Udevadm info starts with the device specified by the devpath and then
> walks up the chain of parent devices. It prints for every device
> found, all possible attributes in the udev rules key format.
> A rule to match, can be composed by the attributes of the device
> and the attributes from one single parent device.
> 
>   looking at device 
> '/devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2.2/1-1.2.2.4/1-1.2.2.4:1.0/video4linux/video0':
>     KERNEL=="video0"
>     SUBSYSTEM=="video4linux"
>     DRIVER==""
>     ATTR{name}=="VF0540 Live! Cam Video IM/Video"
>     ATTR{debug}=="0"
>     ATTR{index}=="0"
> 
>   looking at parent device 
> '/devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2.2/1-1.2.2.4/1-1.2.2.4:1.0':
>     KERNELS=="1-1.2.2.4:1.0"
>     SUBSYSTEMS=="usb"
>     DRIVERS=="uvcvideo"
>     ATTRS{bInterfaceClass}=="0e"
>     ATTRS{iad_bFunctionClass}=="0e"
>     ATTRS{iad_bFirstInterface}=="00"
>     ATTRS{bInterfaceSubClass}=="01"
>     ATTRS{bInterfaceProtocol}=="00"
>     ATTRS{bNumEndpoints}=="01"
>     ATTRS{iad_bFunctionSubClass}=="03"
>     ATTRS{iad_bFunctionProtocol}=="00"
>     ATTRS{supports_autosuspend}=="1"
>     ATTRS{iad_bInterfaceCount}=="02"
>     ATTRS{bAlternateSetting}==" 0"
>     ATTRS{bInterfaceNumber}=="00"
>     ATTRS{interface}=="VF0540 Live! Cam Video IM/Video Chat"
> 
>   looking at parent device 
> '/devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2.2/1-1.2.2.4':
>     KERNELS=="1-1.2.2.4"
>     SUBSYSTEMS=="usb"
>     DRIVERS=="usb"
>     ATTRS{bDeviceSubClass}=="02"
>     ATTRS{bDeviceProtocol}=="01"
>     ATTRS{devpath}=="1.2.2.4"
>     ATTRS{idVendor}=="041e"
>     ATTRS{speed}=="480"
>     ATTRS{bNumInterfaces}==" 4"
>     ATTRS{bConfigurationValue}=="1"
>     ATTRS{bMaxPacketSize0}=="64"
>     ATTRS{busnum}=="1"
>     ATTRS{devnum}=="41"
>     ATTRS{configuration}==""
>     ATTRS{bMaxPower}=="128mA"
>     ATTRS{authorized}=="1"
>     ATTRS{bmAttributes}=="80"
>     ATTRS{bNumConfigurations}=="1"
>     ATTRS{maxchild}=="0"
>     ATTRS{bcdDevice}=="8314"
>     ATTRS{avoid_reset_quirk}=="0"
>     ATTRS{quirks}=="0x0"
>     ATTRS{serial}=="9H005586"
>     ATTRS{version}==" 2.00"
>     ATTRS{urbnum}=="14646312"
>     ATTRS{ltm_capable}=="no"
>     ATTRS{manufacturer}=="Creative Labs"
>     ATTRS{removable}=="unknown"
>     ATTRS{idProduct}=="4069"
>     ATTRS{bDeviceClass}=="ef"
>     ATTRS{product}=="VF0540 Live! Cam Video IM/Video Chat"
> 
>   looking at parent device 
> '/devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2.2':
>     KERNELS=="1-1.2.2"
>     SUBSYSTEMS=="usb"
>     DRIVERS=="usb"
>     ATTRS{bDeviceSubClass}=="00"
>     ATTRS{bDeviceProtocol}=="01"
>     ATTRS{devpath}=="1.2.2"
>     ATTRS{idVendor}=="1a40"
>     ATTRS{speed}=="480"
>     ATTRS{bNumInterfaces}==" 1"
>     ATTRS{bConfigurationValue}=="1"
>     ATTRS{bMaxPacketSize0}=="64"
>     ATTRS{busnum}=="1"
>     ATTRS{devnum}=="39"
>     ATTRS{configuration}==""
>     ATTRS{bMaxPower}=="100mA"
>     ATTRS{authorized}=="1"
>     ATTRS{bmAttributes}=="e0"
>     ATTRS{bNumConfigurations}=="1"
>     ATTRS{maxchild}=="4"
>     ATTRS{bcdDevice}=="0111"
>     ATTRS{avoid_reset_quirk}=="0"
>     ATTRS{quirks}=="0x0"
>     ATTRS{version}==" 2.00"
>     ATTRS{urbnum}=="28"
>     ATTRS{ltm_capable}=="no"
>     ATTRS{removable}=="unknown"
>     ATTRS{idProduct}=="0101"
>     ATTRS{bDeviceClass}=="09"
>     ATTRS{product}=="USB 2.0 Hub"
> 
>   looking at parent device '/devices/platform/bcm2708_usb/usb1/1-1/1-1.2':
>     KERNELS=="1-1.2"
>     SUBSYSTEMS=="usb"
>     DRIVERS=="usb"
>     ATTRS{bDeviceSubClass}=="00"
>     ATTRS{bDeviceProtocol}=="01"
>     ATTRS{devpath}=="1.2"
>     ATTRS{idVendor}=="1a40"
>     ATTRS{speed}=="480"
>     ATTRS{bNumInterfaces}==" 1"
>     ATTRS{bConfigurationValue}=="1"
>     ATTRS{bMaxPacketSize0}=="64"
>     ATTRS{busnum}=="1"
>     ATTRS{devnum}=="37"
>     ATTRS{configuration}==""
>     ATTRS{bMaxPower}=="100mA"
>     ATTRS{authorized}=="1"
>     ATTRS{bmAttributes}=="e0"
>     ATTRS{bNumConfigurations}=="1"
>     ATTRS{maxchild}=="4"
>     ATTRS{bcdDevice}=="0111"
>     ATTRS{avoid_reset_quirk}=="0"
>     ATTRS{quirks}=="0x0"
>     ATTRS{version}==" 2.00"
>     ATTRS{urbnum}=="38"
>     ATTRS{ltm_capable}=="no"
>     ATTRS{removable}=="removable"
>     ATTRS{idProduct}=="0101"
>     ATTRS{bDeviceClass}=="09"
>     ATTRS{product}=="USB 2.0 Hub"
> 
>   looking at parent device '/devices/platform/bcm2708_usb/usb1/1-1':
>     KERNELS=="1-1"
>     SUBSYSTEMS=="usb"
>     DRIVERS=="usb"
>     ATTRS{bDeviceSubClass}=="00"
>     ATTRS{bDeviceProtocol}=="02"
>     ATTRS{devpath}=="1"
>     ATTRS{idVendor}=="0424"
>     ATTRS{speed}=="480"
>     ATTRS{bNumInterfaces}==" 1"
>     ATTRS{bConfigurationValue}=="1"
>     ATTRS{bMaxPacketSize0}=="64"
>     ATTRS{busnum}=="1"
>     ATTRS{devnum}=="2"
>     ATTRS{configuration}==""
>     ATTRS{bMaxPower}=="2mA"
>     ATTRS{authorized}=="1"
>     ATTRS{bmAttributes}=="e0"
>     ATTRS{bNumConfigurations}=="1"
>     ATTRS{maxchild}=="3"
>     ATTRS{bcdDevice}=="0200"
>     ATTRS{avoid_reset_quirk}=="0"
>     ATTRS{quirks}=="0x0"
>     ATTRS{version}==" 2.00"
>     ATTRS{urbnum}=="49"
>     ATTRS{ltm_capable}=="no"
>     ATTRS{removable}=="unknown"
>     ATTRS{idProduct}=="9512"
>     ATTRS{bDeviceClass}=="09"
> 
>   looking at parent device '/devices/platform/bcm2708_usb/usb1':
>     KERNELS=="usb1"
>     SUBSYSTEMS=="usb"
>     DRIVERS=="usb"
>     ATTRS{bDeviceSubClass}=="00"
>     ATTRS{bDeviceProtocol}=="01"
>     ATTRS{devpath}=="0"
>     ATTRS{idVendor}=="1d6b"
>     ATTRS{speed}=="480"
>     ATTRS{bNumInterfaces}==" 1"
>     ATTRS{bConfigurationValue}=="1"
>     ATTRS{bMaxPacketSize0}=="64"
>     ATTRS{authorized_default}=="1"
>     ATTRS{busnum}=="1"
>     ATTRS{devnum}=="1"
>     ATTRS{configuration}==""
>     ATTRS{bMaxPower}=="0mA"
>     ATTRS{authorized}=="1"
>     ATTRS{bmAttributes}=="e0"
>     ATTRS{bNumConfigurations}=="1"
>     ATTRS{maxchild}=="1"
>     ATTRS{bcdDevice}=="0318"
>     ATTRS{avoid_reset_quirk}=="0"
>     ATTRS{quirks}=="0x0"
>     ATTRS{serial}=="bcm2708_usb"
>     ATTRS{version}==" 2.00"
>     ATTRS{urbnum}=="26"
>     ATTRS{ltm_capable}=="no"
>     ATTRS{manufacturer}=="Linux 3.18.11+ dwc_otg_hcd"
>     ATTRS{removable}=="unknown"
>     ATTRS{idProduct}=="0002"
>     ATTRS{bDeviceClass}=="09"
>     ATTRS{product}=="DWC OTG Controller"
> 
>   looking at parent device '/devices/platform/bcm2708_usb':
>     KERNELS=="bcm2708_usb"
>     SUBSYSTEMS=="platform"
>     DRIVERS=="dwc_otg"
>     ATTRS{hnp}=="HstNegScs = 0x0"
>     ATTRS{srp}=="SesReqScs = 0x1"
>     ATTRS{regvalue}=="invalid offset"
>     ATTRS{hsic_connect}=="HSIC Connect = 0x1"
>     ATTRS{guid}=="GUID = 0x2708a000"
>     ATTRS{mode}=="Mode = 0x1"
>     ATTRS{srpcapable}=="SRPCapable = 0x1"
>     ATTRS{regdump}=="Register Dump"
>     ATTRS{gpvndctl}=="GPVNDCTL = 0x00000000"
>     ATTRS{ggpio}=="GGPIO = 0x00000000"
>     ATTRS{hprt0}=="HPRT0 = 0x00001005"
>     ATTRS{wr_reg_test}=="Time to write GNPTXFSIZ reg 10000000 times: 2820 
> msecs (282 jiffies)"
>     ATTRS{driver_override}=="(null)"
>     ATTRS{hcd_frrem}=="HCD Dump Frame Remaining"
>     ATTRS{mode_ch_tim_en}=="Mode Change Ready Timer Enable = 0x0"
>     ATTRS{gnptxfsiz}=="GNPTXFSIZ = 0x01000306"
>     ATTRS{remote_wakeup}=="Remote Wakeup Sig = 0 Enabled = 0 LPM Remote 
> Wakeup = 0"
>     ATTRS{busconnected}=="Bus Connected = 0x1"
>     ATTRS{hcddump}=="HCD Dump"
>     ATTRS{gotgctl}=="GOTGCTL = 0x001c0001"
>     ATTRS{spramdump}=="SPRAM Dump"
>     ATTRS{grxfsiz}=="GRXFSIZ = 0x00000306"
>     ATTRS{gsnpsid}=="GSNPSID = 0x4f54280a"
>     ATTRS{gusbcfg}=="GUSBCFG = 0x00001700"
>     ATTRS{hptxfsiz}=="HPTXFSIZ = 0x02000406"
>     ATTRS{devspeed}=="Device Speed = 0x0"
>     ATTRS{fr_interval}=="Frame Interval = 0x1d4c"
>     ATTRS{rem_wakeup_pwrdn}==""
>     ATTRS{bussuspend}=="Bus Suspend = 0x0"
>     ATTRS{buspower}=="Bus Power = 0x1"
>     ATTRS{hnpcapable}=="HNPCapable = 0x1"
>     ATTRS{rd_reg_test}=="Time to read GNPTXFSIZ reg 10000000 times: 4870 
> msecs (487 jiffies)"
>     ATTRS{enumspeed}=="Device Enumeration Speed = 0x1"
>     ATTRS{inv_sel_hsic}=="Invert Select HSIC = 0x0"
>     ATTRS{regoffset}=="0xffffffff"
> 
>   looking at parent device '/devices/platform':
>     KERNELS=="platform"
>     SUBSYSTEMS==""
>     DRIVERS==""
> 
> root@raspberrypi:~#
> 
> 
> 2015-09-19 14:24 GMT+02:00 stlth <[email protected]>:
> udevadm info --name=/dev/videoXXX --attribute-walk
> 
> Wiadomo?? napisana przez Mariusz Ciszewski <[email protected]> w 
> dniu 19 wrz 2015, o godz. 14:22:
> 
>> Ok. But how can I get this string "046d_0825_77098E00" for all my USB 
>> cameras ?
>> 
>> Thank you and best regards
>> Mariusz
>> 
>> 2015-09-18 8:43 GMT+02:00 ?ydr?nas Urbonas <[email protected]>:
>> Yeah, I had same issue when on boot two cameras got unpredictable "video*" 
>> thus breaking motion configs.
>> So I used udev rule file to assign special names according to USB vendor 
>> ids, like this:
>> 
>> SUBSYSTEM=="video4linux", ENV{ID_SERIAL}=="046d_0991_DE4250F2", 
>> SYMLINK+="webcam0"
>> SUBSYSTEM=="video4linux", ENV{ID_SERIAL}=="046d_0825_77098E00", 
>> SYMLINK+="webcam1"
>> 
>> And then I put /dev/webcam0 into motion's config nad I'm then sure I use 
>> correct camera
>> 
>> HTH
>> 
>> On Thu, Sep 17, 2015 at 8:50 PM, Mariusz Ciszewski 
>> <[email protected]> wrote:
>> Hello.
>> 
>> Is it possible somehow to force:
>> 
>> /dev/video0 always for USB cam: 
>> Bus 001 Device 009: ID 041e:4052 Creative Technology, Ltd Live! Cam Vista IM
>>  
>> /dev/video1 always for USB cam:
>> Bus 001 Device 008: ID 041e:4069 Creative Technology, Ltd
>> 
>> How to prevent rondom X for /dev/vidX (a few USB webcams) after system 
>> bacames restarted? 
>> 
>> Is it possible to connect a few cameras the same type, e. g.
>> Bus 001 Device 008: ID 041e:4069 Creative Technology, Ltd
>> 
>> and keep proper association video0 / video1 / video2 for USB cam1 / USB cam2 
>> / USB cam3 ?
>> 
>> Thank you for any hints.
>> 
>> Best regards
>> Mariusz
>> 
>> ------------------------------------------------------------------------------
>> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
>> Get real-time metrics from all of your servers, apps and tools
>> in one place.
>> SourceForge users - Click here to start your Free Trial of Datadog now!
>> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
>> _______________________________________________
>> Motion-user mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/motion-user
>> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> 
>> _______________________________________________
>> Motion-user mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/motion-user
>> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
>> 
>> 
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Motion-user mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/motion-user
>> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
> 
> 
> ------------------------------------------------------------------------------
> 
> _______________________________________________
> Motion-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/motion-user
> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
> 
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Motion-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/motion-user
> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome

-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

------------------------------------------------------------------------------


------------------------------

_______________________________________________
Motion-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/motion-user


End of Motion-user Digest, Vol 112, Issue 10
********************************************

Reply via email to