Linux: disbale USB without disabling power
- by Ergot
TLDR
I want toggle between the following usages of a usb-port via the terminal:
use like a normal usb-port
only supply energy to charge
Story
I recently got me something like a magna doodle that can save your drawings to pdf, which can be moved to your computer via usb afterwards.
Now the thing is that you can't save anything while it's plugged in.
Because it's the only way to charge it, it bugs me that I can't find a software solution and laziness I want to keep it plugged in and toggle the connection to the computer only when needed.
I noticed that it's charging and usable when it is plugged in and the computer is shut down or suspened. So I guess that there's a way to do it.
Tech info
computer: ThinkPad X201
Linux Kernel: 3.14.5-1-ARCH
"Magna doodle": Boogie Board Sync