L4T Ubuntu - A fully featured linux on your switch

Discussion in 'Switch - Exploits, Custom Firmwares & Soft Mods' started by bylaws, Apr 28, 2019.

  1. Drban789

    Drban789 GBAtemp Regular

    Member
    3
    Jun 28, 2018
    United Kingdom
    Is there any way to dock a switch on the official dock without the official charger in linux?
     
  2. Mouser X

    Mouser X Advanced Member

    Newcomer
    5
    Aug 26, 2009
    United States
    Probably, but on HOS, it seems to be determined by how much power is supplied. In HOS, I tried to use the dock while plugged into a portable battery (I forgot my charger), but the Switch refused. That was when I realised my battery wasn't supplying the same output the Switch's wall adapter did (it's obvious to anyone who pays attention, or knows about batteries, but I never thought about it before). So if you can match, or possibly even exceed the power supplied by official wall adapter, it should work.

    Now with Linux, I don't know what it's looking for, or how it determines if it's connected to the dock. It might be as simple as supplying power to the dock (even if it doesn't match the output of the official adapter). Considering that's how it appeaers to work in HOS, it wouldn't surprise me if it's something similar. Unfortunately, I obviously don't know. Sorry.
     
  3. Gavin_Darkglider

    Gavin_Darkglider GBAtemp Regular

    Member
    3
    May 20, 2019
    United States
    It is and it isnt. There is no support for power out from the switch, and the switch to host mode is done by the dock negotiations. When it is unplugged, it is supposed to switch back to device mode, but for some reason that doesnt work properly. I managed to get around that a bit by reloading the modules. I plan on testing this further, once I get my new build finished.

    Mainly, because I am sitting here building Gentoo for the switch, which is more work than I would like to admit, considering I came across some new info, that suggest using a different gcc version if you want the libraries with the video card to work with your apps, so I have had to rebuild the whole thing, but that isnt a big deal, as the configs are already setup, for the most part. Then I just have to figure out X, as you need a specific version, and it was removed from the gentoo repos. I think I found a copy, so not a big deal. Then there is patching in the drivers, and enabling them.

    The dock status is negotiated by the power delivery chip. So, if the chip has enough power to communicate with the switch, then it will. Basically, you need a charger that supports usb-pd standard, and matches or betters the switch charger. Then it should work, but there have been reports about the switch power delivery being off standard, so I dont know.
     
  4. bylaws
    OP

    bylaws GBAtemp Regular

    Member
    6
    Dec 11, 2018
    United Kingdom
    Its the nano one you want.
    This won't work, booting issue is different with l4t, I think its probably caused by memory training that should be fixed soon.
    This should be the case but I doubt it, the driver in l4t will only work with the official charger/dock because all init is hard coded
     
    Watermelonz likes this.
  5. Gavin_Darkglider

    Gavin_Darkglider GBAtemp Regular

    Member
    3
    May 20, 2019
    United States
    I came across that link for building, when looking for the bsp. lol. The information about the compiler was good to know, but it downloads everything from behind the nvidia dev wall, but I dont have a dev account. lol. Good to know about the nano bsp. as for the power delivery chip, that sucks, but I guess that is nintendo. lol.
     
  6. azoreseuropa

    azoreseuropa GBAtemp Guru

    Member
    11
    Nov 6, 2002
    United States
    Azores/Portugal
    I am very curious about Gentoo for the Switch. I will wait for your linux instead because I am going to use Gentoo soon for PS4 because of positive about it and was told that it is an amazing and powerful tool and a way better than Psxitarch version 2.0.
     
    Last edited by azoreseuropa, Jun 2, 2019
  7. Gavin_Darkglider

    Gavin_Darkglider GBAtemp Regular

    Member
    3
    May 20, 2019
    United States
    I dont know if any one version of linux is better than another. Gentoo is super configurable, and is easy to patch, and portage(Package manager) which I like. Because of those 3 reasons, it makes a good base for a project like the OG Xbox, or Nintendo Switch, and PS4. That being said, if you are new to linux, you are better off with ubuntu, or downloading the version I release after I build, configure, and test everything. As it sits, half of the support for hardware wont be in my build, just opengl, gles, and cuda. I will get the rest in there, but the ebuild I modified for the TX1 didnt include these sections of the bsp, so I am going to have to write them in, eventually. Right now I am trying to get a base build going, that boots to a desktop using nvidia's drivers. Once that is done, I will configure alsa, and udev for the dock, and usb switching. I plan on writing an eselect module for the dock, so you can easily change what the default behavior for the dock is, etc. There is a lot to come with this build, and the final version might be a ways out. On top of that, while I will set up an ebuild repository for all of this eventually, updates are going to be difficult for the average user, as any rolling distro with a package manager that compiles everything can be time consuming, and confusing if you dont know why the compiler crashed. lol.
     
  8. azoreseuropa

    azoreseuropa GBAtemp Guru

    Member
    11
    Nov 6, 2002
    United States
    Azores/Portugal
    No, I am not new to Linux. Been used it before on my PC a long time ago. It was and is better than Windows, lol! And for updates, I know what you mean. And you have to type sudo and etc. It might be a difficult but be thankful that there are many tutorial out there on google if that what you re looking for. :D

    Yes, there are an experts out there that said Gentoo is better than Psxitarch Linux version 2 to run on PS4. I m hoping the same for Switch. I am watching you. Keep up! ^_^:bow:
     
    Last edited by azoreseuropa, Jun 2, 2019
  9. bakedbeans

    bakedbeans Member

    Newcomer
    2
    Jan 13, 2018
    Algeria
    Has someone tried to use this with kde or xfce or something else yet?
     
  10. Worldblender

    Worldblender Advanced Member

    Newcomer
    2
    May 27, 2019
    United States
    Only XFCE4 I tried, but not yet KDE. GTK2 programs don't seem to work well with the touchscreen, so the former was nearly unusable without on on-screen keyboard. I need to allocate more time for installation of larger desktop environments, and I may come back here when I have installed GNOME3 and KDE5.
     
  11. BlastedGuy9905

    BlastedGuy9905 where's the updated autopsy report

    Member
    11
    Apr 13, 2017
    United States
    under your desk
    This is great! Is there any way to run Android apps on this? (just asking I literally have no idea)
     
  12. Gavin_Darkglider

    Gavin_Darkglider GBAtemp Regular

    Member
    3
    May 20, 2019
    United States
    I havnt, but I am fairly certain the original failOverfl0w arch build was running gnome3.
    possibly in an android emulator. It might actually work really well, if the emulator can interface with the arm hardware directly, instead of emulating it.
     
  13. BlastedGuy9905

    BlastedGuy9905 where's the updated autopsy report

    Member
    11
    Apr 13, 2017
    United States
    under your desk
    Yeah, but that wouldn't count as an emulator, would it. That would just be an interpreter afaik

    — Posts automatically merged - Please don't double post! —

    And I've been looking for one, without luck.
     
  14. Kirby567fan

    Kirby567fan GBAtemp Regular

    Member
    5
    Jan 6, 2018
    Morocco
    There is an android emulator called anbox. It actually has a fork for arm64 but it doesnt work on the switch for some reason.

    — Posts automatically merged - Please don't double post! —
     
  15. BlastedGuy9905

    BlastedGuy9905 where's the updated autopsy report

    Member
    11
    Apr 13, 2017
    United States
    under your desk
    Damn. Android on the Switch would be a dream come true..
     
  16. Gavin_Darkglider

    Gavin_Darkglider GBAtemp Regular

    Member
    3
    May 20, 2019
    United States
    Just after some quick googling, I would try Shashlik. It uses qemu to emulate the hardware, and qemu uses binfmt_misc, which is built in to the kernel for enterpreting code from other archectectures. In this case, it would be "emulating" arm64/arm on an arm64 processor. It is worth a try. lol.
     
  17. BlastedGuy9905

    BlastedGuy9905 where's the updated autopsy report

    Member
    11
    Apr 13, 2017
    United States
    under your desk
    I don't even have a spare SD for L4T. I was just theorizing and hoping someone had tried my idea.
     
  18. Kirby567fan

    Kirby567fan GBAtemp Regular

    Member
    5
    Jan 6, 2018
    Morocco
    Well hopefully we can try running an android emulator like nox player or bluestacks using qemu but the performance will be obviously decreased alot.
     
  19. GibboHull

    GibboHull Member

    Newcomer
    2
    Apr 4, 2019
    United Kingdom
    Yeah I'm very much waiting for Android! L4T and Lakka are both really cool but from a purely selfish point of view android would be ideal.

    My Nvidia shield tablet died a couple of months ago and I really miss a lot of its features, using my switch as one as well as well, a switch, would be the best of both worlds for me.
     
    BlastedGuy9905 likes this.
  20. jacopastorius

    jacopastorius GBAtemp Regular

    Member
    3
    Oct 24, 2018
    Italy
    How do you install software? are there repos, or do you have to compile from source?
     
Quick Reply
Draft saved Draft deleted
Loading...