Hacking Ubuntu 18.04 on a Switch

  • Thread starter Thread starter cmsj
  • Start date Start date
  • Views Views 96,395
  • Replies Replies 192
  • Likes Likes 54
Unity seems perfect for touchscreen devices. I never liked it much on an actual PC.
It's not exactly light though. The Switch should be plenty powerful enough to run it, but still, with no hardware acceleration I'm not surprised it runs slowly.
Ubunru 18 uses gnome
 
Some good progress - got a Launchpad PPA spun up to build mesa/libdrm and the packages deliver a significant boost in GNOME performance, which is great :)
Also added PPAs for RetroArch (which honestly is useless without a viable input mechanism) and Dolphin.

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

I've installed Ubuntu now.
Is there a reason why it crashes/shutdown so often?
Is there a way to prevent that?

I've had a few situations where it seemed to have crashed, but sometimes waking it from the screensaver (which can't be done with the touchscreen, try hitting a volume key) brings it back. I wouldn't say "so often" though.

You probably want to rebuild your rootfs with the changes to the build script I committed ~3 hours ago, then you get 3D acceleration :)

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

Long time ubuntu family distro user, if we get Netflix before Nintendo releases it will be like shitting on their head
It doesn't look like that's going to be easy - Firefox fails to play Netflix videos, probably a lack of DRM support or something.
 
I've had a few situations where it seemed to have crashed, but sometimes waking it from the screensaver (which can't be done with the touchscreen, try hitting a volume key) brings it back. I wouldn't say "so often" though.

You probably want to rebuild your rootfs with the changes to the build script I committed ~3 hours ago, then you get 3D acceleration :)
Thanks for the info man!
Do I really need to rebuild the whole rootfs or can I install the stuff manually you added?
Right now, I'm connected to my Switch via SSH.
As long as I have my Switch on the original Charger, it doesn't seem to crash
If I can add the stuff you changed without rebuilding the rootfs... what exactly have you changed/installed?

Did you got Sound to work?
It shows "Dummy Output" and I can change the volume... but It doesn't seem to have an effect because I can't hear anything.
 
Last edited by xXDungeon_CrawlerXx,
Thanks for the info man!
Do I really need to rebuild the whole rootfs or can I install the stuff manually you added?
Right now, I'm connected to my Switch via SSH.
As long as I have my Switch on the original Charger, it doesn't seem to crash
If I can add the stuff you changed without rebuilding the rootfs... what exactly have you changed/installed?

Did you got Sound to work?
It shows "Dummy Output" and I can change the volume... but It doesn't seem to have an effect because I can't hear anything.

I don't think sound is working for anyone on any distro, it probably needs kernel drivers.

If you're SSH'd in, just run:

add-apt-repository ppa:cmsj/nintendoswitch
apt-get upgrade

and you should see drm packages getting upgraded. Then reboot or restart X and check ~/.local/share/xorg/Xorg.0.log and look for:

[ 21.861] (II) GLX: Initialized DRI2 GL provider for screen 0

that should mean it's working :)
 
Some good progress - got a Launchpad PPA spun up to build mesa/libdrm and the packages deliver a significant boost in GNOME performance, which is great :)
Also added PPAs for RetroArch (which honestly is useless without a viable input mechanism) and Dolphin.

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



I've had a few situations where it seemed to have crashed, but sometimes waking it from the screensaver (which can't be done with the touchscreen, try hitting a volume key) brings it back. I wouldn't say "so often" though.

You probably want to rebuild your rootfs with the changes to the build script I committed ~3 hours ago, then you get 3D acceleration :)

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


It doesn't look like that's going to be easy - Firefox fails to play Netflix videos, probably a lack of DRM support or something.
Sounds amazing.

Did you mean we can run dolphin emulator in fullspeed? I mean did you bring 3d acceleration? Also if you can implement vulkan it would be amazing especially for enhancing speed in any kind of emulator including ppsspp.

Please can you make a video of running dolphin emu after getting 3d acceleration?
Thanks a lot.
 
I don't think sound is working for anyone on any distro, it probably needs kernel drivers.

If you're SSH'd in, just run:

add-apt-repository ppa:cmsj/nintendoswitch
apt-get upgrade

and you should see drm packages getting upgraded. Then reboot or restart X and check ~/.local/share/xorg/Xorg.0.log and look for:

[ 21.861] (II) GLX: Initialized DRI2 GL provider for screen 0

that should mean it's working :)
upload_2018-4-27_16-18-19.png


looks good :D
Installed Dolphin and Retroarch.

Will install Synergy now to test stuff with Mouse and Keyboard
 
  • Like
Reactions: lordelan
Unity seems perfect for touchscreen devices. I never liked it much on an actual PC.
It's not exactly light though. The Switch should be plenty powerful enough to run it, but still, with no hardware acceleration I'm not surprised it runs slowly.
But didnt FailOverflow have hardware acceleration shown on their Linux video of the Swtich?
 
But didnt FailOverflow have hardware acceleration shown on their Linux video of the Swtich?

You mean this video?


I think yes they have hardware acceleration because the touch is response pretty fast. We have to ask FailOverflow to make sure about it.
 
yeah from that video... they have it running so damn smooth and about the test in the end (GLX spheres), do you think its getting around max power of the tegra X1 on the Switch clocks?
 
I don't think sound is working for anyone on any distro, it probably needs kernel drivers.

If you're SSH'd in, just run:

So is sshd in the built image and configured / starting on boot already, or do we have to add it after the fact?
 
So is sshd in the built image and configured / starting on boot already, or do we have to add it after the fact?

Built-in, the username is "switch", password "switch". GNOME also has vino installed, for enabling VNC access from the preferences.

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

jup, I got synergy to work.
I installed Synergy on my PC and QuickSynergy on Ubuntu.

Good point about Synergy, I should get that in the image too :)
 

Site & Scene News

Popular threads in this forum