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,

6adget

GBAtemp's official atheist
Member
Joined
Sep 12, 2016
Messages
234
Trophies
0
Age
50
Location
California
XP
1,842
Country
United States
I'm not sure if this was already suggested. This is a fast growing thread. If you want to learn how linux works, and try it out before you try using it on the switch, you can put ubuntu, or any distro on a USB stick, and boot from it on your PC. you don't have to install it. you can run it off of the USB stick in whats known as a "live" session. It's also a great way to breath some life into an old PC, or laptop. There are light weight distro's like Lubuntu. That will make an old PC run fast, and is great if you just want to browse the web. For free, Linux is a fantastic OS. Some of the distro's are every bit as good as windows.
 
  • Like
Reactions: Refriger8tor

burt111

Well-Known Member
Newcomer
Joined
Oct 30, 2016
Messages
48
Trophies
0
Age
26
XP
197
Country
United States
This was literally the only thing I did, didn't even pair my joy-cons yet! I'll give it another go, did you get moonlight to work?
No sadly even compiling source didn’t work

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

any help trying to make qjoypad work?

I installed it succesfully but doesnt seem to launch after :(
Try running it from terminal had a dbus error on a lot of applications only solution was a export command before running anything in terminal
 

DiscostewSM

Well-Known Member
Member
Joined
Feb 10, 2009
Messages
5,484
Trophies
2
Location
Sacramento, California
Website
lazerlight.x10.mx
XP
5,481
Country
United States

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,321
Country
United Kingdom
What's so great about this release? Out of curiousity?
Others took care of the basics (OS able to do what you like with, not as impressive as it once was but still nice to have) but the bigger bonus is by virtue of being fairly mainstream on other devices you also can make it do all the weird and esoteric things you care to cook up.

If we are playing with emulators then say https://blends.debian.org/games/tasks/emulator
I see Virtualjaguar has an arm build.

If in normal homebrew a Jaguar emulator had been made (people used to like making weird and wonderful emulators for obscure devices ( http://nintendo-ds.dcemu.co.uk/emulators-for-nintendo-ds-1158162.html http://nintendo-ds.dcemu.co.uk/emulators-for-gba-1158173.html ) but not so much these days, we'll assume it happens though) and you say had a thing that detected if it went on your home wifi that it would upload the saves/savestates to your NAS, which for reasons only worked with a funky SFTP setup. If people are allowed to tell me "cloud saves" is some crazy valuable service for Switch online then I can say having saves (and possibly ROM collections) transfer seamlessly between devices is not a crazy esoteric use case.
No way said emulator author would chain that together in their code just for you, however as it is a full OS then you can do that trivially as being a Linux based system it likely has the reference grade FTP setup if not bundled directly with the basic distro then in the default repos, to say nothing of the same code (or several versions older) likely powering your NAS as well.

So yeah it is a widely developed OS ( https://docs.armbian.com/Release_Changelog/ ), not just limited to the subset of Switch hackers that care for it* and can do something with it (probably in their free time as nobody is going to pay for it or have a company be a sugar daddy), with much functionality that you can twist to your own use cases.

*in older threads I noted the rise of IOS, and then Android when that took over from it, pretty much killed the cool PSP and DS homebrew off in short order, and then the rise of the likes of raspberry pis (there was stuff like the pogoplug and sheevaplug before it and around the same time as DS and PSP was kicking off, but they were hardly ready for prime time) with the continued existence of the former meant we did not see much of anything for the 3ds. This then means something like Linux or Android being ported being about the best chance we have for seeing a proper homebrew scene.

Oh and it likely brings a bunch of easy to use languages with it, dodges the need to have full fledged libraries built for everything (and people know enough of networking to use them) which in turn and coupled with the first thing means more people can give stuff a go -- knocking together what amounts to a sizeable chunk of a web browser to get notifications from your favourite site is hard, chaining some wget, grep, sed, awk and curl commands together in a python script is the sort of thing I expect many people would be able to learn to do.
 
D

Deleted User

Guest
Ok, so what emulators are people suggesting for this puppy?!

Got it all up and running, Vulkan Dolphin, kodi, few things.

Mainly looking at GB, GBC, Genesis, PSX emulators.
 
  • Like
Reactions: Refriger8tor

GibboHull

Active Member
Newcomer
Joined
Apr 4, 2019
Messages
25
Trophies
0
Age
31
XP
176
Country
United Kingdom
No sadly even compiling source didn’t work

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


Try running it from terminal had a dbus error on a lot of applications only solution was a export command before running anything in terminal

Yeah looks like it's not possible; seems at this time no snaps are supported, I've tried a few and none of them will work get the same error everytime. From a bit of research it seems that this is due to the custom kernel using a filesystem that snap doesn't seem to want to play with. Don't know if snaps are something that are planned to be supported in the future(or if i'm just doing this terribly wrong) Really cool stuff though nontheless, looking forward to giving it another go in a few iterations time.
 
  • Like
Reactions: burt111

stick267

Well-Known Member
Member
Joined
Dec 17, 2018
Messages
586
Trophies
0
Age
33
XP
1,171
Country
United States
Just played Wind Waker handheld with the CPU OC'd to 1.7ghz for about an hour and had 50% battery left. So battery life in Ubuntu is pretty much up to par with Horizon.
 
  • Like
Reactions: kevandkkim
D

Deleted User

Guest
Just played Wind Waker handheld with the CPU OC'd to 1.7ghz for about an hour and had 50% battery left. So battery life in Ubuntu is pretty much up to par with Horizon.
European version or NTSC? All rips I seem to be able to get are NTSC.

And let me ask, since alot will probs ask too. How did you overclock to 1.7?

Edit: Oh, I just had an idea! Is there a way we can get the devices IP address printed to the taskbar up the top of the screen? It would be REALLY handy for those folks who wish to SSH and FTP to the switch, and ip's change whenever you go elsewhere, and sometimes just because.
 
Last edited by ,

veggietales4ever

Active Member
Newcomer
Joined
Oct 2, 2015
Messages
34
Trophies
0
Age
34
XP
344
Country
United States
thanks for getting this going for us.

i had a question about retroarch, may be an easy fix.
got it all installed, did the ppa:testing etc.
i don't have the ppsspp emulator or the good mupen next n64 emulator.
i can't figure out how to add them either, i tried buildbot nightly latest but they all don't work.

thanks!
 

burt111

Well-Known Member
Newcomer
Joined
Oct 30, 2016
Messages
48
Trophies
0
Age
26
XP
197
Country
United States
thanks for getting this going for us.

i had a question about retroarch, may be an easy fix.
got it all installed, did the ppa:testing etc.
i don't have the ppsspp emulator or the good mupen next n64 emulator.
i can't figure out how to add them either, i tried buildbot nightly latest but they all don't work.

thanks!
You can pull them from the Lakka switch system file open it as a archive
 
  • Like
Reactions: veggietales4ever

Torrey187

New Member
Newbie
Joined
May 1, 2019
Messages
3
Trophies
0
Age
31
XP
50
Country
United States
European version or NTSC? All rips I seem to be able to get are NTSC.

And let me ask, since alot will probs ask too. How did you overclock to 1.7?

Edit: Oh, I just had an idea! Is there a way we can get the devices IP address printed to the taskbar up the top of the screen? It would be REALLY handy for those folks who wish to SSH and FTP to the switch, and ip's change whenever you go elsewhere, and sometimes just because.
I was able to SSH into the switch and use putty from my windows machine to install dolphin. Netflix is almost 100% not gonna work. I’ve tried everything

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

Am I allowed to post stuff like this here ?
By the way did you know Ubuntu supports 4K 30 through the dock ? Also I highly recommend creating a swap file so you have more memory to work with. Running out of ram will bring this to it’s knees. 1GB swap is fine.
 
Last edited by Torrey187,

stick267

Well-Known Member
Member
Joined
Dec 17, 2018
Messages
586
Trophies
0
Age
33
XP
1,171
Country
United States
European version or NTSC? All rips I seem to be able to get are NTSC.

And let me ask, since alot will probs ask too. How did you overclock to 1.7?

Edit: Oh, I just had an idea! Is there a way we can get the devices IP address printed to the taskbar up the top of the screen? It would be REALLY handy for those folks who wish to SSH and FTP to the switch, and ip's change whenever you go elsewhere, and sometimes just because.
I assume it's NTSC but I'm not sure lol. A quick way to get your IP is to click the WiFi icon and then click "Connection Information".

To OC:
Code:
echo performance | sudo tee /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
 
Last edited by stick267,
  • Like
Reactions: MartianMSK

_abysswalker_

Well-Known Member
Newcomer
Joined
Dec 8, 2018
Messages
96
Trophies
0
Age
41
XP
1,077
Country
Cyprus
You guys are amazing.. it's insane how well this works already.

Plex streaming also works fairly ok as an addon to kodi; also booting directly into kodi/plex is just cool :)

Next i'd like to try and get citrix receiver running (there's an article to tweak the armha one to run on 64). Connecting to my windows 10 vm at work with bluetooth mouse/keyboard would be amazing. Really hyped about this thread :)
 

orangpelupa

Well-Known Member
Member
Joined
Aug 7, 2009
Messages
388
Trophies
1
XP
1,183
Country
Indonesia
Bug reports

- usb hub (rh 888) doesn't work (with dock)
- usb harddisk spins but not detected (with dock)
- dnscrypt can't be installed. I suspect its because the Linux network system automatically use dnscrypt before it can acquire the initial certs/settings. Because right after dnscrypt got installed, all dns request can't be resolved. Despite in the network setting its not using dnscrypt yet
 
Last edited by orangpelupa,

arceus

Well-Known Member
Newcomer
Joined
Apr 18, 2019
Messages
91
Trophies
0
XP
332
Country
Canada
switchroot.png

L4T Ubuntu 1.1
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.

Features
  • Dock support with USB
  • Bluetooth (both controllers and audio)
  • Nvidia GPU drivers - Vulkan and OpenGL
  • Audio - Headphones, speakers and over HDMI when docked.
  • Joycons and pro controllers are supported fully when not attached to the the console
  • Touchscreen
  • Display
  • WiFi
  • CPU frequency scaling - The CPU scales from 200mhz to 1.7ghz (what switch is binned for) depending on the load its under. Fans are adjusted to account for this
  • Full sdcard speed
  • Hardware video acceleration when using the built in videos app (means you can watch videos without battery draining massively)
Prerequisites
  • A dedicated 16GB+ sdcard
Downloads
Updates
  • 1.1:
  • Download:
  • https://download.switchroot.org/updates/update-1-for-switchroot-l4t-ubuntu-2019-04-28.tar.gz
  • Installation Instructions:
  • apt update && apt upgrade is NOT enough for this update
  • Extract this to the first partition of your sdcard, making sure to overwrite Image and tegra210-icosa.dtb.
  • Changelog:
  • Enabled USB mass storage and binfmt in kernel.
  • Fixed touch sensitivity and it not reaching bottom edge.
  • Fixed issues with joycon/procon right stick and y axis
  • Potentially fixed issues with sdcards, if someones didnt work before please try again, if still no then pm me.
How to install
  1. Download the image from the downloads section and extract.
  2. Write it to your sdcard using a program such as etcher or dd
  3. Apply any kernel updates from the updates section in the thread
  4. Boot hekate and select L4T from the configs menu.
  5. Wait for around 2-4 minutes while it initially loads
  6. Go through the setup process - make sure not to dock the console in this period.
  7. Once the initial setup is finished and you are on the login screen it is advisable to reboot:
  8. Hold the power button for 10 seconds.
  9. Load hekate again and select L4T as a payload.
  10. Log in and open the "Disks" app
  11. Select the second partition of your sdcard and click the gears icon
  12. Choose resize and change the size to the full amount of available space.
  13. Enjoy, you now have fully featured Ubuntu on your switch!
Bugs
  • Wired joycons do not work (connected to console)
  • Docking while having a ssh session open can cause the display to not turn off correctly
  • No sleep mode
  • USB OTG - works fine in dock though
  • Vulkan is buggy in dolphin
  • Touch randomly freezes sometimes
  • The real time clock gets messed up in horizon
Misc Info
  • Pair (joy/pro)cons by opening the bluetooth menu in settings and pressing the + button in the bottom left corner. Then press the sync button on the controller and select its name in the pairing window. Once both joycons are paired press each of their shoulder buttons to use as one controller
  • To use dolphin add the "dolphin-emu/ppa" ppa and install the dolphin-emu-master package.
  • To update the system run "sudo apt update", "sudo apt upgrade". This will apply all switch and ubuntu updates aside from kernel updates, they will be posted here if ever needed.
  • To limit cpu freq, run cat /sys/devices/system/cpu/cpufreq/policy0/scaling_available_frequencies.Ffind the one you want, then run: echo <freq you want> | sudo tee /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq
  • To force max freq run echo performance | sudo tee /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
  • A gui to configure overclocks and fan profiles is coming soon, along with support for using 2.0 ghz cpu
Sources
They can all be found at https://gitlab.com/switchroot with the other kernel repos on http://nv-tegra.nvidia.com

Credits
Langerhans,
Ave,
Natinusala,
CTCaer,
NVIDIA,
Everyone else in switchroot - more info on that in the future.
the is typed 2 times in the 5th feature
 

stick267

Well-Known Member
Member
Joined
Dec 17, 2018
Messages
586
Trophies
0
Age
33
XP
1,171
Country
United States
I was able to SSH into the switch and use putty from my windows machine to install dolphin. Netflix is almost 100% not gonna work. I’ve tried everything

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

Am I allowed to post stuff like this here ?
By the way did you know Ubuntu supports 4K 30 through the dock ? Also I highly recommend creating a swap file so you have more memory to work with. Running out of ram will bring this to it’s knees. 1GB swap is fine.

Good call on adding a swapfile. Might be placebo but my Switch seems to be running much smoother after creating one. I went with 2GB.

For anyone interested:
https://linuxize.com/post/how-to-add-swap-space-on-ubuntu-18-04/
Note you'll have to install nano to edit the fstab file mentioned in the article (sudo apt install nano).
 
D

Deleted User

Guest
With Retroarch, after turning on Vulkan support (cus I was getting a strange issue where GBA emulation was fine on monitor, but that in handheld mode it was 5 fps). Next thing I know, Retroarch crashes on startup and trying to do so through terminal returns
SEGMENTATION FAULT (core dumped)

Tried uninstalling, reinstalling, changing things in the cfg file. Nothings working.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Sicklyboy @ Sicklyboy: Can't wait for season 2