From: "A.Kitouwaykin" <cetus@newmail.ru>
To: hardware@lists.altlinux.org
Cc: shigorin@gmail.com, hardware@lists.altlinux.org
Subject: Re: [Hardware] несколько вопросов по uvcvideo
Date: Mon, 31 Jan 2011 13:55:49 +0300
Message-ID: <20110131135549.439c9a17.cetus@newmail.ru> (raw)
In-Reply-To: <20110127202601.GY21594@osdn.org.ua>
On Thu, 27 Jan 2011 22:26:01 +0200
Michael Shigorin wrote:
> On Thu, Jan 27, 2011 at 12:10:33PM +0300, A.Kitouwaykin wrote:
> > Как того же достичь в Линукс?
>
> /sys/bus/usb/devices/*/power/autosuspend ?
>
Ага. Кое-что накопал.
Камера A4TECH PK-836MJ представляется 4 под-устройствами.
$ cat /sys/bus/usb/devices/1-7.1/power/autosuspend
2
$ cat /sys/bus/usb/devices/1-7.1:1.{0,1,2,3}/power/autosuspend
cat: /sys/bus/usb/devices/1-7.1:1.0/power/autosuspend: No such file or directory
cat: /sys/bus/usb/devices/1-7.1:1.1/power/autosuspend: No such file or directory
cat: /sys/bus/usb/devices/1-7.1:1.2/power/autosuspend: No such file or directory
cat: /sys/bus/usb/devices/1-7.1:1.3/power/autosuspend: No such file or directory
# cat /sys/bus/usb/devices/1-7:1.{0,1,2,3}/supports_autosuspend
1
1
0
0
То есть похоже на то, что камера поддерживает autosuspend очень
частично. И похоже на то, что с видео связаны только первые два
подустройства, а оставшиеся отвечают за микрофон.
Немного другая камера, A4TECH PK-333E, представляется только двумя
подустройствами, оба поддерживают autosuspend, и все отключается само.
И, кстати, и при работе существенно меньше потребляет электричества.
Остались два вопроса:
1) как автоматически прописать в power/control auto вместо on?
2) можно ли вообще отключить неиспользуемые подустройства с тем,
чтобы остальное autosuspend-илось? В смысле - автоматически.
Учить матчасть в части udev?
--
Китайкин Анатолий Константинович
ОАО "Радиоавионика", СПб
prev parent reply other threads:[~2011-01-31 10:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-27 9:10 A.Kitouwaykin
2011-01-27 9:20 ` A.Kitouwaykin
2011-01-27 20:26 ` Michael Shigorin
2011-01-31 10:55 ` A.Kitouwaykin [this message]
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=20110131135549.439c9a17.cetus@newmail.ru \
--to=cetus@newmail.ru \
--cc=hardware@lists.altlinux.org \
--cc=shigorin@gmail.com \
/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