L4T Ubuntu - A fully featured linux on your switch

Discussion in 'Switch - Exploits, Custom Firmwares & Soft Mods' started by bylaws, Apr 28, 2019.


    168,061

    1,255
    Front-page
    [​IMG]
    L4T Ubuntu 1.2
    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)
    • 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.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.
    • 1.2:
    • Download:
    • https://download.switchroot.org/upd...1-for-switchroot-l4t-ubuntu-2019-04-28.tar.gz
    • Installation Instructions:
    • apt update && apt upgrade is NOT enough for this update
    • MAKE SURE TO DELETE THE boot FOLDER AND boot.scr BEFORE EXTRACTING THIS UPDATE
    • Extract this to the fat32 partition of your sdcard, making sure a l4t-ubuntu folder is created and the L4T ini is overwritten.
    • Changelog:
    • Enabled ntfs, nfs, squashfs (snaps may work now), ethernet drivers in kernel.
    • Added 2.0ghz overclock.
    • Enabled android ashmem drivers, needed for anbox (need arm64 ver of it and may run)
    • Potentially fixed issues with sdcards, if someones didnt work before please try again.
    • No longer conflicts with lakka.
    • Check misc info section on how to activate 2ghz mode.
    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 updates from the updates section in the thread, IMPORTANT as images don't EVER come with them
    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 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
    • NEW: To activate 2 ghz mode run
      Code:
      echo 1 | sudo tee /sys/kernel/tegra_cpufreq/overclock
      echo 2091000  | sudo tee /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq
      then run the command to force max freq if you want to use anything intensive.
    • To always use 2.0ghz mode copy
      Code:
      #!/bin/bash
      echo 1 > /sys/kernel/tegra_cpufreq/overclock
      echo  2091000 > /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq
      exit 0
      to /etc/rc.local (you'll need root to create)


    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.
     
    IbnRami, Empha, XorTroll and 135 others like this.
    Discussion (1,255 replies)
  1. bylaws
    OP

    bylaws GBAtemp Regular

    Member
    5
    Dec 11, 2018
    United Kingdom
    Reserved
     
  2. the_randomizer

    the_randomizer The Temp's official fox whisperer

    Member
    23
    GBAtemp Patron
    the_randomizer is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Apr 29, 2011
    United States
    Dr. Wahwee's castle
    Pretty cool stuff
     
    TheTechWiz25 likes this.
  3. Memoir

    Memoir Just a Memory

    Member
    19
    Jun 24, 2007
    United States
    Somewhere, over there!
    Is... Is this real? Like... REALLY REAL?
     
  4. hallo23

    hallo23 GBAtemp Regular

    Member
    4
    Sep 13, 2009
    Germany
    Damn I really wanna try this out.
    Now I have to decide if I wanna sacrifice a Sd card for that >.<

    I'm really curious how good a video player works with it.
    If someone is trying this out pls test a video player for me <3 (Especially high bitrate 1080p files)
     
    Last edited by hallo23, Apr 28, 2019
    Monti64 likes this.
  5. stick267

    stick267 GBAtemp Fan

    Member
    4
    Dec 17, 2018
    United States
    Let's goooooo. Thanks @bylaws.

    FYI Dolphin Ishiiruka works much better with Vulkan than stock Dolphin.

    https://github.com/Tinob/Ishiiruka

    To install, run this command first to get all of the dependencies for it:
    Warning: Spoilers inside!
    Then follow the Linux Global Build instructions in the repo to compile/install.
     
    Last edited by stick267, May 1, 2019
  6. CTCaer

    CTCaer GBAtemp Maniac

    Member
    11
    Mar 22, 2008
    Greece
    Gratz for release!
     
  7. The Real Jdbye

    The Real Jdbye Always Remember 30/07/08

    Member
    18
    GBAtemp Patron
    The Real Jdbye is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Mar 17, 2010
    Norway
    Alola
    Damn, this looks nice. But is it possible to customize the OC? I don't really feel comfortable OCing my Switch. At least not by that much.
    What's the FPS like?
     
    Last edited by The Real Jdbye, Apr 28, 2019
    TheTechWiz25 and JavaScribe like this.
  8. Metion

    Metion Advanced Member

    Newcomer
    3
    Oct 26, 2015
    Italy
    Thank you, i was waiting an updated linux build for a while.
    If you could use the wired joycons as a mouse it would be the perfect portable linux machine
     
    TheTechWiz25 and Memoir like this.
  9. eriol33

    eriol33 GBAtemp Advanced Fan

    Member
    6
    Jan 2, 2014
    Indonesia
    can someone check whether dolphin or cemu runs well?
     
  10. bottmint

    bottmint Advanced Member

    Newcomer
    3
    Oct 28, 2017
    United States
    Works wonderfully! Thanks to all the contributors to this!

    From the videos I've played (docked), it runs well, amd the picture looks great! You could likely back up your card, flash the image, resize the fat 32 partition to suit your needs, amd leave some space to resize the ext4 partition once you're done with the initial setup. Horizon only looks for the first fat32/exfat partition, afaik.

    The touchscreen works fairly well.
     
    Last edited by bottmint, Apr 28, 2019
    Monti64, Metion and hallo23 like this.
  11. ZachyCatGames

    ZachyCatGames GBAtemp Advanced Maniac

    Member
    8
    Jun 19, 2018
    United States
    Hell
    Dolphin runs decently. Running cemu isn’t possible
     
    eriol33 likes this.
  12. bylaws
    OP

    bylaws GBAtemp Regular

    Member
    5
    Dec 11, 2018
    United Kingdom
    posted in info section.

    Fps is like 27in WW but if you turn emulated clock down you can get to 30 in some places
     
    Last edited by bylaws, Apr 28, 2019
  13. stick267

    stick267 GBAtemp Fan

    Member
    4
    Dec 17, 2018
    United States
    Dolphin is solid with Vulkan. Using an earlier build, I played through Dragon Roost Cavern in Wind Waker. Usually around 25fps, but full 30fps on occasion. ~20fps pretty often inside Dragon Roost Cavern.

    Skip to ~9:00 in this video to see a few mins on Outset Island.
    https://www.dailymotion.com/video/x76a6vf
     
    Last edited by stick267, Apr 28, 2019
  14. StarGazerTom

    StarGazerTom GBAtemp Advanced Maniac

    Member
    10
    Feb 2, 2015
    Oh FUCK! I'mma get this right now to try!

    I hope that they can figure out how to get the joycons to work while connected to the system, else it makes it a little less Portable friendly.
     
    Last edited by StarGazerTom, Apr 28, 2019
  15. Tumoche

    Tumoche GBAtemp Regular

    Member
    4
    Apr 30, 2017
    Spain
    I have a switch with a dead screen. Will this work or I need the screen to select something somewhere?
    Edit: on the dock of course.
     
    Last edited by Tumoche, Apr 28, 2019
  16. GibboHull

    GibboHull Member

    Newcomer
    1
    Apr 4, 2019
    United Kingdom
    I regularly use in home switching to play games, in fact it's probably what I use my switch for the most at the minute.

    Does anyone know if it would perform better if I ran the Linux moonlight client through this, especially with the sound support and video acceleration, or would I be better off just carrying on as I am?
     
  17. wiewiec

    wiewiec GBAtemp Fan

    Member
    5
    Dec 24, 2015
    Poland
    Somewhere
    Brilliant! Android and Linux - great stuff comes to Switch. I love it and no matter that Nintendo have it as port machine from dead Wii U.
     
  18. Techjunky90

    Techjunky90 GBAtemp Fan

    Member
    5
    Apr 7, 2017
    United States
    So, does Kodi work using hardware acceleration?
     
  19. bottmint

    bottmint Advanced Member

    Newcomer
    3
    Oct 28, 2017
    United States
    You need the screen for the initial setup. If you have a switch with a working screen, or can borrow one for the setup, that should work and get you to the desktop. A usb keyboard will be handy for docked mode.
     
Loading...