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,

Deathscreton

Well-Known Member
Member
Joined
Oct 1, 2009
Messages
826
Trophies
0
XP
1,092
Country
United States
@bylaws So sleep mode by pressing the power button doesn't work, but if I go to Suspend from the power menu, then the device will properly go to sleep and I can wake it back up by pressing the power button. I'm using the XFCE4 desktop environment. I did complete the update as instructed. What cold I be doing wrong?
 

Gavin_Darkglider

Well-Known Member
Member
Joined
May 20, 2019
Messages
232
Trophies
0
Age
34
XP
581
Country
United States
@bylaws So sleep mode by pressing the power button doesn't work, but if I go to Suspend from the power menu, then the device will properly go to sleep and I can wake it back up by pressing the power button. I'm using the XFCE4 desktop environment. I did complete the update as instructed. What cold I be doing wrong?

Unity was handling the sleep button. it will wake the console, as the console waits for an interupt to be triggered to wake up, which the power button does. To fix the problem, you have to see how xfce handles that button, and fix it accordingly.

After googling for a couple of minutes, if you are using logind, then this should fix the problem. type into a terminal:
xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/logind-handle-suspend-key -n -t bool -s true
 

trohn_javolta

Active Member
Newcomer
Joined
Aug 9, 2018
Messages
25
Trophies
0
Age
43
XP
114
Country
Antigua and Barbuda
Even if I wanted to replace it with android, that isnt possible, as android uses framebuffer graphics, not X11, where the Nvidia drivers are loaded. I am working on building gentoo, from nothing, so everything is optimized specifically for the tegra210. This should also give me a decent video player with hardware acceleration(kodi). If I can find 32bit video card libraries, I can get netflix to work there as well, as I have had working netflix in kodi 18 on the switch for 8 months now, using a 32bit gentoo build. ......

Ok, that goes beyond my knowledge, I have to admit. I just wonder how Android can run on my Nvidia Shield Tv, which has the same SoC as switch. And why exactly the Android from the Shield cannot be ported to the switch? Or maybe the Lineageos version available for the Shield.
But the gentoo stuff sounds very promising!
Honestly, if Kodi can work as good on the switch as it does on my Shield (playback of 4k@60 hdr hevc material via nas, and all the inputstream, mpeg dash drm stuff) I'll sell my Shield Tv.
 

GBADWB

Well-Known Member
Member
Joined
May 12, 2016
Messages
283
Trophies
0
Age
32
XP
1,803
Country
United States
Ok, that goes beyond my knowledge, I have to admit. I just wonder how Android can run on my Nvidia Shield Tv, which has the same SoC as switch. And why exactly the Android from the Shield cannot be ported to the switch? Or maybe the Lineageos version available for the Shield.
But the gentoo stuff sounds very promising!
Honestly, if Kodi can work as good on the switch as it does on my Shield (playback of 4k@60 hdr hevc material via nas, and all the inputstream, mpeg dash drm stuff) I'll sell my Shield Tv.

The SOC isn't the only thing important on a build. That's like saying the OG Xbox/PS4/Xbox One could be adapted to running PC stuff because of the x86 processor(albeit the latter stuff being semi custom, it is possible to get systems running on non verified hardware). Tweaks to the OS, as well as possible modifications to the motherboard chipset also play a pretty big role in compatibility. For instance, most desktop systems do not use GDDR memory as system memory in the way the PS4 does(I only say most because the Subor Z+ is a desktop PC in a almost console like layout(unified gddr5 ram as well as custom ryzen quad core with 24 Vega CU's)). And even in that case, the Subor Z+ has a few glitches on running some desktop applications, despite it being just a step off of a traditional x86 machine.
 

Techjunky90

Well-Known Member
Member
Joined
Apr 7, 2017
Messages
487
Trophies
0
Age
33
XP
882
Country
United States
Ok, that goes beyond my knowledge, I have to admit. I just wonder how Android can run on my Nvidia Shield Tv, which has the same SoC as switch. And why exactly the Android from the Shield cannot be ported to the switch? Or maybe the Lineageos version available for the Shield.
But the gentoo stuff sounds very promising!
Honestly, if Kodi can work as good on the switch as it does on my Shield (playback of 4k@60 hdr hevc material via nas, and all the inputstream, mpeg dash drm stuff) I'll sell my Shield Tv.
Switch can not do 4k 60fps for video playback, it can only do UHD 30fps because of hardware limitations
 

spenat

Active Member
Newcomer
Joined
Aug 29, 2018
Messages
25
Trophies
0
Age
29
XP
1,084
Country
Czech Republic
Do I need to install all previous updates, or just the last one?

I know it has been discussed in this topic already, but there was no clear answer to it.

Thanks!
 

Deathscreton

Well-Known Member
Member
Joined
Oct 1, 2009
Messages
826
Trophies
0
XP
1,092
Country
United States
Learned the hard way that you can't bridge wireless devices to virtual devices. Even using iw 4addr doesn't work since the switch NIC doesn't support 4 address spaces. In this case, I assume ip routing/NAT would be the best solution?
 

Gavin_Darkglider

Well-Known Member
Member
Joined
May 20, 2019
Messages
232
Trophies
0
Age
34
XP
581
Country
United States
Learned the hard way that you can't bridge wireless devices to virtual devices. Even using iw 4addr doesn't work since the switch NIC doesn't support 4 address spaces. In this case, I assume ip routing/NAT would be the best solution?

I havnt tried bridging in a while, but it never worked the way I wanted. Nat is a good option, that works, but will seperate your virtual machine from the rest of your network. You will need to set up firewall rules to forward all traffic.
 

Deathscreton

Well-Known Member
Member
Joined
Oct 1, 2009
Messages
826
Trophies
0
XP
1,092
Country
United States
I havnt tried bridging in a while, but it never worked the way I wanted. Nat is a good option, that works, but will seperate your virtual machine from the rest of your network. You will need to set up firewall rules to forward all traffic.
Ah, I don't know if that'll work. Dolphin is reliant on the tap device sharing an IP as the Gamecube expects a DHCP server to provide it a working IP address. It just may not be possible without a physical ethernet device.
 

Gavin_Darkglider

Well-Known Member
Member
Joined
May 20, 2019
Messages
232
Trophies
0
Age
34
XP
581
Country
United States
Ah, I don't know if that'll work. Dolphin is reliant on the tap device sharing an IP as the Gamecube expects a DHCP server to provide it a working IP address. It just may not be possible without a physical ethernet device.

It is workable, when you set up nat, the console becomes a router, and will supply DHCP. Obviously you need to set up dhcpd or dnsmasq(Handles DNS and DHCP, so better option) before so dolphin is happy. Then all you need to do is set up ip forwarding, and port forward the ports that are needed. This guide will get you in the general ball park, at least for dnsmasq configuration, and firewall rules. https://wiki.gentoo.org/wiki/Home_router
 

Deathscreton

Well-Known Member
Member
Joined
Oct 1, 2009
Messages
826
Trophies
0
XP
1,092
Country
United States
It is workable, when you set up nat, the console becomes a router, and will supply DHCP. Obviously you need to set up dhcpd or dnsmasq(Handles DNS and DHCP, so better option) before so dolphin is happy. Then all you need to do is set up ip forwarding, and port forward the ports that are needed. This guide will get you in the general ball park, at least for dnsmasq configuration, and firewall rules. https://wiki.gentoo.org/wiki/Home_router
Someone get this man a Linux Guru tag pls. I've got a lot of work ahead of me this weekend.
 

Gavin_Darkglider

Well-Known Member
Member
Joined
May 20, 2019
Messages
232
Trophies
0
Age
34
XP
581
Country
United States
Someone get this man a Linux Guru tag pls. I've got a lot of work ahead of me this weekend.

Just wait until I finish my Gentoo 4 Tegra build....... I have all sorts of fun things in store for people, including(Hopefully) Kodi with hardware acceleration(OpenMax Player was removed last month, after kodi 18 officially dropped), and libwedevine(Netflix/Amazon/Other DRM library, needs 32bit chroot, so might not be possible with hardware acceleration), I then have extra patches for USB gadgets, for fun hacking stuff, and an almost complete reimplementation of the bashbunny framework, that I plan on integrating into kodi as well..... Still a bit of work there, but on my mainline 32bit build, I have kodi 18 with netflix, with battery monitoring support, though I handled that with a plugin..... I know where the problem is in kodi sources, but there is no simple patch, as their battery monitoring is a total of all batteries connected, so it was easier than hardcoding 1 battery. I also have joycon battery status implemented. Now, I just have to find a way to implement all of that into the gui. lol. The battery works monitor works, but the joycon stuff I was going to keep in the plugin, as the status bar is a bit cramped anyway.

As for being a linux guru, I have been running linux since before windows vista released, so, I know enough. lol.

Does 1.3.1 fix the UI not responding bug?

No, it primarily changes when on the interupt the power button is registered, from what I could see, so instead of catching the interupt on the rising edge, it catches it on the falling edge. Probably makes the power button more responsive. Not sure how it would help with battery life, but maybe bylaws could answer that. Also, usually userspace issues such as UI not responding is not a kernel issue, but an issue with the software. That being said, the touch screen driver still has a few issues, but is much better that it was in the failoverfl0w kernel.
 
Last edited by Gavin_Darkglider,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    S @ salazarcosplay: how are you doing @K3Nv2