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,

EpicLPer

Your friendly Austrian IT Guy
Member
Joined
Mar 13, 2015
Messages
1,060
Trophies
0
Age
28
Location
Austria
Website
epiclper.com
XP
1,141
Country
Austria
I have the same adapter. Messaged the dev on Reddit. Every single module has to be compiled into the kernel for the current build. There is no dynamic module loading. So he has to specify everything to build in. That's why mass storage didn't work initially but was added in the 1.1 update. He said for the next update, he'll get that driver added in.
Awesome, thanks for the reply :)
 

FMCore

Well-Known Member
Newcomer
Joined
Jul 10, 2018
Messages
91
Trophies
0
XP
609
Country
Canada
Has anyone gotten stuck at the "Waiting for unattended-upgr to exit" screen when installing or am I just being impatient?

Edit: I was impatient.
 
Last edited by FMCore,
  • Like
Reactions: mathew77
D

Deleted User

Guest
@ploggy I have a pen that must be turned ON to actually be usable on a touchscreen, and even OFF, it work :P I think it will be fixed in the futur :) But i'm a bit scared it's like black magic.
 
  • Like
Reactions: ploggy

ploggy

WAKA! WAKA!
Member
Joined
Aug 29, 2007
Messages
4,818
Trophies
2
XP
7,840
Country
United Kingdom
Also worth noting the Magic NS adapter for Switch (on blue mode) works great on L4T and Sonic Adventure GC is fully playable on Dolphin if you enable the "Enable Emulated CPU Clock Override" option and set it to 50% :) and if your Dolphin game is close to fullspeed but the audio is scratchy try enabling Audio Stretching it may help some.
 
Last edited by ploggy,
  • Like
Reactions: wicksand420
D

Deleted User

Guest
Hey I must try this hack on Batten Kaitos with Lakka! Thanks.
Also my left joycon is like a weirdo since I ran ubuntu (joystick send random moves like a troll). If it ever happen to someone else tell it please. I think it's unrelated to the use of ubuntu but who know.
 
Last edited by ,

Halobro35

Member
Newcomer
Joined
May 2, 2019
Messages
10
Trophies
0
Age
37
XP
13
Country
United States
I have a question for both of these utilities.

Is there a way to map a hotkey or something that tells the OS to stop using the Joy Cons as a mouse? For example you'd use the Joy Con as a mouse to navigate to Dolphin, change settings, launch a game, etc, then press the home button to kill the mouse so you can use the Joy Cons as a controller. Then when you're done with Dolphin, press the home button and the Joy Cons will start functioning as a mouse again. Is something like this possible?

For Dolphin, I wanted to be able to use full-screen mode without seeing the mouse and I wanted the ability to exit full-screen mode without a keyboard.
To accomplish this, go into your dolphin graphics settings and check the hide mouse cursor box.
In order to be able to exit dolphin, I mapped the home button on my gamepad to ESCAPE. To do this, you need to install qjoypad:

(courtesy of @wicksand420)
"
For qjoypad you open the terminal and type

sudo apt-get update -y and hit enter

then this

sudo apt-get install -y qjoypad and hit enter

then to configure it, make sure your joycons are paired, then in the terminal type

qjoypad --notray and hit enter

A controller icon will appear, click on it to configure the controllers"

After you click on the controller icon, press the ADD button on the top, then press quick set on the button, and then map the ESCAPE key to the home button (or whichever button you choose).
Then, you can close the small controller icon.
Afterwards, you can simply launch qjoypad from the apps menu, and then it will run in the background with your new settings. I recommend locking qjoypad to the sidebar for quick access.
Now, when you launch dolphin in full-screen mode, you can press the home button to exit full-screen mode and retain full functionality of using your joycons as a mouse in ubuntu! And every time you reboot, you can just click on the qjoypad button in the sidebar and it will automatically run in the background.
 

wicksand420

Well-Known Member
Member
Joined
Nov 13, 2016
Messages
2,787
Trophies
1
Age
39
XP
2,295
Country
United States
Also worth noting the Magic NS adapter for Switch (on blue mode) works great on L4T and Sonic Adventure GC is fully playable on Dolphin if you enable the "Enable Emulated CPU Clock Override" option and set it to 50% :) and if your Dolphin game is close to fullspeed but the audio is scratchy try enabling Audio Stretching it may help some.
Yeah, that Magic NS is awesome.
 
  • Like
Reactions: ploggy

bylaws

Well-Known Member
OP
Member
Joined
Dec 11, 2018
Messages
129
Trophies
0
XP
1,655
Country
United Kingdom
Hello gentlemen, can somebody explain me howto get to a rescue console?

installed an alternate desktop manager, now I can not access to unity to disable some packages.

thanks in advance.
Ctrl alt f6 in dock
With this config?
Code:
#    $OpenBSD: sshd_config,v 1.101 2017/03/14 07:19:07 djm Exp $

# This is the sshd server system-wide configuration file.  See
# sshd_config(5) for more information.

# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin

# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented.  Uncommented options override the
# default value.

#Port 22
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::

#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_ecdsa_key
#HostKey /etc/ssh/ssh_host_ed25519_key

# Ciphers and keying
#RekeyLimit default none

# Logging
#SyslogFacility AUTH
#LogLevel INFO

# Authentication:

#LoginGraceTime 2m
#PermitRootLogin prohibit-password
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10

#PubkeyAuthentication yes

# Expect .ssh/authorized_keys2 to be disregarded by default in future.
#AuthorizedKeysFile    .ssh/authorized_keys .ssh/authorized_keys2

#AuthorizedPrincipalsFile none

#AuthorizedKeysCommand none
#AuthorizedKeysCommandUser nobody

# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes

# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no

# Change to yes to enable challenge-response passwords (beware issues with
# some PAM modules and threads)
ChallengeResponseAuthentication no

# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes
#GSSAPIStrictAcceptorCheck yes
#GSSAPIKeyExchange no

# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication.  Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
UsePAM yes

#AllowAgentForwarding yes
#AllowTcpForwarding yes
#GatewayPorts no
X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
#PermitTTY yes
PrintMotd no
#PrintLastLog yes
#TCPKeepAlive yes
#UseLogin no
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS no
#PidFile /var/run/sshd.pid
#MaxStartups 10:30:100
#PermitTunnel no
#ChrootDirectory none
#VersionAddendum none

# no default banner path
#Banner none

# Allow client to pass locale environment variables
AcceptEnv LANG LC_*

# override default of no subsystems
Subsystem    sftp    /usr/lib/openssh/sftp-server

# Example of overriding settings on a per-user basis
#Match User anoncvs
#    X11Forwarding no
#    AllowTcpForwarding no
#    PermitTTY no
#    ForceCommand cvs server
Sorry but ssh server is installed, becasu deactivated.
It's activated, just run ssh username@swutchesip and itll work
Bylaws, I notice the config generated by defconfig in your Linux 4.9 repo is different than the shipped config in your image (/proc/config.gz). Are you doing any tweaks other than building from the repos? Is all the code pushed? Can you confirm you're building on all of the default branches in your gitlab repos? Feel free to pm me with a discord if it's easier to chat there. thanks
Should close enough,
If you want help building message me on discord - ByLaws#8238
I'm pretty sure I havent seen this question asked as I've kept up with this thread.

Can a pro controller be used in the same way as the joycons? I have it synced under settings, but I can't seem to do anything with it. I can't use my joycons because my "r" button doesn't work on my joycons.

--------------------- MERGED ---------------------------


It's on its own partition or sd card.
Pro controller works fine for me, what exact is broken on it for you
Correct me if I am wrong, but shut down does not power off the switch. Further details, shut down will "power off" the operating system & power off the screen, but the switch itself is still powered on and requires the power button to be held for a few seconds. At least this has been my personal experience. Maybe I am not allowing enough time for the switch to completely power off?
Nope, that was with previous Linux, now it does it fully.
For some reason once I was browsing around and doing stuff on the Switch it went back to normal again... Probably goes to sleep when it sees nothing is going on and won't wake up with "outside calls"?

--------------------- MERGED ---------------------------

I'm also currently trying to get a AX88179 chipset based USB LAN adapter to run but for some reason it won't detect it. Everything I looked up suggests that the driver should already be in the kernel, has this by any chance been remove?
It'll be enabled next update
is there any updates about the sd card issue?
I have no idea what exactly is causing the problem, but I'll mess around with sd settings in future updates,so it could start working.
Should I enable Canonical Livepatch?
edit: I tried to enable it but it couldn't connect to the Ubuntu One servers for some reason.
You can, it won't work though
 
  • Like
Reactions: lordelan

pietempgba

Well-Known Member
Member
Joined
Jun 9, 2016
Messages
1,049
Trophies
0
XP
1,515
Country
United States
Can anyone help me with this issue? Everytime I dock my switch it gives me this glitchy mess. I have it hooked up with a HDMI to VGA converter to my monitor
 

Attachments

  • 20190504_013349.jpg
    20190504_013349.jpg
    376.8 KB · Views: 169
Last edited by pietempgba,
D

Deleted User

Guest
Hey. I have question. So i got it to run on my Switch and everything is working fine. But I'm currently really concerned, if i place my switch in the Dock and leave it there, while the Bettery is 100% charged, would it damage the Bettery? (like overcharging it)
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Veho @ Veho: Apply snorgle to pinfor.