mtp-server-nx - Open Source USB file transfer for Switch

mtp-server-nx

A port of https://manpages.ubuntu.com/manpages/xenial/man1/mtp-server.1.html for Nintendo Switch - free and open source!

Author
Gillou68310

Known Issues
  • Startup takes long with a lot of Files on the SD Card, due to scanning
  • Transfer speed can still be improved
  • Untested on Horizon < 6.1
  • Max filesize is currently limited to ~4GB
  • Version 1.1 has issues with Windows, consider it not supported right now :/
  • TBD
License
Apache 2.0

Repository: https://github.com/retronx-team/mtp-server-nx
Download: https://github.com/retronx-team/mtp-server-nx/releases
 
Last edited by m4xw,
this HB just showed a black screen to me, is it same for you guys?
Well, you're supposed to use a MTP client along with it or it wouldn't be a MTP server.
In other terms, connect the Switch to a USB port of your PC and it will be detected as any other mass storage device.
 
  • Like
Reactions: leon315
Well, you're supposed to use a MTP client along with it or it wouldn't be a MTP server.
In other terms, connect the Switch to a USB port of your PC and it will be detected as any other mass storage device.
I have the same issue and the previous app "nxmtp" is still working, this one just blackscreens and nothing is detected on my PC.

Btw, whY is this trying to access my prodinfo??? :unsure:
 

Attachments

  • 2019090318431400-8E25F120CD0D8D3A0B0296B714922EB0.jpg
    2019090318431400-8E25F120CD0D8D3A0B0296B714922EB0.jpg
    71.4 KB · Views: 288
Last edited by goncalodoom,
@leon315 and @goncalodoom you have to start the mtp-server-nx.nro first, wait til the Error Message I/O shown up on Screen and the plug in the USB Cable to your Computer

@m4xw great Tool and Good Job! This will give the Switch a lot more Freedom to play wit.

i have some Infos for you:
- a Friend of mine tested the Tool on FW 5.1.0 AMS, works great!
- i'm using AMS too and want to know if its working on SXOS? So i can easily upgrade AMS with the next release over MTP when it is working with the Free Version of SXOS.
- is it possible to report issues here or you check that on github?
 
  • Like
Reactions: leon315
Known Issues
  • Startup takes long with a lot of Files on the SD Card, due to scanning
  • Transfer speed can still be improved
  • Untested on Horizon < 6.1
  • Max filesize is currently limited to ~2GB
  • TBD

Is there some insight or possible way for the Switch to not scan the whole files on SD?
I feel like a possible fix for this could also benefit other Switch homebrew apps that take too long to launch.
One clear example is GZDoom, the same thing happens, so that's why I was wondering what progress there is on that frontend.
 
Last edited by ShadowOne333,
Btw, whY is this trying to access my prodinfo??? :unsure:

mtp-server-nx is checking some files on the sd card, but these files only have read rights! There no write rights and this causes the Error. So when you get that Error you can plug in the usb cable to your computer
 
Is there some insight or possible way for the Switch to not scan the whole files on SD?
I feel like a possible fix for this could also benefit other Switch homebrew apps that take too long to launch.
One clear example is GZDoom, the same thing happens, so that's why I was wondering what progress there is on that frontend.
You don't make sense.
 
  • Like
Reactions: SaulFemm
You don't make sense.
Oh sorry, I was referring to this known issue:
  • Startup takes long with a lot of Files on the SD Card, due to scanning

Other homebrew apps seem to have this very same problem as well.
Do you guys know what could be causing it and what could be a possible fix for that (if there is)?
 
You don't make sense.

I think I get where he was going with this.

Something like NX-Shell can list files very quickly as you drill down instead of trying to aggregate everything all at once and list only what you're looking at.

Would it possible to "lazy load" things as you go into the directories?

Also, does horizon keep track of what's on the sdcard? If so, would it be possible to query that info instead of scanning the file system?
Assuming no for that bit.

Oh sorry, I was referring to this known issue:


Other homebrew apps seem to have this very same problem as well.
Do you guys know what could be causing it and what could be a possible fix for that (if there is)?

Pretty sure the bottleneck comes from the speed of the sdcard and the switch processing power.
 
Last edited by designgears,
  • Like
Reactions: ShadowOne333
Oh sorry, I was referring to this known issue:


Other homebrew apps seem to have this very same problem as well.
Do you guys know what could be causing it and what could be a possible fix for that (if there is)?
well you assume correct , but in this case the issues are different , games/apps you talk about does have this issues caused by reasons like "assets being too big" or some memory leaks in the app gui or performance

but in this case the issue is the way things being read, the whole sdcard at ones.

this is not the same
 
  • Like
Reactions: ShadowOne333
Other homebrew apps seem to have this very same problem as well.
Do you guys know what could be causing it and what could be a possible fix for that (if there is)?
That depends entirely on the application lol.
hence I said it makes no sense.

Would it possible to "lazy load" things as you go into the directories?
ye, //TODO

Also, does horizon keep track of what's on the sdcard? If so, would it be possible to query that info instead of scanning the file system?
Assuming no for that bit.
Nope
 
  • Like
Reactions: designgears
Thank you, @m4xw !

I hope it gets improved with file sizes up to 4GB.

In recent months, @liuervehc 's closed source nxmtp has been incredible useful for me and many others.

And new solutions are always welcome.
 
The other one didn't work on Mac (I couldn't get it to work with AFT or OpenMTP, at least), I'm just getting a black screen on here, is that normal? Not sure if it's the program not working for me or just my Mac not seeing it.
 
The other one didn't work on Mac (I couldn't get it to work with AFT or OpenMTP, at least), I'm just getting a black screen on here, is that normal? Not sure if it's the program not working for me or just my Mac not seeing it.
Look for my post in the nxmtp thread about disabling a MacOS background service to get it working. Not sure if it still works with latest MacOS.
 
Nice to have an open source option for MTP transfers, but seeing as this doesn't seem to improve on any of the features of nxmtp, I think I'll pass for now and keep using good old nxmtp, which served me well since its release. I'm kind of old fashioned like that, and never try to fix something that isn't broken. I will still watch how this develops to see if it eventually improves upon the closed source one.
 
  • Like
Reactions: ecesar and uvwl
I take a break off GBAtemp and all of the exciting things happen whilst I'm gone.
Thanks @m4xw for your work.

Copying files over to the switch/from it is made easier due to this app thankfully. Don't have to go through the hassle of unplugging cables, removing SD cards and whatnot anymore. :D
 
  • Like
Reactions: Deleted User

Site & Scene News

Popular threads in this forum