Tutorial  Updated

Install Dolphin (GC emulator) on Switch

Here's what the end result looks like:

I tested with Animal Crossing. It runs at about half speed at best. (If you saw this tutorial on Reddit already, I did not steal this guide. I posted it there as well.)

I'm assuming you already have Arch running on your switch with SSH and Wi-Fi working. SSH isn't needed, but it's way easier to do this with SSH. If you don't have Arch set up, look here: https://gbatemp.net/threads/quick-tuto-how-to-boot-linux-on-your-switch.501918/ I would also suggest the precompiled version of the booting tools here https://github.com/SoulCipher/shofel2_linux

Please comment if anything doesn't work as I might have forgotten something (I did most of this last night so I'm pretty much trying to remember the steps I took).

First you should have the equivalent of build-essential or base-devel for your system.

SSH into the Switch and sudo su into root. Now run

Code:
pacman -Syu alsa-lib bluez-libs cairo enet gcc-libs gdk-pixbuf2 glib2 glibc gtk2 hidapi libevdev libpng libpulse libsm libx11 libxi libxrandr libxxf86vm lzo mbedtls pango sfml zlib cmake git

This will install Dolphin-emu's dependencies. Next, run

Code:
git clone https://github.com/dolphin-emu/dolphin.git dolphin-emu

Which will clone Dolphin-emu's repository to your Switch. Move into the dolphin-emu directory.

Code:
cd dolphin-emu

Now create a folder called Build and go into it.

Code:
mkdir Build && cd Build

Configure the build

Code:
cmake ..

After this is completed, run

Code:
make -j6

to compile Dolphin. Now run

Code:
make install

to install Dolphin on to the Switch.

Run it by typing dolphin-emu in LXTerminal on the Switch and pressing enter. You can type by using the "Onboard" program. Press the Config button, go to the audio section, and tap where it says ALSA. Change this to disabled. Close Dolphin and go back to your ssh session. Run

Code:
nano ~/.config/dolphin-emu/Dolphin.ini

and change where it says CPUCore = 1 to CPUCore = 4. This sets it to use the JIT64 DC, which is the fastest CPU interpreter for the Switch.

Now you can relaunch Dolphin and load a game!

Edit: To improve performance, try running

Code:
echo 0a > /sys/kernel/debug/dri/0/pstate

(Thanks, @natinusala!)
 
Last edited by LarBob,

LarBob

Well-Known Member
OP
Member
Joined
Dec 29, 2013
Messages
370
Trophies
0
Age
23
XP
563
Country
United States
Typo:

You meant CD dolphin-emu
No, I didn't. "cd dolphin-emu" changes the directory to the dolphin-emu directory.
http://linuxcommand.org/lc3_man_pages/cdh.html

my guess it is half speed because its running linux... i hope one day a natively(ish)emulator comes on the switch its fw


still friggin awesome!
Dolphin runs very well on Linux on PCs and on many ARM Android phones. It's more due to how early in development the Switch Linux drivers are.
 
Last edited by LarBob,

bobmcjr

Well-Known Member
Member
Joined
Apr 26, 2013
Messages
1,156
Trophies
1
XP
3,228
Country
United States
Are there any configurations in Dolphin which might help speed up the games?
Animal Crossing is one of the lightest GC games available and if it's struggling, there's likely little that can be done.
I ran Dolphin on a NVIDIA TK1 board a while back, and that did at least a solid 45 FPS, and failoverfl0w's switch port ran at a decent 40, so I would say the GPU drivers aren't working with this version right now.
 

SkillingCat

Well-Known Member
Newcomer
Joined
Nov 3, 2016
Messages
87
Trophies
0
Age
24
XP
299
Country
France
They're just bluetooth, I don't know if people have bluetooth working on linux for switch. If so we could use real mice and keyboards easily :)
Yeah bluetooth is working fine for mouse/keyboard, I use my bluetooth keyboard so that I don't get mad every time I have to type a command in a terminal. ;)
 
  • Like
Reactions: cearp

ExploitTnT

Devy | YT: DevRin | dev_settings
Member
Joined
Jul 30, 2017
Messages
150
Trophies
0
XP
270
Country
Austria
Help me with this problem
tMnb1ud.jpg
 
  • Like
Reactions: Kobigov

Kobigov

Well-Known Member
Member
Joined
Jan 10, 2018
Messages
129
Trophies
0
Age
44
XP
300
Country
United States
It gives this now.

Code:
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:12 (project):
  No CMAKE_C_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.


CMake Error at CMakeLists.txt:12 (project):
  No CMAKE_CXX_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.


-- Configuring incomplete, errors occurred!
See also "/home/alarm/dolphin-emu/Build/CMakeFiles/CMakeOutput.log".
See also "/home/alarm/dolphin-emu/Build/CMakeFiles/CMakeError.log".
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: https://www.youtube.com/watch?v=WvojgRvNriw