Hacking RELEASE Noob-Friendly L4T Ubuntu

Silent_Gunner

Crazy Cool Cyclops
Banned
Joined
Feb 16, 2017
Messages
2,696
Trophies
0
Age
29
XP
4,727
Country
United States
Update with fixed Retroarch now posted as well as an early draft of installation guide.

Also @Silent_Gunner I checked and I"m pretty sure no Dolphin or Dreamcast cores installed (but def double check), but Dolphin works standalone. I'll look into either installing a DC core or a separate DC emulator in a future image.

*bows*

Thank you. :)

Going to give this a shot and see what I can pull off with GC/Wii (doubtful on the latter, but we'll see) for now and how everything else handles! ;)
 

trohn_javolta

Active Member
Newcomer
Joined
Aug 9, 2018
Messages
25
Trophies
0
Age
43
XP
114
Country
Antigua and Barbuda
Kodi v18 with inputstream adaptive and everything else required for playing back drm protected stuff would be awesome :lol:
But I guess that isn't gonna happen, heard for inputstream adaptive we need 32bit libs or sth. like that. :sad:
 

Silent_Gunner

Crazy Cool Cyclops
Banned
Joined
Feb 16, 2017
Messages
2,696
Trophies
0
Age
29
XP
4,727
Country
United States
Alrighty, finally got some gameplay on this baby, no pun intended! Unfortunately, RetroArch still doesn't want to cooperate with me for some reason when I go to launch SNES9x ("latest" build, the Switch should be more than capable of handling it) and still shits out a black screen. I generally use the SNES emulator as my softball to ensure everything's working right before I try to launch something more advanced like PCSXR-Reloaded (which isn't in this build for some reason and wasn't there when I DL'ed RetroArch on my last attempts to get Ubuntu running earlier this month, only beetlepsx is there, a core I've never bothered with). But still, what could be causing this? I don't think SNES9x, last I checked, required a 2.0GHz clock on a CPU to run, considering it was the emulator I was using for SNES on an OLD Windows XP machine like 10 years ago!

Still, I decided to try Dolphin without changing any settings using Vulkan and by having the 2.0GHz terminal window open in the BG, and all I have to say is...

OMG!!!!!!!!!!

I mean, I never expected Soulcalibur II (I believe it's ETA Prime's or some other EmulationTuber's test to get an idea of how well things will run in Dolphin) to even be playable, but lo and behold, it's running at 40-50 fps, and while the sound stuttering was annoying, it was running smoothly enough for yours truly to deal with the controls being...non-standard for a SC game in my experience and play 1 run through the arcade mode as Maxi. It doesn't replace me playing it on a PC by any means, but I was definitely somewhat skeptical about GC emulation. Unfortunately, I didn't have any Wii games to test, but I think that might have been for the better because the next game Metroid Prime 1...

...ran like shit. I know, it's one of the more demanding games for the system, but 30-40 FPS depending on what's going on without changing any settings as stated previously isn't a very positive first impression for running the more demanding games of the emulator, ESPECIALLY Metroid Prime 2 with its portals that even give my i7-8700k with a GTX 1080 Founders Edition with 16GB of RAM on Windows 10 a run for its money when any of them are open with any sort of IR bump that goes past 3x, and I think the game still slowed down the last time I played it like that if I remember right! Not saying it won't ever happen, but I have no idea how far the Switch can be pushed without resorting to some enthusiast levels of modding like delidding the CPU and using something like Conductonaut to get the most out of OC'ing on the Switch, and 2.0 GHz is on the upper end of the spectrum from what I've heard.

Resident Evil REMake is perfectly playable. There's some stutters for when it has to load things in the intro, but otherwise, it's playable without some of the rather ugly looking upscales of BGs in the remaster. Still, the remaster probably doesn't tax the CPU as hard as Dolphin...

Sonic Adventure DX runs at 30FPS when fighting Chaos in the intro.

Smash Melee I tried with Samus and Link on Hyrule Temple, and outside of some frame drops, its running at full speed. Strangely, the menus are more demanding than the character select screen. But bump the amount of players up to 4 for the stage and you get a Wombo Combo of playing Smash Melee at 45FPS, and that's without the item spawn rate being set to Very High!

Warioware for GC (can we get this simple party game with the additions of the later games using the capabilities of the Joy-Cons all in one package for the Switch that can be played locally? It'd be a fun game for when family's over in my experience!) runs at 60FPS, not a surprise considering it's just a port of the GBA game with some local multiplayer tossed in.

F-Zero GX isn't running full speed with all of the racers, especially on tracks like Sand Ocean with that effect in the background. It couldn't even maintain a solid 60 with one racer in practice on Mute City! It seems the only stable way to run this game, even on PC, was to use DX11, as OGL, last I tried it, might work for some time until the game would eventually just reset out of nowhere! Fun fact: The main composer of music for the Yakuza games was the composer for this game!

After this, I decided to take a quick break and pull my Switch out of the dock to feel the back for how heated it was. Bear in mind, this is a separate Switch tablet I got off of eBay for a reduced price, and I don't think the seller made any modifications to it to make it absorb heat better or anything like that, but it wasn't burning my hand as much as when I pick up my ODroid XU4 in its aluminum case after playing DC/NAOMI/Atomiswave/something demanding, but then again, that's a very different device with a very different cooling solution.

Just a note about sleep mode: it doesn't seem to turn off any connected Joy-Cons/Pro Controllers as far as I can tell. Not sure if that's something to be fixed later down the road, or if I'm doing something wrong, but it's something I figured I'd point out.

Still, if there's one thing I don't like about Ubuntu, it's the reliance upon a M/KB that would make using this Switch for if I were to bring it to someone's house inconvenient for travel if I wanted to use the TV. I know, #FirstWorldProblems, but maybe I can work this out with a frontend of some kind for Dolphin, which reminds me, how do you close Dolphin or get the window out of full screen for Linux? I tried the usual "Alt+Enter," and some other combinations, but I couldn't figure it out. I ended up using the Not-Task-Manager to close everything down anytime I wanted to switch a game. Noob questions, I know, but I haven't exactly had the time to take a deep dive into the Ubuntu+Proton rabbithole yet on my main PC, especially when it was overheating after a very LONG session of yours truly playing Yakuza Kiwami on Steam a week ago that had the top of my case being HOTTER than the aforementioned Odroid XU4 case!


tl;dr - Dolphin runs better than I thought it would for one of the few games that I wouldn't mind using Dolphin for that doesn't have a version or sequel on the Switch already and I'm kind of struggling with some weird noob-bait problems for Ubuntu, RetroArch, and some software on Linux in general.
 
  • Like
Reactions: hippy dave

Refriger8tor

Well-Known Member
OP
Member
Joined
Sep 2, 2013
Messages
135
Trophies
0
Location
A kitchen near you.
XP
458
Country
United States
Alrighty, finally got some gameplay on this baby, no pun intended! Unfortunately, RetroArch still doesn't want to cooperate with me for some reason when I go to launch SNES9x ("latest" build, the Switch should be more than capable of handling it) and still shits out a black screen. I generally use the SNES emulator as my softball to ensure everything's working right before I try to launch something more advanced like PCSXR-Reloaded (which isn't in this build for some reason and wasn't there when I DL'ed RetroArch on my last attempts to get Ubuntu running earlier this month, only beetlepsx is there, a core I've never bothered with). But still, what could be causing this? I don't think SNES9x, last I checked, required a 2.0GHz clock on a CPU to run, considering it was the emulator I was using for SNES on an OLD Windows XP machine like 10 years ago!

Still, I decided to try Dolphin without changing any settings using Vulkan and by having the 2.0GHz terminal window open in the BG, and all I have to say is...

OMG!!!!!!!!!!

I mean, I never expected Soulcalibur II (I believe it's ETA Prime's or some other EmulationTuber's test to get an idea of how well things will run in Dolphin) to even be playable, but lo and behold, it's running at 40-50 fps, and while the sound stuttering was annoying, it was running smoothly enough for yours truly to deal with the controls being...non-standard for a SC game in my experience and play 1 run through the arcade mode as Maxi. It doesn't replace me playing it on a PC by any means, but I was definitely somewhat skeptical about GC emulation. Unfortunately, I didn't have any Wii games to test, but I think that might have been for the better because the next game Metroid Prime 1...

...ran like shit. I know, it's one of the more demanding games for the system, but 30-40 FPS depending on what's going on without changing any settings as stated previously isn't a very positive first impression for running the more demanding games of the emulator, ESPECIALLY Metroid Prime 2 with its portals that even give my i7-8700k with a GTX 1080 Founders Edition with 16GB of RAM on Windows 10 a run for its money when any of them are open with any sort of IR bump that goes past 3x, and I think the game still slowed down the last time I played it like that if I remember right! Not saying it won't ever happen, but I have no idea how far the Switch can be pushed without resorting to some enthusiast levels of modding like delidding the CPU and using something like Conductonaut to get the most out of OC'ing on the Switch, and 2.0 GHz is on the upper end of the spectrum from what I've heard.

Resident Evil REMake is perfectly playable. There's some stutters for when it has to load things in the intro, but otherwise, it's playable without some of the rather ugly looking upscales of BGs in the remaster. Still, the remaster probably doesn't tax the CPU as hard as Dolphin...

Sonic Adventure DX runs at 30FPS when fighting Chaos in the intro.

Smash Melee I tried with Samus and Link on Hyrule Temple, and outside of some frame drops, its running at full speed. Strangely, the menus are more demanding than the character select screen. But bump the amount of players up to 4 for the stage and you get a Wombo Combo of playing Smash Melee at 45FPS, and that's without the item spawn rate being set to Very High!

Warioware for GC (can we get this simple party game with the additions of the later games using the capabilities of the Joy-Cons all in one package for the Switch that can be played locally? It'd be a fun game for when family's over in my experience!) runs at 60FPS, not a surprise considering it's just a port of the GBA game with some local multiplayer tossed in.

F-Zero GX isn't running full speed with all of the racers, especially on tracks like Sand Ocean with that effect in the background. It couldn't even maintain a solid 60 with one racer in practice on Mute City! It seems the only stable way to run this game, even on PC, was to use DX11, as OGL, last I tried it, might work for some time until the game would eventually just reset out of nowhere! Fun fact: The main composer of music for the Yakuza games was the composer for this game!

After this, I decided to take a quick break and pull my Switch out of the dock to feel the back for how heated it was. Bear in mind, this is a separate Switch tablet I got off of eBay for a reduced price, and I don't think the seller made any modifications to it to make it absorb heat better or anything like that, but it wasn't burning my hand as much as when I pick up my ODroid XU4 in its aluminum case after playing DC/NAOMI/Atomiswave/something demanding, but then again, that's a very different device with a very different cooling solution.

Just a note about sleep mode: it doesn't seem to turn off any connected Joy-Cons/Pro Controllers as far as I can tell. Not sure if that's something to be fixed later down the road, or if I'm doing something wrong, but it's something I figured I'd point out.

Still, if there's one thing I don't like about Ubuntu, it's the reliance upon a M/KB that would make using this Switch for if I were to bring it to someone's house inconvenient for travel if I wanted to use the TV. I know, #FirstWorldProblems, but maybe I can work this out with a frontend of some kind for Dolphin, which reminds me, how do you close Dolphin or get the window out of full screen for Linux? I tried the usual "Alt+Enter," and some other combinations, but I couldn't figure it out. I ended up using the Not-Task-Manager to close everything down anytime I wanted to switch a game. Noob questions, I know, but I haven't exactly had the time to take a deep dive into the Ubuntu+Proton rabbithole yet on my main PC, especially when it was overheating after a very LONG session of yours truly playing Yakuza Kiwami on Steam a week ago that had the top of my case being HOTTER than the aforementioned Odroid XU4 case!


tl;dr - Dolphin runs better than I thought it would for one of the few games that I wouldn't mind using Dolphin for that doesn't have a version or sequel on the Switch already and I'm kind of struggling with some weird noob-bait problems for Ubuntu, RetroArch, and some software on Linux in general.

I'm pretty sure I mapped the hot key to get out of full screen dolphin to the right joycon home button, give it a try and if that doesn't work you should be able to set it in settings somewhere.

I'll test some SNES games later, I only tested with N64 Mupen.
 

Refriger8tor

Well-Known Member
OP
Member
Joined
Sep 2, 2013
Messages
135
Trophies
0
Location
A kitchen near you.
XP
458
Country
United States
You didn't read my conversation right?
Be says that these languages are pre installed but they aren't.
This makes this post completely unnecessary
I am pretty sure that they are installed. Type "java - version" and "which clang" in the terminal to check (or if anybody else in the thread that has installed this could to verify for me, otherwise I will check myself later).
 
Last edited by Refriger8tor,

Freeze1919

Well-Known Member
Newcomer
Joined
May 18, 2019
Messages
58
Trophies
0
Age
32
XP
100
Country
Australia
Many sincere apologies for the noob question ;P, but how do you actually shutdown ubuntu. Is it just a terminal sudo command or is there an icon shortcut I am missing???? I've been itching to try it out for a while and considering I'm a complete linux novice having updates and apps installed is very much appreciated!
 
D

Deleted User

Guest
I am pretty sure that they are installed. Type "java - version" and "which clang" in the terminal to check (or if anybody else in the thread that has installed this could to verify for me, otherwise I will check myself later).
java is not javac means you cant code.
then you should say that these runtimes and these script languages and these IDEs are included.
because i thought you mean the language and not the runtime.
 

Sethtimus Prime

Well-Known Member
Member
Joined
Nov 16, 2012
Messages
101
Trophies
1
Age
40
XP
159
Country
United States
Many sincere apologies for the noob question ;P, but how do you actually shutdown ubuntu. Is it just a terminal sudo command or is there an icon shortcut I am missing???? I've been itching to try it out for a while and considering I'm a complete linux novice having updates and apps installed is very much appreciated!

I don't use it on the switch, but there should be a power icon on the upper right. There might also be a "logout" option somewhere that when clicked gives you several power options.
 
  • Like
Reactions: Freeze1919

Refriger8tor

Well-Known Member
OP
Member
Joined
Sep 2, 2013
Messages
135
Trophies
0
Location
A kitchen near you.
XP
458
Country
United States
java is not javac means you cant code.
then you should say that these runtimes and these script languages and these IDEs are included.
because i thought you mean the language and not the runtime.
Relatively certain I installed the JDK as well, although ofc it's possible I might have missed it. If you (or anybody) could enter "javac - version" in terminal to check. Otherwise I'll check soon.

@Freeze1919 hit the settings cog in the top right, and then "Shut Down"

EDIT
@Silent_Gunner I just loaded up Super Mario RPG in Retroarch in the "Snes9x 2010" core and it seemed to work well, give that one a try. Weird that there's a million SNES cores.

@Sumandora just checked and javac is definitely there.

EDIT #3
Compiled Reicast (Dreamcast emu) and GZDoom on my personal image and both ran really well so I'll be including those in the next image! I'll let yall know when I have it up
 
Last edited by Refriger8tor,

Freeze1919

Well-Known Member
Newcomer
Joined
May 18, 2019
Messages
58
Trophies
0
Age
32
XP
100
Country
Australia
Relatively certain I installed the JDK as well, although ofc it's possible I might have missed it. If you (or anybody) could enter "javac - version" in terminal to check. Otherwise I'll check soon.

@Freeze1919 hit the settings cog in the top right, and then "Shut Down"

EDIT
@Silent_Gunner I just loaded up Super Mario RPG in Retroarch in the "Snes9x 2010" core and it seemed to work well, give that one a try. Weird that there's a million SNES cores.

@Sumandora just checked and javac is definitely there.

EDIT #3
Compiled Reicast (Dreamcast emu) and GZDoom on my personal image and both ran really well so I'll be including those in the next image! I'll let yall know when I have it up

Thankyou very much(& Sethtimus Prime), I originally did try that in handheld, I guess my fingers were too fat to hit the icon :P.
If I may ask one more question, their isn't a set directory for dolphin wbfs files or Retroarch related roms related is their?
Im guessing anywhere on the sd card is fine in terms of placement?(aslong as its on the correct partition)
 

Silent_Gunner

Crazy Cool Cyclops
Banned
Joined
Feb 16, 2017
Messages
2,696
Trophies
0
Age
29
XP
4,727
Country
United States
EDIT
@Silent_Gunner I just loaded up Super Mario RPG in Retroarch in the "Snes9x 2010" core and it seemed to work well, give that one a try. Weird that there's a million SNES cores.
EDIT #3
Compiled Reicast (Dreamcast emu) and GZDoom on my personal image and both ran really well so I'll be including those in the next image! I'll let yall know when I have it up



I take it that Reicast is the standalone version of the emulator? I'll take it either way. Haven't tried RetroArch yet as, after my attempt at using SNES9x's latest version on this image, RetroArch refused to open. Oh, it'd open for a few seconds, and then it'd close again in the Not-Task-Manager after. I don't know if it's because I might have pushed the wrong option in the error window that popped up or what, but even after uninstalling RetroArch and re-installing it via the Software store (which will actually download stuff in this image of L4T-Ubuntu), it just wouldn't open.

Still, every emulator and GZDoom? If we can get some of the other problems ironed out, this may be the go-to homebrew for the Switch for sometime to come!
 

Mouser X

Well-Known Member
Member
Joined
Aug 26, 2009
Messages
101
Trophies
0
XP
546
Country
United States
I have 2 Switches. Currently, one is my "Skies of Arcadia: Legends" portable unit (it's also on HOS 3.0.0). The other is for all my Switch games. If Lakka had bluetooth support, I would very likely never boot HOS on my 2nd unit ever again. As it is now, I might download your image and try that out. I tried to set up L4T myself (I really want bluetooth support), but gave up. Too much work, when the only thing I want is to play SoA on a modern system (preferably portably).
 
D

Deleted User

Guest
Relatively certain I installed the JDK as well, although ofc it's possible I might have missed it. If you (or anybody) could enter "javac - version" in terminal to check. Otherwise I'll check soon.

@Freeze1919 hit the settings cog in the top right, and then "Shut Down"

EDIT
@Silent_Gunner I just loaded up Super Mario RPG in Retroarch in the "Snes9x 2010" core and it seemed to work well, give that one a try. Weird that there's a million SNES cores.

@Sumandora just checked and javac is definitely there.

EDIT #3
Compiled Reicast (Dreamcast emu) and GZDoom on my personal image and both ran really well so I'll be including those in the next image! I'll let yall know when I have it up
switch@switch:~$ sudo apt list --installed | grep -i jdk

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

openjdk-11-jdk/bionic-updates,bionic-security,now 11.0.3+7-1ubuntu2~18.04.1 arm64 [installed]
openjdk-11-jdk-headless/bionic-updates,bionic-security,now 11.0.3+7-1ubuntu2~18.04.1 arm64 [installed,automatic]
openjdk-11-jre/bionic-updates,bionic-security,now 11.0.3+7-1ubuntu2~18.04.1 arm64 [installed,automatic]
openjdk-11-jre-headless/bionic-updates,bionic-security,now 11.0.3+7-1ubuntu2~18.04.1 arm64 [installed,automatic]
switch@switch:~$

installed packages:
openjdk-headless

this headless jdk is useless. JFrames, Keyboards, Mouses are not accessable.
btw whats about the IDE :)
 

Refriger8tor

Well-Known Member
OP
Member
Joined
Sep 2, 2013
Messages
135
Trophies
0
Location
A kitchen near you.
XP
458
Country
United States
@Freeze1919
No problem, I have trouble with the touchscreen as well tbh, I find swiping in from the corner to be sometimes successful to get that menu open. Once you've paired your joycons you can use them as a mouse in handheld mode, but you'll still have to open that menu once without them to pair them almost every boot.
As for your other question, in both programs you can browse to whatever directory you have your roms stored.

@Silent_Gunner it will be the standalone version of reicast, supposedly there is an ARM retroarch core but I'm starting to suspect it might just be for android. However I was able to compile standalone reicast fine which is what I'll include in the next image.

@Sumandora ah, now I see what you mean, thanks for pointing this out, I will amend this in the next image! As far as an IDE goes I currently have VIM setup but as you may have heard it has a steep learning curve. I believe I unsuccessfully tried to get eclipse working on the switch before but maybe I'll give it another go.
 

Freeze1919

Well-Known Member
Newcomer
Joined
May 18, 2019
Messages
58
Trophies
0
Age
32
XP
100
Country
Australia
Ive run into one last problem ;P, my SD is supposedly only has 500meg left even though it has over 100gigs. I tried setting my 2nd partition to max using the disk utility in linux ;P. Do i need a special program in windows to transfer files over? Sorry again for the inconvenience. It supposedly is fully ex4t formatted, can ubuntu still read the files in fat 32 partition?
 
Last edited by Freeze1919,

Refriger8tor

Well-Known Member
OP
Member
Joined
Sep 2, 2013
Messages
135
Trophies
0
Location
A kitchen near you.
XP
458
Country
United States
Ive run into one last problem ;P, my SD is supposedly only has 500meg left even though it has over 100gigs. I tried setting my 2nd partition to max using the disk utility in linux ;P. Do i need a special program in windows to transfer files over? Sorry again for the inconvenience. It supposedly is fully ex4t formatted, can ubuntu still read the files in fat 32 partition?
Windows can't see ext4 partitions so that 500 MB free is just the remaining free space on your Fat32 partition. Once you boot into Ubuntu you will be able to see all the files on the Fat32 partition as well as your ext4 partition, and you can copy stuff over or access it from there. If you're trying to transfer more than 500 MB, your options are to either grow your Fat32 partition or you can put your files on a flash drive, boot your switch into Linux, the plug both it and your flash drive into the dock, then copy the files over. Bear in mind I've never actually tested USB storage on this but I've heard that it works according to others on here.
 

Mouser X

Well-Known Member
Member
Joined
Aug 26, 2009
Messages
101
Trophies
0
XP
546
Country
United States
Bear in mind I've never actually tested USB storage on this but I've heard that it works according to others on here.
I used my Switch, in the dock, to resize a 2nd SD card's fat32 and ext4 partitions. So, if you have 2 SD cards, you can install L4T to both, boot using one of them, and resize the other from within Linux, using a USB SD card reader, with both it (w/SD card) and your Switch (running L4T on your other SD card) plugged into your (official) dock.
 
  • Like
Reactions: Refriger8tor

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Psionic Roshambo @ Psionic Roshambo: Just 6 but dual band 6 lol