Thanks for linking! This one is way more up to date with regards to compatible USB hubs. It credits the project in the OP:
>Original idea for this code was inspired by hub-ctrl.c by Niibe Yutaka: https://www.gniibe.org/development/ac-power-control-by-USB-h...