john9527
Part of the Furniture
I'll take a look....RT-AC68U using John's fork also doesn't work.
Code:# hub-ctrl -v Segmentation fault
I'll take a look....RT-AC68U using John's fork also doesn't work.
Code:# hub-ctrl -v Segmentation fault
admin@Router:/tmp/home/root# hub-ctrl -v
Hub #0 at BUS:DEV 002:001
USB VEND:PROD: 1d6b:0001
Hub Port Status: (2)
Port 1: 0000.0100 power
Port 2: 0000.0100 power
Hub #1 at BUS:DEV 001:001
USB VEND:PROD: 1d6b:0002
INFO: individual power switching.
WARN: Port indicators are NOT supported.
Hub Port Status: (2)
Port 1: 0000.0100 power
Port 2: 0000.0503 highspeed power enable connect
Fix sent....RT-AC68U using John's fork also doesn't work.
admin@RT-AC68P-xxxx:/tmp/home/root# hub-ctrl -v
Hub #0 at BUS:DEV 001:001
USB VEND:PROD: 1d6b:0003
Hub Port Status: (1)
Port 1: 0000.8103 5gbps enable connect
Hub #1 at BUS:DEV 002:001
USB VEND:PROD: 1d6b:0002
INFO: individual power switching.
WARN: Port indicators are NOT supported.
Hub Port Status: (2)
Port 1: 0000.0100 power
Port 2: 0000.0503 highspeed power enable connect
Hub #2 at BUS:DEV 003:001
USB VEND:PROD: 1d6b:0001
Hub Port Status: (2)
Port 1: 0000.0100 power
Port 2: 0000.0100 power
admin@RT-AC68P-xxxx:/tmp/home/root#
hub-ctrl -v
Hub #0 at BUS:DEV 006:001
USB VEND:PROD: 1d6b:0001
Hub Port Status: (1)
Port 1: 0000.0100 power
Hub #1 at BUS:DEV 005:001
USB VEND:PROD: 1d6b:0001
Hub Port Status: (1)
Port 1: 0000.0100 power
Hub #2 at BUS:DEV 004:001
USB VEND:PROD: 1d6b:0002
INFO: individual power switching.
WARN: Port indicators are NOT supported.
Hub Port Status: (1)
Port 1: 0000.0100 power
Hub #3 at BUS:DEV 003:001
USB VEND:PROD: 1d6b:0002
INFO: individual power switching.
WARN: Port indicators are NOT supported.
Hub Port Status: (1)
Port 1: 0000.0100 power
Hub #4 at BUS:DEV 001:001
USB VEND:PROD: 1d6b:0002
INFO: individual power switching.
WARN: Port indicators are NOT supported.
Hub Port Status: (0)
Hub #5 at BUS:DEV 002:001
USB VEND:PROD: 1d6b:0003
INFO: individual power switching.
WARN: Port indicators are NOT supported.
Hub Port Status: (1)
Port 1: 0000.0203 5gbps power enable connect
I can't believe there are 6 hubs!!RT-AX56U rather verbose compared to other models such as RT-AC68U etc.????
Code:hub-ctrl -v Hub #0 at BUS:DEV 006:001 USB VEND:PROD: 1d6b:0001 Hub Port Status: (1) Port 1: 0000.0100 power Hub #1 at BUS:DEV 005:001 USB VEND:PROD: 1d6b:0001 Hub Port Status: (1) Port 1: 0000.0100 power Hub #2 at BUS:DEV 004:001 USB VEND:PROD: 1d6b:0002 INFO: individual power switching. WARN: Port indicators are NOT supported. Hub Port Status: (1) Port 1: 0000.0100 power Hub #3 at BUS:DEV 003:001 USB VEND:PROD: 1d6b:0002 INFO: individual power switching. WARN: Port indicators are NOT supported. Hub Port Status: (1) Port 1: 0000.0100 power Hub #4 at BUS:DEV 001:001 USB VEND:PROD: 1d6b:0002 INFO: individual power switching. WARN: Port indicators are NOT supported. Hub Port Status: (0) Hub #5 at BUS:DEV 002:001 USB VEND:PROD: 1d6b:0003 INFO: individual power switching. WARN: Port indicators are NOT supported. Hub Port Status: (1) Port 1: 0000.0203 5gbps power enable connect
hub-ctrl -v
Hub #0 at 003:001
INFO: individual power switching.
WARN: Port indicators are NOT supported.
Hub Port Status:
Port 1: 0000.0503 highspeed power enable connect
Port 2: 0000.0100 power
My guess is that all you are doing is changing one of the attributes of the USB interface. You're not actually turning off the 5v power available at the USB socket. So if your fan is just a 2-wire fan plugged into the socket nothing will happen.but when I do hub-ctrl -P 2 or 1, nothing happens
RT-N66W:/tmp/home/root# hub-ctrl -v
Hub #0 at BUS:DEV 001:066
USB VEND:PROD: 058f:6254
INFO: ganged switching.
Hub Port Status: (4)
Port 1: 0000.0301 lowspeed power connect
Port 2: 0000.0100 power
Port 3: 0000.0100 power
Port 4: 0000.0503 highspeed power enable connect
Hub #1 at BUS:DEV 002:001
USB VEND:PROD: 1d6b:0001
Hub Port Status: (2)
Port 1: 0000.0100 power
Port 2: 0000.0100 power
Hub #2 at BUS:DEV 001:001
USB VEND:PROD: 1d6b:0002
INFO: individual power switching.
WARN: Port indicators are NOT supported.
Hub Port Status: (2)
Port 1: 0000.0503 highspeed power enable connect
Port 2: 0000.0000
hub-ctrl -h 2 -P 1 -p 0
Sorry for the late replyThanks for sharing.
Tried these tip on my old RT-N66W (Merlin LTS Fork 374.43_43E6j9527) with small external USB plugged fan, sadly no luck:
Bash:RT-N66W:/tmp/home/root# hub-ctrl -v Hub #0 at BUS:DEV 001:066 USB VEND:PROD: 058f:6254 INFO: ganged switching. Hub Port Status: (4) Port 1: 0000.0301 lowspeed power connect Port 2: 0000.0100 power Port 3: 0000.0100 power Port 4: 0000.0503 highspeed power enable connect Hub #1 at BUS:DEV 002:001 USB VEND:PROD: 1d6b:0001 Hub Port Status: (2) Port 1: 0000.0100 power Port 2: 0000.0100 power Hub #2 at BUS:DEV 001:001 USB VEND:PROD: 1d6b:0002 INFO: individual power switching. WARN: Port indicators are NOT supported. Hub Port Status: (2) Port 1: 0000.0503 highspeed power enable connect Port 2: 0000.0000
But, then i switching power like this:
Bash:hub-ctrl -h 2 -P 1 -p 0
Nothing happens, fan still running and port status not changed, tried all ports and hubs. However i can change port status on Hub#0, checking with -v command, but i have no idea what is this hub for and where it locates.
hub-ctrl
cannot control the power of the 0th hub, and whatever the model is. But with routers like RT-AC68U, the USB ports are controlled by other hub, not hub 0, which is why it only works on some routers and not others.echo "0" > /sys/power/bpcm/usb/zone0/power
hub-ctrl
, it causes all ports, including the ethernet ports, to power cycle. So basically there must be a way to make it work, just haven't been found.# hub-ctrl -P 1 && hub-ctrl -P 1 -p 1
# hub-ctrl -v
Hub #0 at BUS:DEV 003:001
USB VEND:PROD: 1d6b:0001
Hub Port Status: (2)
Port 1: 0000.0100 power
Port 2: 0000.0100 power
Hub #1 at BUS:DEV 002:001
USB VEND:PROD: 1d6b:0002
INFO: individual power switching.
WARN: Port indicators are NOT supported.
Hub Port Status: (2)
Port 1: 0000.0503 highspeed power enable connect
Port 2: 0000.0100 power
Hub #2 at BUS:DEV 001:001
USB VEND:PROD: 1d6b:0003
Hub Port Status: (1)
Port 1: 0000.0100
Asus customer service told me don't connect a usb fan to the router, as this could cause the router to overload and even damage the capacitors.
But I think they will no objection to using a phone adapter to power the fan.
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!