

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



Beware, using high clocks in handheld mode will degrade your batteries capacity a lot faster than at stock clocks

If you can't install an application check this thread, and ask all questions there https://gbatemp.net/threads/l4t-ubuntu-applcation-install-guides.537579/

Features

Dock support with USB

Bluetooth (both controllers and audio)

Full Joycon Support(Excluding NFC, and IRcamera)

Nvidia GPU drivers - Vulkan and OpenGL

Audio - Headphones, speakers and over HDMI when docked.

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)

Overclocking

LP0 Sleep mode

IMU/Ambiant Light sensor support

Quick Charging

reboot2payload

Minerva Memory Training

Support for Moonlight-QT

Prerequisites

A dedicated 16GB+ sdcard

Downloads

Torrent Links can be found here:

https://torrents.switchroot.org/ubuntu/



Updates

How to install:

Download the image(Full with extra dev/cuda stuff, lite like old image) you want from the downloads section and extract. Write it to your sdcard using a program such as etcher or dd Apply any updates from the updates section in the thread, IMPORTANT as images don't EVER come with them Boot hekate and select L4T from the configs menu. Wait for around 2-4 minutes while it initially loads Go through the setup process - make sure not to dock the console in this period. Once the initial setup is finished and you are on the login screen it is advisable to reboot: Load hekate again and select L4T as a payload. Log in and open the "Disks" app Select the second partition of your sdcard and click the gears icon Choose resize and change the size to the full amount of available space. Enjoy, you now have fully featured Ubuntu on your switch!

Bugs

Docking while having a ssh session open can cause the display to not turn off correctly(not sure if this still applies)

USB OTG - works fine in dock though

Vulkan is buggy in dolphin..... Use Ishuriika it works better.

The real time clock gets messed up in horizon (not sure if this still applies)

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 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. Find 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



Code: echo 1 | sudo tee /sys/kernel/tegra_cpufreq/overclock echo 2091000 | sudo tee /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq NEW: To activate 2 ghz mode run



Code: echo 1 > /sys/kernel/tegra_cpufreq/overclock echo 2091000 > /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq To always use 2.0ghz mode copy



​

Sources

They can all be found at https://gitlab.com/switchroot with the other kernel repos on http://nv-tegra.nvidia.com





Get firmware files from lakka-switch github and place them in /lib/firmware on the kernel build machine, or it will fail to build. You can use these scripts to build kernels for other linux distros as well.



For what it is worth, the current kernel in the image is built without cypress-wifi, and I plan on adding a ton more modules for hardware expansion. This is still basically the same config from 1.3.1 update, with a few minor changes for new drivers. Use these scripts if you want to build your own kernel: https://gitlab.com/switchroot/kernel/l4t-kernel-build-scripts/tree/test Get firmware files from lakka-switch github and place them in /lib/firmware on the kernel build machine, or it will fail to build. You can use these scripts to build kernels for other linux distros as well.For what it is worth, the current kernel in the image is built without cypress-wifi, and I plan on adding a ton more modules for hardware expansion. This is still basically the same config from 1.3.1 update, with a few minor changes for new drivers.

Credits

Bylaws,

Langerhans,

Ave,

Natinusala,

CTCaer,

Gavin_Darkglider,

DanielOgorchock(Joycon drivers/joycond),

stary2001 (reboot2payload),

NVIDIA,

Everyone else in switchroot - more info on that in the future.