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,

Gavin_Darkglider

Well-Known Member
Member
Joined
May 20, 2019
Messages
232
Trophies
0
Age
34
XP
581
Country
United States
Does sound on the switch itself work yet?

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

My issues are with my gentoo l4t build, but it is really high pitched and has a high pitched static in the background, that makes wathing anything, or listening to anything unbearable. That and the headphone jack isnt working. Not sure what is up there. Will get to it soon enough. I still have to work and stuff. It works fine on the dock though, so my issue is primarily with the tegra210ref card.
 
  • Like
Reactions: globalc

stick267

Well-Known Member
Member
Joined
Dec 17, 2018
Messages
586
Trophies
0
Age
33
XP
1,171
Country
United States
I dont know if it worked or not but the only thing that showed up was the echo
This is how my terminal looked:
Code:
1
2091000
How do I know if it worked?

Also, how do I transfer the contents of the sd I'm using to another sd? windows 10 doesnt see the ext4 partition.
Make sure you run "echo performance | sudo tee /sys/devices/system/cpu/cpufreq/policy0/scaling_governor" after running the 2ghz commands to set the CPU to max performance. Your best bet for transferring files from one SD card to the other would be to dock your Switch while in Ubuntu and use a USB SD card reader.
 
Last edited by stick267,

globalc

Member
Newcomer
Joined
Jun 14, 2019
Messages
21
Trophies
0
Age
49
Website
fluxcoil.net
XP
116
Country
Japan
Whats the best way to expand the volume after a fresh install of L4T?

Volume of my 32GB card in L4T shows as 500MB

I want to dual boot L4T and Lakka. Is there a guide somewhere?
gparted or fdisk. You could create a third partition and install L4T there.

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

My [sound] issues are with my gentoo l4t build[..]
Sound on my Fedora30 builds is also still an issue. In case you have work in progress scripts in some git repo, sharing that would be nice, otherwise eventually the final image, or the script creating the image.
 
Last edited by globalc,

Gavin_Darkglider

Well-Known Member
Member
Joined
May 20, 2019
Messages
232
Trophies
0
Age
34
XP
581
Country
United States
--------------------- MERGED ---------------------------


Sound on my Fedora30 builds is also still an issue. In case you have work in progress scripts in some git repo, sharing that would be nice, otherwise eventually the final image, or the script creating the image.

I am about to test the fix I think I found, which came down to a regression in Pulseaudio, and there is a patch already in the pulseaudio git repo, so if you are having issues, install the git version, or pull the patch and fix the issue in 12.2. Probably more stable this way, so that is what I did. here is a link to the patch. https://gitlab.freedesktop.org/puls...89d33bb182c42db5ad3987b0e91b7bf62f421e8.patch this at least fixed the ucm loading issues I was having. I havnt checked to see if audio quality is improved.

Edit: This patch fixed the problem for me, so rebuild pulseaudio 12.2 with this patch, and if you get issues with aclocal, automake, etc not being v 1.15, I just linked the <name>-1.16 version to <name>1.15 in /usr/bin<This may be different in fedora, or might not be an issue at all. ;)>

This also means I need edit my dock handler profiles. lol :( That is easy enough though. That being said, I need to apply fixes to the base build, then I think it will be ready for release. I will continue working out the rest of the hardware support as I go, and push those patches to the base build as well, but I have a bit to rebuild/reconfigure there, and there is one more thing that is needed, but that is minor, and will only effect you if you have more than one switch running linux on your network.
 
Last edited by Gavin_Darkglider,

Gavin_Darkglider

Well-Known Member
Member
Joined
May 20, 2019
Messages
232
Trophies
0
Age
34
XP
581
Country
United States
Yes, assuming you have a console that is not rcm patched. If you do, and want to use the warmboot from stock exploit that is coming, then no, as that update patches the unreleased exploit. If using RCM to boot, then the boot loaders always load, it is when you try to launch the custom firmware that doesnt support the dash you are using that it doesnt work. That is easily patched(generally) by the firmware developers.
 

Conan179

Well-Known Member
Member
Joined
Mar 21, 2015
Messages
150
Trophies
0
Age
35
XP
866
Country
Germany
I wanted to install the kubuntu-desktop, so "apt install kubuntu-desktop". But after the innstallation and restart I see only blackscreen and the mouse pointer.
Why does this not work? At the Innstallation there was no error message.
 

Gavin_Darkglider

Well-Known Member
Member
Joined
May 20, 2019
Messages
232
Trophies
0
Age
34
XP
581
Country
United States
I wanted to install the kubuntu-desktop, so "apt install kubuntu-desktop". But after the innstallation and restart I see only blackscreen and the mouse pointer.
Why does this not work? At the Innstallation there was no error message.

Couldnt help you there, I havnt tried to use KDE on the switch, mainly because it is full of bloat. I have been running LXDE on my builds. Stupidly light weight, seems to run alright, but not the most touch screen friendly. lol. I still prefer it over KDE/Gnome/Unity. Honestly, I wanted to go even lighter than that, but most people who use this wouldnt be able to configure fluxbox or E17. I say this, because most of the people here cant configure/install retroarch properly on ubuntu. lol.
 

Refriger8tor

Well-Known Member
Member
Joined
Sep 2, 2013
Messages
135
Trophies
0
Location
A kitchen near you.
XP
458
Country
United States
I wanted to install the kubuntu-desktop, so "apt install kubuntu-desktop". But after the innstallation and restart I see only blackscreen and the mouse pointer.
Why does this not work? At the Innstallation there was no error message.
Do you have autologin enabled? If so it's defaulting into kubuntu and then glitching. Try to ssh in and turn off autologin, then switch back to unity at the login screen
 

Dfroberts86

Well-Known Member
Newcomer
Joined
Jun 27, 2018
Messages
80
Trophies
0
Age
38
XP
402
Country
United States
The booting issues, isnt an issue with booting, but an issue with xorg crashing. Since fbconsole doesnt work, the screen stays black.

Is there a fix for this? I have now setup Ubuntu threet times, and all three times this eventually happens, and I have to start over.

Edit: Nnm. I think it was just do to a low battery this time. Once it waswplugged in for a while, it has booted twice now with no issue.
 
Last edited by Dfroberts86,

Gavin_Darkglider

Well-Known Member
Member
Joined
May 20, 2019
Messages
232
Trophies
0
Age
34
XP
581
Country
United States
Has anyone tried to see if Ubuntu 19.04 work or not?

No, but it should, if you install the right version of X11, and apply the correct patches. I still think the repos are going to be a bit lacking for arm64 though. Hince why I am building gentoo. Feel free to port ubuntu 19.04 though, should be a quick port, if you do it right. I think you can do it with apt distupdate, but it has been a while since I tried to do a distribution update on ubuntu, as I cant stand that distro, or any of its derivitives.

Is there a fix for this? I have now setup Ubuntu threet times, and all three times this eventually happens, and I have to start over.

Edit: Nnm. I think it was just do to a low battery this time. Once it waswplugged in for a while, it has booted twice now with no issue.

I have found, that if I cant get it to boot, if I boot into stock dash, power off, then reboot I can boot without issues. Not sure what causes the issue, but this is the quickest fix I have found for it.
 
Last edited by Gavin_Darkglider,

Gavin_Darkglider

Well-Known Member
Member
Joined
May 20, 2019
Messages
232
Trophies
0
Age
34
XP
581
Country
United States
Sorry, does the SWAP now works?

Last time it doesn't work, only ZRAM working.

Thankyou

??? Not sure what you mean, if you are asking if this fixes sd cards that didnt work before, then no. That is still probably a driver issue. Also not sure what you mean by only ZRAM working, but if we are talking about swap space, then yes, that has always worked, but isnt set up. You would need a third partition, and a custom boot.scr to do it properly(with hibernate support), but that possibility has always been there, even in the older builds. If you plan to do this, I would suggest a dedicated SD card for this, because emunand has gone wild now, and without extended partitions, you would have space constraints.
 
Last edited by Gavin_Darkglider,

orangpelupa

Well-Known Member
Member
Joined
Aug 7, 2009
Messages
388
Trophies
1
XP
1,183
Country
Indonesia
??? Not sure what you mean, if you are asking if this fixes sd cards that didnt work before, then no. That is still probably a driver issue. Also not sure what you mean by only ZRAM working, but if we are talking about swap space, then yes, that has always worked, but isnt set up. You would need a third partition, and a custom boot.scr to do it properly(with hibernate support), but that possibility has always been there, even in the older builds. If you plan to do this, I would suggest a dedicated SD card for this, because emunand has gone wild now, and without extended partitions, you would have space constraints.

It's just like what I wrote, asking about SWAP. I mention nothing about SD cards that didn't work.

Can you elaborate on the method to enable swap?

A few pages back (I think it was with the second update), some of us discussed about swap and the conclusion was swap can't be enabled.

But now this Linux has got multiple new updates, I'm curious whether swap can be enabled, and how.
 

Gavin_Darkglider

Well-Known Member
Member
Joined
May 20, 2019
Messages
232
Trophies
0
Age
34
XP
581
Country
United States
I was using swap on the original kernel, so not sure where you got your information. You need to use gparted, and add a linux swap partition to your sd card. Then you need to edit /etc/fstab to tell the console to mount swap. Then if you want hibernate support, you need to edit the kernel command line in the boot.scr file and add something I dont remember off the top of my head, then recompile the scr file, and replace the version on the sdcard.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Sonic Angel Knight @ Sonic Angel Knight: :ninja: