From: Sergey Vlasov <vsu@altlinux.ru> To: community@lists.altlinux.org Subject: Re: [Comm] 2 одинаковые вебкамеры одновременно Date: Thu, 17 Mar 2011 16:56:37 +0300 Message-ID: <20110317135637.GE24590@newmaster.mivlgu.local> (raw) In-Reply-To: <201103171534.50340.ashen@novoross.multinex.ru> [-- Attachment #1: Type: text/plain, Size: 1446 bytes --] On Thu, Mar 17, 2011 at 03:34:50PM +0300, Шенцев Алексей Владимирович wrote: > Тут важен не дистриб, а важно решение. Моя идея привязать каждую камеру к > конкретному /dev/videoX, используя не только idVendor:idProduct, но и iSerial > устройства не прокатила. Может кто то подскажет более правильное решение? > #Logitech, Inc. Miscellaneous Device > SUBSYSTEM=="video4linux", BUS=="usb", SYSFS{idVendor}=="0x046d", SYSFS{idProduct}=="0x081b", SYSFS{iSerial}=="2 51ED41A0", NAME="video1", SYMLINK+="video1" > SUBSYSTEM=="video4linux", BUS=="usb", SYSFS{idVendor}=="0x046d", SYSFS{idProduct}=="0x081b", SYSFS{iSerial}=="2 BA8533A0", NAME="video2", SYMLINK+="video2" > #Logitech, Inc. Miscellaneous Device > SUBSYSTEM=="video4linux", BUS=="usb", SYSFS{idVendor}=="0x046d", SYSFS{idProduct}=="0x081b", SYSFS{iSerial}=="51ED41A0", NAME="video1", SYMLINK+="video1" > SUBSYSTEM=="video4linux", BUS=="usb", SYSFS{idVendor}=="0x046d", SYSFS{idProduct}=="0x081b", SYSFS{iSerial}=="BA8533A0", NAME="video2", SYMLINK+="video2" Как минимум, здесь неверно указано имя атрибута sysfs - iSerial вместо serial. Кроме того, вместо SYSFS уже давно надо писать ATTRS, вместо BUS в данном случае - SUBSYSTEMS. Наконец, менять NAME уже давно не рекомендуется - правильным способом сейчас считается добавление SYMLINK, причём имена не должны пересекаться с именами, назначаемыми ядром (можно, например, ставить что-то типа video-1, video-2). [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2011-03-17 13:56 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-03-17 7:24 Alisher Faizov 2011-03-17 12:09 ` Andriy Dobrovol`s`kii 2011-03-17 12:33 ` Alisher Faizov 2011-03-17 13:07 ` Alisher Faizov 2011-03-17 12:34 ` Шенцев Алексей Владимирович 2011-03-17 13:56 ` Sergey Vlasov [this message] 2011-03-17 14:04 ` Шенцев Алексей Владимирович 2011-03-17 13:30 ` [Comm] Adm Michael Shigorin 2011-03-17 19:00 ` Alisher 2011-03-18 11:49 ` [Comm] usb Michael Shigorin 2011-03-17 20:07 ` [Comm] 2 одинаковые вебкамеры одновременно Vladimir A. Svyatoshenko 2011-03-18 4:48 ` Alisher Faizov 2011-03-18 11:30 ` A.Kitouwaykin 2011-03-18 12:20 ` Шенцев Алексей Владимирович
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20110317135637.GE24590@newmaster.mivlgu.local \ --to=vsu@altlinux.ru \ --cc=community@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git