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,
Dolphin works fine. I play PSO Ep 1 & 2 regularly at 30FPS with the increased draw distance patch. If you are only interested in Dolphin, then use Lakka instead. You'll get more consistent performance.

I think I am turning to this one instead of Lakka. Never liked Lakka, I guess.
 
I think I am turning to this one instead of Lakka. Never liked Lakka, I guess.
You'll have a good experience either way. Just keep in mind most people suggest using Ishiiruka instead of Dolphin as it seemingly performs better with Vulkan and doesn't require exclusive fullscreen (for Vulkan) to work with Ubuntu.
 
  • Like
Reactions: spotanjo3
You'll have a good experience either way. Just keep in mind most people suggest using Ishiiruka instead of Dolphin as it seemingly performs better with Vulkan and doesn't require exclusive fullscreen (for Vulkan) to work with Ubuntu.
Ishiiruka isn't really the preferred Dolphin build anymore. Stock Dolphin performs a bit better, but as you mentioned it requires fullscreen to function with Vulkan. I always play in fullscreen so that isn't a dealbreaker for me, but it might be for others.
 
  • Like
Reactions: spotanjo3
Ishiiruka isn't really the preferred Dolphin build anymore. Stock Dolphin performs a bit better, but as you mentioned it requires fullscreen to function with Vulkan. I always play in fullscreen so that isn't a dealbreaker for me, but it might be for others.
Unfortunately, I don't carry around a keyboard with me, so all I have is my mouse. If I go exclusive fullscreen, I wouldn't be able to backout as I have no way to cancel the fullscreen. I'd love to just go fullscreen though, would be nice.
 
  • Like
Reactions: spotanjo3
Code:
# bridge setup
brctl addbr br0
ifconfig br0 10.10.20.1/24 up

# enable ipv4 forwarding
echo "1" > /proc/sys/net/ipv4/ip_forward

# netfilter cleanup
iptables --flush
iptables -t nat -F
iptables -X
iptables -Z
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT

# netfilter network address translation
iptables -t nat -A POSTROUTING -o wlan0 -s 10.10.20.0/24  -j MASQUERADE

@Gavin_Darkglider So I managed to pull this script from a Stack webpage. It's a method to setup a Nat without using a DNS server or DHCP, though the script warned that this could be potentially unsafe. I'm assuming I would just change the IPs already listed to the host local IP (192.168.x.x), then add the tap device to the bridge by itself and it should work from here. Am I missing anything else?
 
Then where did the idea that the Ishiiruka performing better with Vulkan come from?
I'm sure. I've heard conflicting stories from all over GBATemp at this point. The Install Guides thread I followed mentioned Ishiiruka was better due to vulkan. I've never heard someone say Dolphin's ALWAYS been better for L4T on the Switch though, that is new.
 
  • Like
Reactions: tabzer
Code:
# bridge setup
brctl addbr br0
ifconfig br0 10.10.20.1/24 up

# enable ipv4 forwarding
echo "1" > /proc/sys/net/ipv4/ip_forward

# netfilter cleanup
iptables --flush
iptables -t nat -F
iptables -X
iptables -Z
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT

# netfilter network address translation
iptables -t nat -A POSTROUTING -o wlan0 -s 10.10.20.0/24  -j MASQUERADE

@Gavin_Darkglider So I managed to pull this script from a Stack webpage. It's a method to setup a Nat without using a DNS server or DHCP, though the script warned that this could be potentially unsafe. I'm assuming I would just change the IPs already listed to the host local IP (192.168.x.x), then add the tap device to the bridge by itself and it should work from here. Am I missing anything else?

I think it would work, but I am not sure off the top of my head. I might be mistaken, but you might need to set up rules to forward to br0, and nat by definition shouldnt work without it's own dhcp server. I have never tried to set it up without one.
 
Then where did the idea that the Ishiiruka performing better with Vulkan come from?
Ishiiruka with Vulkan just works. Choose Vulkan, load a game, play. With regular Dolphin you have to force the game to launch fullscreen or else you get an error and only audio without video will play. That's why everyone was recommending Ishiiruka at first.

Also, it's not like regular Dolphin vastly outperforms Ishiiruka. It's a few FPS here and there.


Unfortunately, I don't carry around a keyboard with me, so all I have is my mouse. If I go exclusive fullscreen, I wouldn't be able to backout as I have no way to cancel the fullscreen. I'd love to just go fullscreen though, would be nice.
You can set up your joycons to act as a mouse/keyboard using qjoypad. I have the home button mapped as the escape key so I can toggle fullscreen when I want to exit the game.
 
  • Like
Reactions: tabzer
On the topic of Retroarch:

@Gavin_Darkglider I tested your suggestion and added a verbose flag to retroarch. I was also suspicious as to whether my 144Hz 2K monitor was fucking with my poor little switch, so I tried it on the monitor and then in handheld mode.

Here's the output: https://pastebin.com/4jFs4zPQ

One line that sticks out to me:
[INFO] [Video]: Graphics driver did not initialize an input driver. Attempting to pick a suitable driver.

Sounds like I may have missed a video drive somewhere in the install? I followed the tutorial carefully, but I'll take another look.

And in handheld mode:
ALSA lib seq_hw.c:466:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or directory
[MIDI]: snd_seq_open failed with error -2.
[MIDI]: Initialization failed (list of input devices unavailable).

I know ALSA handles audio, so maybe I've got something messed up there as well?
 
is that for all of retroarch, or just the saturn emulator? It seems to be trying to launch some saturn thing. As far as the sound issue, not sure, but that would only stop audio, and it finds the xorg graphis driver further down the log, so I am not sure.
 
My username is mrsaturn, so you might be seeing that. I only get as far as launching retroarch before it black-screens and does nothing forever.
 
Quick question: which browser do you guys use on L4T? I am using Chromium but it is SLOW. I can not open two tabs without having all the system almost unresponsive and sometimes crashing everything.
 
Ishiiruka with Vulkan just works. Choose Vulkan, load a game, play. With regular Dolphin you have to force the game to launch fullscreen or else you get an error and only audio without video will play. That's why everyone was recommending Ishiiruka at first.

There's more to it than that. I never saw Ishiiruka being recommended so that people can play Dolphin in windowed mode. Also, using Vulkan should be better for battery life, yes? It's only in this thread have I heard that regular Dolphin performs better. I don't know if that's based on actual framerate/graphic benchmarks or efficiency in relation to the power used and the output offered.

That being said, Ishiiruka is not being updated tmk.
 
There's more to it than that. I never saw Ishiiruka being recommended so that people can play Dolphin in windowed mode. Also, using Vulkan should be better for battery life, yes? It's only in this thread have I heard that regular Dolphin performs better. I don't know if that's based on actual framerate/graphic benchmarks or efficiency in relation to the power used and the output offered.

That being said, Ishiiruka is not being updated tmk.
It wasn't until recently that the fullscreen workaround for Vulkan in regular Dolphin was widely known. So up until now it was considered to be broken. Which is why Ishiiruka was the de-facto recommendation. And I'm not familiar with the code or anything, but you're right about Ishiiruka not being up-to-date with regular Dolphin, which is probably where the modest performance improvement comes from.
 
This doesn't really pertain to the topic at hand but can someone check this out.; just to see if its feasible.
https:// elinux.org/Tegra/Downstream_SW/Linux4Tegra/WebBrowsers/Hardware_Accelerated_Video_Decoding
 
Then where did the idea that the Ishiiruka performing better with Vulkan come from?
back when L4T was new people didn’t know that you needed fullscreen to have vulkan working in dolphin, but it did work in Ishiiruka without fullscreen, so people just assumed it was completely broken in regular dolphin. From my experience Ishiiruka with vulkan performs about the same as regular dolphin with openGL in most cases
 
This doesn't really pertain to the topic at hand but can someone check this out.; just to see if its feasible.
https:// elinux.org/Tegra/Downstream_SW/Linux4Tegra/WebBrowsers/Hardware_Accelerated_Video_Decoding

just looking at it, it would work, assuming the patches can still be applied to the latest chromium source, and arent specific to arm, as this is an arm64 processor. Even then, it would probably be a matter of changing a few lines in a makefile.
 

Site & Scene News

Popular threads in this forum