L4T Ubuntu - A fully featured linux on your switch

switchroot.png

L4T Ubuntu
Intro
L4T Ubuntu is a version of Linux based on nvidia's linux for tegra project. It uses a different kernel compared to previous releases which allows it to use features not yet in mainline. Such as audio, docking support and vulkan.

Join our discord: https://discord.gg/53mtKYt

We have a wiki !
To facilitate our work we will only update our wiki from now on in order to avoid multiple outdated references, please refer to the following link instead of this page

https://wiki.switchroot.org/en/Linux/Ubuntu-Install-Guide

Credits

Bylaws,
Langerhans,
Ave,
Natinusala,
CTCaer(most of the hard stuff),
Gavin_Darkglider,
DanielOgorchock(Joycon drivers/joycond),
stary2001 (reboot2payload),
NVIDIA,
Azkali
Everyone else in switchroot - more info on that in the future.
 
Last edited by azkali,
I tried setting this up, but Ubuntu's stuck on "Applying changes" "Waiting for unattended-upgr to exit"

It's been there for about an hour now and I don't know what to do about it. Is it okay to press the cancel button or do I just leave it be?
it's been seen in the discord, that this stems from a dying/poor/bad SD Card, try a different card if you have others of if you can spare look into another atleast 32GB Card.

Might i add for anyone else, that you'll see faster support for questions in the Discord than the topic here, (just because of the nature of Forum vs Chat service)
 
does this run better than switch switch root?

yes/no/maybe...... As the maintainer for switchroot for the linux stuff, I am going to say this once, the new images are still switchroot, I have just taken over on the linux side of things, while the other devs are focused on low level fixes(lp0, minerva, coreboot, uboot, reboot2payload, etc.) and android.

So this release comes with all of those features built in, with the same root as before. 2.0.1 is going to include the new ubuntu root from nvidia, so all of the drivers and everything are updated as well.
 
  • Like
Reactions: username23bob
yes/no/maybe...... As the maintainer for switchroot for the linux stuff, I am going to say this once, the new images are still switchroot, I have just taken over on the linux side of things, while the other devs are focused on low level fixes(lp0, minerva, coreboot, uboot, reboot2payload, etc.) and android.

So this release comes with all of those features built in, with the same root as before. 2.0.1 is going to include the new ubuntu root from nvidia, so all of the drivers and everything are updated as well.

will we be able to update from 2.0.0 to 2.0.1? or do we have to reinstall?
 
Anyone know if it’s possible to build a version of Chiaki PS4 open source Remote Play app that would run in L4T?

--------------------- MERGED ---------------------------
 
Anyone tried benchmarking their sd cards in ubuntu to see what speeds the console is actually capable of hitting read/write side

Same for speed testing wired/wireless
 
  • Like
Reactions: orangy57
Kinda dumb question, but has anyone been able to disable the joy-con batteries from displaying in Ubuntu? They never actually display with any charge and they show up as system batteries, making the percentage of the actual switch's battery constantly divided by 3 in the indicator. I tried disabling the batteries in the blacklist.conf, but that's only for drivers, not devices themselves.
 
I have fake dock, is functional in HOs (horizon OS), but when i try with l4t ubuntu, the battery icon blinking and not put tv mode with dock (i repeated, i used chinese dock), excuse me for my bad english.
 
I have fake dock, is functional in HOs (horizon OS), but when i try with l4t ubuntu, the battery icon blinking and not put tv mode with dock (i repeated, i used chinese dock), excuse me for my bad english.
Only the official dock has been confirmed to be working. Try checking the kernel logs to see what happens when you do use that unofficial dock. It may give an insight as to what's going on.
 
  • Like
Reactions: orangy57 and Annel
Hi Gavin_Darkglider,

Will this work.on a 128gb ad with having emummc, l4t and atmosphere?

Thanks

I actually think this should be enough space if a) you don't intend to install a lot of Linux apps, and b) you don't intend to install a lot of Switch games or roms on your SD card. The allocation might look something like this (these are approximate so I don't have to convert GB to Gib):

total space: 128Gb
hos_data (i.e. switch storage for games & roms): 82Gb
emummc: 30Gb
L4t: 16Gb

The 82Gb is probably an overestimate, but I'd imagine once you do the math this would leave you with about 75Gb or more in hos_data. I've got a 16Gb partition for L4T and have installed a bunch of standard Linux apps on there, and so far I haven't run into any problems with space. If you're planning to use L4T for running Dolphin, Retroarch, or some other emulator, you can put the rom files in hos_data since that is mounted in l4t (as a bonus, if you put them in the Lakka /roms folder location in hos_data, then the same set of rom files can be read from Atmosphere, Lakka, and L4t).

Just keep in mind that Switch games can run from under 1Gb up to 20Gb or more, so you can burn through your available hos_data space pretty fast if you are planning to have more than 1-2 large games on your SD card.
 
Last edited by ChameleonSkin,
I'm wondering if it's possible to add support for the Apple Magic Trackpad 2 (AMT2) in L4T? There are drivers that were created here: https://github.com/robotrovsky/Linux-Magic-Trackpad-2-Driver.



From the readme it looks like this driver was rolled into the 4.20 kernel, but I believe that's much newer than the kernel in L4T. I know my way around Linux but I'm not an expert on device drivers - what would it take to get this working? It looks like the drivers on the site above use dkms to get installed. It's been years since I patched a kernel (like, I haven't done it since before dkms was around), so I don't really understand the process or if this is even possible to do. Alternately, is it possible to get the 4.20 kernel working in L4T so that the drivers are already included?
 
  • Like
Reactions: tabzer
I am doing the same thing as @ChameleonSkin, and I am following the readme of the repo. However, when I run 'make clean' and 'make' I get this error:

make[1]: *** /lib/modules/4.9.140+/build: No such file or directory. Stop.

When I run update/upgrade, I see errors relating to that directory kind of frequently, and my understanding is that it might be nvidia driver related. I thought it wouldn't be a hindrance but here I am. :(
 
I am doing the same thing as @ChameleonSkin, and I am following the readme of the repo. However, when I run 'make clean' and 'make' I get this error:

make[1]: *** /lib/modules/4.9.140+/build: No such file or directory. Stop.

Hmm - I just checked and I definitely have that directory on my machine. What directories do you have inside /lib/modules?

I believe that dir contains headers that are needed for building in gcc - I installed make-essentials and a bunch of other stuff I can't recall in order to set up a proper build environment on the Switch, so one of those may have created it. This post may help you to get them installed (changing the version number used in the commands there to 4.9.140): https://askubuntu.com/questions/1064674/linux-headers-reinstall
 
Last edited by ChameleonSkin,
  • Like
Reactions: tabzer
The thing is, I DO have /lib/modules/4.9.140+/build. When I explore via terminal "build" is red. I really don't have a clue.

I went here: https://github.com/rohitpid/Linux-Magic-Trackpad-2-Driver

Followed the instructions for Installing via DKMS and I was on the part 'If you want test out 3 finger middle click feature (please do)"

make clean

make -C /lib/modules/4.9.140+/build M=/home/kit/Linux-Magic-Trackpad-2-Driver/linux/drivers/hid clean
make[1]: *** /lib/modules/4.9.140+/build: No such file or directory. Stop.
Makefile:12: recipe for target 'clean' failed
make: *** [clean] Error 2

@ChameleonSkin have you tried this approach personally? I'm curious if has something to do with the L4T Ubuntu build, or if I messed something up.

EDIT: I just realized we are referring to different repos. My mistake! I still wonder about the nature of my error, and its implications.
 
Last edited by tabzer,
The thing is, I DO have /lib/modules/4.9.140+/build. When I explore via terminal "build" is red. I really don't have a clue.

@ChameleonSkin have you tried this approach personally? I'm curious if has something to do with the L4T Ubuntu build, or if I messed something up.

EDIT: I just realized we are referring to different repos. My mistake! I still wonder about the nature of my error, and its implications.

I haven’t tried building it yet - I was hoping someone would say it’s easy to update the kernel to 5.4 without breaking anything, in which case the drivers are included. Have you tried running make as root?
 

Site & Scene News

Popular threads in this forum