From: "Евгений Шишков" <evgen@svi.pp.ru>
To: hardware@lists.altlinux.org
Subject: Re: [Hardware] USB ZeroCD Modem
Date: Wed, 05 May 2010 09:12:54 +0400
Message-ID: <4BE0FE56.5010901@svi.pp.ru> (raw)
In-Reply-To: <t2qf7a739431005042143j2ee9052y4cdb6988de9e423d@mail.gmail.com>
05.05.2010 08:43, Eugene Prokopiev пишет:
> Здравствуйте!
>
> Требуется после втыкания модема переключить его из режима CD в режим
> собственно модема. Если модем при втыкании говорит про себя:
>
> usb 2-2: New USB device found, idVendor=12d1, idProduct=1446
>
> то сделать по идее нужно следующее:
>
> cat> /etc/udev/rules.d/100-huawei-e1550.rules<<EOF
> SUBSYSTEM=="usb", SYSFS{idProduct}=="1446", SYSFS{idVendor}=="12d1",
> RUN+="/usr/bin/usb_modeswitch"
> EOF
>
> И вот ничего не происходит :( Запущенный вручную usb_modeswitch
> отрабатывает как надо.
>
> Что я делаю неправильно?
Если сизиф, то немного не равильно рулька написана.
Посмотрите в логи. Там будет много ругани на SUBSYSTEM.
Теперь надо писать BUS=="usb"
Ну и помониторить с помощью udevadm
next prev parent reply other threads:[~2010-05-05 5:12 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-05 4:43 Eugene Prokopiev
2010-05-05 5:12 ` Евгений Шишков [this message]
2010-05-05 5:29 ` Eugene Prokopiev
2010-05-05 7:18 ` Евгений Шишков
2010-05-25 11:03 ` [Hardware] какой максимум оперативки на 64битах? Anatoliy Lisjutin
2010-05-25 11:40 ` ALT Linux User
2010-05-25 12:52 ` Anton Farygin
2010-05-25 13:23 ` Alexey I. Froloff
2010-05-25 23:31 ` Денис Смирнов
2010-06-03 10:21 ` Anatoliy Lisjutin
2010-06-03 14:38 ` Michael Shigorin
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=4BE0FE56.5010901@svi.pp.ru \
--to=evgen@svi.pp.ru \
--cc=hardware@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 hardware support
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/hardware/0 hardware/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 hardware hardware/ http://lore.altlinux.org/hardware \
hardware@altlinux.ru hardware@lists.altlinux.org hardware@lists.altlinux.ru hardware@lists.altlinux.com hardware@altlinux.org
public-inbox-index hardware
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.hardware
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git