Turn on usb ports when connecting to printer

I've got my printer controller, the power adapter for the Pi and the power for the speakers all plugged into a three-port power strip. And that in turn is plugged into a TP-Link Smart Plug. Me: "computer, turn on the 3D printer" and there you go.