-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256
On 2013-10-17 10:27, Ingo wrote:
Thanks for the suggestion!
I know this can be done with a relay but it's not doable in my
particular case. I really need to find out how to do this in
software.
Unbind and bind in /sys/bus/usb/drivers/... won't work either,
btw. I managed to turn the interface(s) off and on but not the
power supply. So the problem persists.
There is a maximum power setting that allows to specify the number
of mA but is tells me that I don't have permission (as root) to
make changes.
It's also not possible to unplug and replug the interfaces as they
are in a closed box.
there's a rather old post at stackoverflow [1], which seems to suggest
that the route to go would be a USB2 hub that allows power-switching.
oh, and i just tried to switch off my mouse, by doing:
# PROCPATH=$(lsusb \
| grep -i mouse \
| cut -f6 -d' ' \
| sed -e 's|:| |' \
| while read v p; do \
for vf in /sys/bus/usb/devices/*/*/idVendor; do \
dev=${vf%idVendor}; grep -w ${v} ${dev}/idVendor
1/dev/null grep -w ${p} ${dev}/idProduct 1/dev/null echo
${dev}; \
done; \
done)
# echo 0 ${PROCPATH}/power/autosuspend
# echo auto ${PROCPATH}/power/level
fmasdr
IOhannes
[1]
http://stackoverflow.com/questions/1163824/linux-usb-turning-the-power-on-and-off
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.15 (GNU/Linux)
Comment: Using GnuPG with Icedove - http://www.enigmail.net/
iQIcBAEBCAAGBQJSX8vIAAoJELZQGcR/ejb4JogP/3IPn87VyMibzrSfe8MwQycC
nz7u+o/pNDL1a5lSUVQ2jbLPnT/xwzsHY4iQmNioYmSPJqAX6/WyYYTwaBlk/P7X
kEZwD5xiByeT9KKcTyzYUr+dVn6OjMPTSKMFD3iogo0zLcrYFFcvXXHTZ4WB6hAh
zRPmvT0OlOnNIw24RGPvosbVuvgS6fI15ApSWMcqxTR0uAyDL+3yi2fAEULBtdDe
xr5UTHLwxo9kmCO9T0kVAXcd70GO477jrTkxDbucXz9FYpgIDhfh/8vn2GD2BymH
Z4HuXtJAR6nXtvZS3R2mFAXDzxv1wLlshoFarCv4pr0vv5PSVFVmmFWef2CmbU/Y
oqsQQfhtGh9G1Ymnbbtqp+oi8B2cPdwDTOG6U0twxTQrXzE9KVTRBsHKtIgbXDjC
12/hvyVQjNLPsH79NvVYSjaH+5g8vAHvqDVBMNYt+qozk8YJkrHBPcNNCA6q1TyD
nBH750SwMht5UhXiGYiE9z7h5y9o9CS39gyScyYnRxrBPBr2Glo6PdLQrMTjFtJO
5Mc/v4iXKhdA8OKZztpUbS3BWezvZH4gfKnkFtyUd3hgd3J3jW7BEha2gEbGXURi
YyGfIFA6ph68Tnl78yvDqyQ8uN10iVAp1JsjLtahfUtt2Cxx0pU2qJhIre0c3wkq
B8JQGRIsVqfJ8gQgjpjI
=jXty
-END PGP SIGNATURE-
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -
http://lists.puredata.info/listinfo/pd-list