Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Am I the idiot? #7

Open
tbnygnyy opened this issue Feb 19, 2024 · 0 comments
Open

Am I the idiot? #7

tbnygnyy opened this issue Feb 19, 2024 · 0 comments

Comments

@tbnygnyy
Copy link

Hello - I downloaded hubpower.c and compiled with:
gcc -o hubpower hubpower.c - and it compiled ok.
Here is what I get when I use it:
wolff@wolff:/Documents/install/hubpower$ lsusb
Bus 001 Device 003: ID 0a5c:5801 Broadcom Corp. BCM5880 Secure Applications Processor with fingerprint swipe sensor
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 004: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 004: ID 0781:5575 SanDisk Corp. Cruzer Glide
Bus 003 Device 003: ID 2357:0604 TP-Link TP-Link UB500 Adapter
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
wolff@wolff:
/Documents/install/hubpower$ ./hubpower 0781:5575 power off
Usage: hubpower busnum:devnum power {portnum (on|off)} ...
hubpower busnum:devnum reset {portnum (on|off)} ...
hubpower busnum:devnum enable {portnum (on|off)} ...
hubpower busnum:devnum status
hubpower busnum:devnum bind
wolff@wolff:/Documents/install/hubpower$ ./hubpower 0781:5575 power on
Usage: hubpower busnum:devnum power {portnum (on|off)} ...
hubpower busnum:devnum reset {portnum (on|off)} ...
hubpower busnum:devnum enable {portnum (on|off)} ...
hubpower busnum:devnum status
hubpower busnum:devnum bind
wolff@wolff:
/Documents/install/hubpower$ ./hubpower 0781:5575 power
Usage: hubpower busnum:devnum power {portnum (on|off)} ...
hubpower busnum:devnum reset {portnum (on|off)} ...
hubpower busnum:devnum enable {portnum (on|off)} ...
hubpower busnum:devnum status
hubpower busnum:devnum bind
wolff@wolff:~/Documents/install/hubpower$ ./hubpower 0781:5575 status
Usage: hubpower busnum:devnum power {portnum (on|off)} ...
hubpower busnum:devnum reset {portnum (on|off)} ...
hubpower busnum:devnum enable {portnum (on|off)} ...
hubpower busnum:devnum status
hubpower busnum:devnum bind

Seems to always give me the help menu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant