|
Yes, what you describe is the correct and desired behaviour and you can use your hub without a modification.
iSense is a different thing, that has nothing to do with our situation ;-) As for the wake-up script, none is needed - the mini wakes up automatically whenever it detects any activity on the USB. What you need is something to put the Mac to sleep.
In QCar, we have two different options: we either watch a presence of particular device (typically the GPS receiver) or better its "file" in the /dev/ folder. Alternatively you can get the number of hubs on the bus using ioreg, something like this:
ioreg | grep -c USBHub
and whenever the result is lower than the expected number of hubs on your system (i.e. one or more are powered down), you go to sleep.
|