I go to System Monitor -> Processes and stop, not kill, gvfs-mtp-volume-monitor to prevent desktop and Caja mounting any MTP device. I found that some devices give communications errors trying to use MTP after unmount. An old Sony phone is OK just unmounting, but the Mars doesn't work.
So unless I want to use the file browser I now "pause" gvfs-mtp-volume-monitor by right click before connecting the USB cable. It will re-start if you kill it.
This is with the Mate Desktop. I found that other desktops on Mint do allow disabling mtp automount, but Mate / caja ignore the settings.
The problem is really Google/Android insistence on using MS MTP scheme instead of USB Mass Storage. I suspect to do with DRM, or just stupidity as all Linux gadgets without Android seem to use Mass Storage, not MTP.
MTP even on Windows may only allow one host program at a time.
|