USB Power Control for GLi routers?

The main intention of this topic is to verify the right way to control the USB 2.0 output power (off | on) in Gli mini routers with GPIO

  1. First I read the Howto guide from and tried the commands for GPIO6 (in case of the AR150 hardware): echo 0 | echo 1 > /sys/class/gpio/gpio6/value but I got the error: -ash: can't create /sys/class/gpio/gpio6/value: nonexistent directory

  2. Then I found in this forum the way to control the USB Power through the led brightness value :
    echo 0 | echo 255 > /sys/devices/platform/leds-gpio/leds/gl_ar150:usbpow/brightness
    (in bold the related led label for usb power with syntax *:usbpow, which depends on each model)
    These two commands worked :slight_smile:

    However I have two questions:
    Is the USB control always mapped to the led brightness value? for all GLi routers ?
    Does the new MT300N-V2 have USB power control too ?


To power on | off USB power i found that this works well:

echo 0 | echo 1 > /sys/devices/platform/ahb/ahb:apb/18040000.gpio/gpiochip0/gpio/usb-phy/value