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,

Dracari

Well-Known Member
Member
Joined
Apr 5, 2009
Messages
1,985
Trophies
1
XP
2,465
Country
United States
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)
 

Gavin_Darkglider

Well-Known Member
Member
Joined
May 20, 2019
Messages
232
Trophies
0
Age
34
XP
581
Country
United States
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

crow132

Well-Known Member
Member
Joined
Jan 19, 2016
Messages
302
Trophies
0
Age
34
XP
1,373
Country
Saint Helena
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?
 

k0ns0le

Member
Newcomer
Joined
Nov 16, 2006
Messages
22
Trophies
0
XP
329
Country
Anyone know if it’s possible to build a version of Chiaki PS4 open source Remote Play app that would run in L4T?

--------------------- MERGED ---------------------------
 

izy

Advanced Tech Pleb
Member
Joined
Sep 17, 2010
Messages
2,311
Trophies
2
XP
4,023
Country
United Kingdom
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

orangy57

bruh
Member
Joined
Aug 17, 2015
Messages
916
Trophies
1
Age
21
Location
New Jersey
XP
2,943
Country
United States
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.
 

Annel

New Member
Newbie
Joined
Feb 4, 2020
Messages
1
Trophies
0
Age
35
XP
52
Country
Dominican Republic
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.
 

Worldblender

Well-Known Member
Member
Joined
May 27, 2019
Messages
326
Trophies
0
Age
27
XP
2,236
Country
United States
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

ChameleonSkin

Member
Newcomer
Joined
Apr 10, 2019
Messages
20
Trophies
0
Age
49
XP
225
Country
United States
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,

ChameleonSkin

Member
Newcomer
Joined
Apr 10, 2019
Messages
20
Trophies
0
Age
49
XP
225
Country
United States
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

tabzer

This place is a meme.
Member
Joined
Feb 15, 2019
Messages
5,844
Trophies
1
Age
39
XP
4,910
Country
Japan
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. :(
 

ChameleonSkin

Member
Newcomer
Joined
Apr 10, 2019
Messages
20
Trophies
0
Age
49
XP
225
Country
United States
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

tabzer

This place is a meme.
Member
Joined
Feb 15, 2019
Messages
5,844
Trophies
1
Age
39
XP
4,910
Country
Japan
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,

ChameleonSkin

Member
Newcomer
Joined
Apr 10, 2019
Messages
20
Trophies
0
Age
49
XP
225
Country
United States
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

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: https://youtu.be/MddR6PTmGKg?si=mU2EO5hoE7XXSbSr