From: Ruslandh <ruslandh@gmail.com>
To: devel@lists.altlinux.org
Subject: Re: [devel] Помогите разобраться с правилами udev
Date: Wed, 25 May 2022 16:57:19 +0300
Message-ID: <d8dae07f-3145-59fb-51df-24180c83ca60@gmail.com> (raw)
In-Reply-To: <9fb7f30c-413f-a75b-ab03-006b9393afb8@gmail.com>
[-- Attachment #1.1.1: Type: text/plain, Size: 1702 bytes --]
25.05.2022 00:03, Ruslandh пишет:
> 24.05.2022 22:00, Dmitriy Khanzhin пишет:
>> Предположу, что Ваш iPhone цепляется как PTP-камера.
>> Во всяком случае, по логу очень похоже.
>> Устройство создается? С какими правами?
>>
>
> Нет, не создаётся, для создания устройства , в теории нужны ещё пакеты
И всё-таки, как мне убедиться, что до правила udev доходит очередь ?
Создаю такой файл udev (для отладки)
# udev rules for setting correct configuration and pairing on tethered
iPhones
ATTR{idVendor}!="05ac", GOTO="ipheth_rules_end"
# Execute pairing program when appropriate
SUBSYSTEM=="usb", ENV{ID_V4L_PRODUCT}!="", ENV{COLORD_DEVICE}="0",\
ENV{COLORD_KIND}="", RUN+="echo "Yes"> /tmp/yes"
#ACTION=="add", SUBSYSTEM=="net", ENV{ID_USB_DRIVER}=="ipheth",\
SYMLINK+="iphone", RUN+="ipheth-pair"
LABEL="ipheth_rules_end"
Он будет отрабатывать echo "Yes"> /tmp/yes", если udev увидит
ATTR{idVendor}!="05ac"?
Тут нет ошибки ?
Хочу номер ему или уменьшить, или наоборот увеличить.
Потому, что у меня 2 варианта, почему не хватается айфон:
1. эта модель не поддерживается ядром, а с пакетом всё нормально.
2. правило udev должна иметь другой номер.
И надо понять, с чем я имею дело.
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 657 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
next prev parent reply other threads:[~2022-05-25 13:57 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-24 21:03 ` Ruslandh
2022-05-25 13:57 ` Ruslandh [this message]
2022-05-25 14:32 ` Ruslandh
2022-05-25 16:31 ` Vladislav Zavjalov
2022-05-25 16:46 ` Vladislav Zavjalov
2022-05-25 17:21 ` P X
2022-05-25 18:22 ` Vladislav Zavjalov
2022-05-25 19:37 ` P X
2022-06-01 19:48 ` Leonid Krivoshein
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=d8dae07f-3145-59fb-51df-24180c83ca60@gmail.com \
--to=ruslandh@gmail.com \
--cc=devel@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 Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git