ganeshrvel / openmtp

OpenMTP - Advanced Android File Transfer Application for macOS
https://openmtp.ganeshrvel.com
MIT License
3.75k stars 139 forks source link

Just a blank screen or MTP device is not recognized #276

Open ganeshrvel opened 1 year ago

ganeshrvel commented 1 year ago

Solution for Issue: Blank Screen or MTP Device Not Recognized

If you're encountering a blank screen or your MTP device is not being recognized, follow these steps:

  1. Reboot Your Mac (IMPORTANT): Simply restarting your machine has resolved the issue for many users.
  2. Close Preview App on macOS Ventura: If you are using macOS Ventura or above, try quitting the Preview app. Read more here.
  3. Quit Conflicting Apps Completely and Relaunch OpenMTP:
  4. Uninstall Samsung Watch Related Drivers: If you have any Samsung watch related drivers installed, uninstall them. Read more here.
  5. Check for Applications Locking USB Ports: Some applications might lock onto the USB port once they detect a USB drive. Check if any active apps require USB access, which could be causing the issue.
  6. Disable Hotplug Detection: In OpenMTP, disable the Hotplug detection from the Settings. Reconnect your phone and tap on the Refresh button.
  7. Enable File Transfer on Your Samsung Phone: Ensure that you have enabled file transfer and accepted the "Enable MTP data access" prompt on your Samsung phone.
  8. Uninstall Samsung Switch: For some users, uninstalling Samsung Switch has helped resolve the issue. GitHub Issue.
pencilcheck commented 1 year ago

I noticed sometimes your cable has to be higher quality, otherwise the device wouldn't be recognized as well.

logikonline commented 1 year ago

Following the above worked but I also had to use Kalam-Mode for Samsung Tablets

poetnerd commented 1 year ago

I will try these steps, but I am having trouble determining precisely how to "quit completely" the running Dropbox and Google Drive processes. Do I just use Activity Monitor and stop them? Seems pretty nasty.

Note that I did a debug startup and got this: (On M2Pro Mac running the Apple Silicon version.) Mac-mini:Google wdc$ "/Applications/OpenMTP.app/Contents/MacOS/OpenMTP" --remote-debugging-port=6363

DevTools listening on ws://127.0.0.1:6363/devtools/browser/493c4e5f-55d0-4614-8334-96bc2a99b198
objc[4011]: Class WebSwapCGLLayer is implemented in both /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/Frameworks/libANGLE-shared.dylib (0x21e422fe0) and /Applications/OpenMTP.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libGLESv2.dylib (0x107a513c8). One of the two will be used. Which one is undefined.
Error returned: <dictionary: 0x1df4d0980> { count = 1, transaction: 0, voucher = 0x0, contents =
    "XPCErrorDescription" => <string: 0x1df4d0b18> { length = 18, contents = "Connection invalid" }
}
2023/05/24 16:03:15 OpenSession failed: LIBUSB_ERROR_NOT_FOUND; attempting reset
2023/05/24 16:03:20 OpenSession failed: LIBUSB_ERROR_NOT_FOUND; attempting reset
2023/05/24 16:03:20 OpenSession failed: LIBUSB_ERROR_NOT_FOUND; attempting reset
Checking for update
Update for version 3.2.10 is not available (latest version: 3.2.10, downgrade is disallowed).
sampumon commented 1 year ago

For me it worked to just reopen OpenMTP. On first open I had Android File Transfer installed, it kept popping its error window, uninstalled it but OpenMTP didn't connect until I closed & reopened it.

Also once I had buggy connection on Pixel 7, adb did not work, rebooting the Pixel fixed that.

ravanscafi commented 1 year ago

It might help someone else: if it's open, close Adobe Lightroom.

Thanks for the awesome app!

poetnerd commented 1 year ago

I had all but given up on getting OpenMTP to work. But today I got it working.

I'm so used to extra drives and startup apps not having controls I can touch that I did not realize that Google Drive and DropBox had Quit menu commands.

Mind you, Google drive refused to stop, and gave me the spinning beach ball the first time round, but a restart of my Mac unstuck things, and the Quit menu command worked.

So yes, a system restart is needed.

I also had an Android FileSync Login Item that I had to remove from System Settings -> General -> Login Items.

So I finally understood the instructions, followed them, and got OpenMTP moving files around.

Thank you, Ganesh for writing this. Sorry I didn't understand the instructions.

vincentneo commented 12 months ago

To add, I've realised that any apps that does image importing (probably via PTP) such as Photos or Adobe Lightroom Classic should be closed before using OpenMTP.

Hopefully the above info helps someone out!

ganeshrvel commented 12 months ago

🚀

tueksta commented 11 months ago

Closing Preview did it for me. Weird thing.

artfarmer commented 11 months ago

Besides disabling the disturbing apps on your Mac – If nothing of the above helps you can try to wipe the caches, for that you need to start your phone in recovery mode:

This helped twice in my case (last time after the update to One UI 6.0)

FrjnnMnacAAK2Wt

alyfreym commented 10 months ago

It might help someone else: if it's open, close Adobe Lightroom.

Thanks for the awesome app!

Works for me. Closing Lightroom on PC/MAC fix this problem. I think it is related all app that have file transfer functionality

Dnoam1959 commented 7 months ago

Nothing helps . All steps has been taken , all is updated to last versions , all cables are fit for purpose.cannot get hooked to the app. Apple MacBook Pro M1 14.4 S23 Ultra latest update 20/03/2024

harry-wood commented 6 months ago

"1. Reboot your Mac (IMPORTANT)". Yeah that fixed it for me. Thanks! Maybe that should be added to the list of debug steps it displays when it can't connect.

ganeshrvel commented 6 months ago

You can find this information in the "Help" section of OpenMTP. Alternatively, you can tap on "Help! My phone is not connected" Button

ikkouT commented 6 months ago

Closing iMovie also helps 😄