1 (edited by nozombian 2013-06-24 21:03:04)

Topic: how to turn usb power off

Hi, is it possible to control usb powering from openwrt? I have tp-link tl-wr842nd. I tried some linux tips, but nothing does work from openwrt sad

If anyone is interested why: Many usb devices such as 3g modems or scanner are behaving strange sometimes and it helps to disconnect and connect them again (or powering them off and on), which would solve a lot of issues, now remotely impossible. Reboot itself does not necessarily power off the usb, so it is not solution.

Re: how to turn usb power off

On a 703n I do like this

ON
root@OpenWrt:/# echo 1 >/sys/class/gpio/gpio8/value


OFF
root@OpenWrt:/# echo 0 >/sys/class/gpio/gpio8/value

3 (edited by nozombian 2013-06-28 09:53:11)

Re: how to turn usb power off

Halelujah! Five stars reply, thank you very much! Only it is gpio6 on wr842nd. How do you know that? yikes I googled a lot, but have not found a line about that.

Re: how to turn usb power off

Feel free to update the wiki from time to time:

http://wiki.openwrt.org/doc/faq/after.installation#how.do.i.turn.usb.power.off

Re: how to turn usb power off

kirschwasser wrote:

Feel free to update the wiki from time to time:

Done ;-)
http://wiki.openwrt.org/toh/tp-link/tl-mr3420#turn.usb.power.off

Netgear WNR854T (ARM Marvell Orion CPU 500MHz, Marvell 88W8361P mini-PCI STA only, 8/32MB) - trunk r17427 since 09/09/09 to 06-06-12 GLOD
TP-LINK TL-WR741ND v1.9 (Atheros AR7240 CPU 350MHz, Atheros AR9285 Chipset, 4/32MB) - trunk r23281 since 10/10/10
TP-LINK TL-MR3420 v1.1, TL-MR3220 v1.2 - trunk r25302 since 11/11/11
TP-LINK TL-WR842ND v1.0, TL-WR1043ND v1.8 - 12.09-rc1 since 12/12/12