I want to keep USB port powered, but i need to disable data lines, so any plugged device won’t be enumerated/mounted/etc. Can’t find information about that, is it possible at all? Appreciate your help.
Search your favorite electronic gadget retailer for “USB condom”.
But not Amazon, or you might find this one
:
https://www.amazon.it/H-Customs-Chiavetta-Condom-condom-chiavetta/dp/B07DGZK3D5?th=1
which is not what you want. ![]()
Maybe "USB Data blocker" will return more serious hits
.
Cool guys don't use condoms. They just pull out.
I’m looking for software solution in configuration.
I believe you didn't get the implied answer to your question:
No, it isn't.
To put it otherwise:
USB connections are present or not.
If you want 100% certainty to disconnect data lines, you need hardware taking care of that.
Gadgets, charger cables only passing power lines, ... various possible solutions.