Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nintendo switch steam being weird #1500

Open
Kirbo8 opened this issue May 13, 2024 · 32 comments
Open

Nintendo switch steam being weird #1500

Kirbo8 opened this issue May 13, 2024 · 32 comments

Comments

@Kirbo8
Copy link

Kirbo8 commented May 13, 2024

Hello I just swapped over from bionic to jammy because it could not run steam on switch without me setting up a swap file so I got steam working and I'm trying to launch yomi hustle which is not a very intensive game and it just kind of sits on the screen for 15 mins not doing anything I was wondering what I could do to fix this or make it faster I would also like to note that I begun to hear music for like 30 seconds before the entire switch crashed
1000142849

@ptitSeb
Copy link
Owner

ptitSeb commented May 13, 2024

You are launching a game from steam on a switch without swapfile? The memory is probably getting full and the OS crashes.

@Kirbo8
Copy link
Author

Kirbo8 commented May 13, 2024

You are launching a game from steam on a switch without swapfile? The meiry is probably getting full and the OS crashes.

I dont know if I'm being honest I'm using jammy and when I looked through the files I saw one called swap file but I never set one up

@ptitSeb
Copy link
Owner

ptitSeb commented May 13, 2024

use free -h in a terminal while steam is launched to see how much free memory you have left...

@Kirbo8
Copy link
Author

Kirbo8 commented May 13, 2024

use free -h in a terminal while steam is launched to see how much free memory you have left...

IMG_20240513_171823

@Kirbo8
Copy link
Author

Kirbo8 commented May 14, 2024

use free -h in a terminal while steam is launched to see how much free memory you have left...

So it looks like I do have a swapfile setup but I don't know why it's not taking any of the load but even so the game I'm trying to run only takes a maximum of 1 GB of RAM anyways so I'm just kind of lost right now oh and by the way the system isn't crashing anymore it's just the game

@ptitSeb
Copy link
Owner

ptitSeb commented May 14, 2024

Is your game 32bits or 64bits? Do you have any error message or something happening?

@Kirbo8
Copy link
Author

Kirbo8 commented May 14, 2024

Is your game 32bits or 64bits? Do you have any error message or something happening?

64-bit and I'm not getting any errors it just tries to load up for an hour and then stops working like it closes

@ptitSeb
Copy link
Owner

ptitSeb commented May 14, 2024

@Kirbo8
Copy link
Author

Kirbo8 commented May 14, 2024

@ptitSeb
Copy link
Owner

ptitSeb commented May 14, 2024

Ok, I'll check on my side what's going on...

@ptitSeb
Copy link
Owner

ptitSeb commented May 14, 2024

So, I tried n my dev. machine, and it just worked without any issues. It's a godot engine game, and it use opengl(es).
You sure you have the latest version of box64?

@Kirbo8
Copy link
Author

Kirbo8 commented May 14, 2024

So, I tried n my dev. machine, and it just worked without any issues. It's a godot engine game, and it use opengl(es). You sure you have the latest version of box64?

I didn't install anything other than steam through l4t mega script I thought it automatically downloaded everything you need do you have a tutorial on how to install box64

@Kirbo8
Copy link
Author

Kirbo8 commented May 14, 2024

So, I tried n my dev. machine, and it just worked without any issues. It's a godot engine game, and it use opengl(es). You sure you have the latest version of box64?

Will I also need wine or wine 64?

@ptitSeb
Copy link
Owner

ptitSeb commented May 14, 2024

So, I tried n my dev. machine, and it just worked without any issues. It's a godot engine game, and it use opengl(es). You sure you have the latest version of box64?

I didn't install anything other than steam through l4t mega script I thought it automatically downloaded everything you need do you have a tutorial on how to install box64

Type box64 --version in a terminal

So, I tried n my dev. machine, and it just worked without any issues. It's a godot engine game, and it use opengl(es). You sure you have the latest version of box64?

Will I also need wine or wine 64?

No, steam has everything.

@Kirbo8
Copy link
Author

Kirbo8 commented May 14, 2024

So, I tried n my dev. machine, and it just worked without any issues. It's a godot engine game, and it use opengl(es). You sure you have the latest version of box64?

I didn't install anything other than steam through l4t mega script I thought it automatically downloaded everything you need do you have a tutorial on how to install box64

Type box64 --version in a terminal

So, I tried n my dev. machine, and it just worked without any issues. It's a godot engine game, and it use opengl(es). You sure you have the latest version of box64?

Will I also need wine or wine 64?

No, steam has everything.

IMG_20240514_170809
I also don't know why but I need steam open to use the on screen keyboard

@Kirbo8
Copy link
Author

Kirbo8 commented May 14, 2024

So, I tried n my dev. machine, and it just worked without any issues. It's a godot engine game, and it use opengl(es). You sure you have the latest version of box64?

I didn't install anything other than steam through l4t mega script I thought it automatically downloaded everything you need do you have a tutorial on how to install box64

Type box64 --version in a terminal

So, I tried n my dev. machine, and it just worked without any issues. It's a godot engine game, and it use opengl(es). You sure you have the latest version of box64?

Will I also need wine or wine 64?

No, steam has everything.

Does this mean that box 64 is installed?

@ptitSeb
Copy link
Owner

ptitSeb commented May 15, 2024

yes, box64 is installed. I don't see anything wrong in your config. And I tried the game on my side it works fine. Not sure what is happening, but I guess the issue is the lack of memory. The swapfile might be not enough for the game? I'm not sure, it's hard to say. I suppose you are running from an SDCard? Maybe it got corrupted or something like that?

@Kirbo8
Copy link
Author

Kirbo8 commented May 15, 2024

yes, box64 is installed. I don't see anything wrong in your config. And I tried the game on my side it works fine. Not sure what is happening, but I guess the issue is the lack of memory. The swapfile might be not enough for the game? I'm not sure, it's hard to say. I suppose you are running from an SDCard? Maybe it got corrupted or something like that?

Any suggestions on things I should try and do I wonder if it's possible to move the game from the SD card to "system storage"

@Kirbo8
Copy link
Author

Kirbo8 commented May 15, 2024

yes, box64 is installed. I don't see anything wrong in your config. And I tried the game on my side it works fine. Not sure what is happening, but I guess the issue is the lack of memory. The swapfile might be not enough for the game? I'm not sure, it's hard to say. I suppose you are running from an SDCard? Maybe it got corrupted or something like that?

And yeah anytime I launch steam or pretty much anything I always get a low memory warning

@Kirbo8
Copy link
Author

Kirbo8 commented May 15, 2024

yes, box64 is installed. I don't see anything wrong in your config. And I tried the game on my side it works fine. Not sure what is happening, but I guess the issue is the lack of memory. The swapfile might be not enough for the game? I'm not sure, it's hard to say. I suppose you are running from an SDCard? Maybe it got corrupted or something like that?

And yeah anytime I launch steam or pretty much anything I always get a low memory warning but I did free -h in the terminal while yomi was open and this is what I got
IMG_20240515_091210

@Kirbo8
Copy link
Author

Kirbo8 commented May 15, 2024

A few updates here in images
IMG_20240515_101146

IMG_20240515_095646
It has taken me a little bit more than an hour to get to this point in the frame rate is around two frames a second at best

@Kirbo8
Copy link
Author

Kirbo8 commented May 16, 2024

yes, box64 is installed. I don't see anything wrong in your config. And I tried the game on my side it works fine. Not sure what is happening, but I guess the issue is the lack of memory. The swapfile might be not enough for the game? I'm not sure, it's hard to say. I suppose you are running from an SDCard? Maybe it got corrupted or something like that?

Okay I have a few questions how long did it take for the game to boot up for you are you using Jammy Ubuntu or a different kind of Ubuntu and how much memory is it taking up for you because in a previous screenshot above it's taking up all of my swap file memory and almost all of my regular memory but what confuses me is that on the steam page it says it would need a maximum gigabyte of RAM not eight

@ptitSeb
Copy link
Owner

ptitSeb commented May 16, 2024

It was immediate on my side but my test machine has 96GB of memory (I know, it's huge).

Note that Steam alone itself take like 3GB to 3.5GB.
Also, Emulation use memory.

@Kirbo8
Copy link
Author

Kirbo8 commented May 16, 2024

It was immediate on my side but my test machine has 96GB of memory (I know, it's huge).

Note that Steam alone itself take like 3GB to 3.5GB. Also, Emulation use memory.

Wait 96 GB of RAM?

@ptitSeb
Copy link
Owner

ptitSeb commented May 16, 2024

It was immediate on my side but my test machine has 96GB of memory (I know, it's huge).
Note that Steam alone itself take like 3GB to 3.5GB. Also, Emulation use memory.

Wait 96 GB of RAM?

Yeah, I do my testing on an Ampere Altra machine. It's a ARM beast, with 128 cores and 96GB of RAM (coupled with an RTX4060)...

@Kirbo8
Copy link
Author

Kirbo8 commented May 16, 2024

It was immediate on my side but my test machine has 96GB of memory (I know, it's huge).
Note that Steam alone itself take like 3GB to 3.5GB. Also, Emulation use memory.

Wait 96 GB of RAM?

Yeah, I do my testing on an Ampere Altra machine. It's a ARM beast, with 128 cores and 96GB of RAM (coupled with an RTX4060)...

Okay is there any way to make swap file bigger because I don't know if the Nintendo switch has enough RAM to run steam even on this lightweight game but I see people running games like Titanfall 2

@ptitSeb
Copy link
Owner

ptitSeb commented May 16, 2024

It was immediate on my side but my test machine has 96GB of memory (I know, it's huge).
Note that Steam alone itself take like 3GB to 3.5GB. Also, Emulation use memory.

Wait 96 GB of RAM?

Yeah, I do my testing on an Ampere Altra machine. It's a ARM beast, with 128 cores and 96GB of RAM (coupled with an RTX4060)...

Okay is there any way to make swap file bigger because I don't know if the Nintendo switch has enough RAM to run steam even on this lightweight game but I see people running games like Titanfall 2

Yes, but you should ask on some other place. I don't own a switch, and don't know the system installed there. I can't really tell you what to do here.

@mcagabe19
Copy link
Contributor

mcagabe19 commented May 16, 2024

Okay is there any way to make swap file bigger because I don't know if the Nintendo switch has enough RAM to run steam even on this lightweight game but I see people running games like Titanfall 2

I either don't know about linux on switch but as global linux and android user, u can try this (disable and delete old swap if existing)

sudo dd if=/dev/zero of=/swapfile bs=1M count=12288 #12 gb of zeros
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile

plus u can also change swappiness with this:

sudo (your editor such as like nano or vim) /etc/sysctl.conf

and set or change vm.swappiness to around 60/100
after to save your settings do

sudo sysctl -p

@Kirbo8
Copy link
Author

Kirbo8 commented May 16, 2024

Okay is there any way to make swap file bigger because I don't know if the Nintendo switch has enough RAM to run steam even on this lightweight game but I see people running games like Titanfall 2

I either don't know about linux on switch but as global linux and android user, u can try this (disable and delete old swap if existing)

sudo dd if=/dev/zero of=/swapfile bs=1M count=12288 #12 gb of zeros
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile

plus u can also change swappiness with this:

sudo (your editor such as like nano or vim) /etc/sysctl.conf

and set or change vm.swappiness to around 60/100 after to save your settings do

sudo sysctl -p

Thanks but what is swappiness and to clarify for that first code line that you sent I just delete my current swap file then put that into the terminal (influding the grayed out text)and I should get a bigger swap file? It also seems like I can't delete this swap file because of a permission denied error I keep getting
IMG_20240516_142920

@mcagabe19
Copy link
Contributor

Thanks but what is swappiness and to clarify for that first code line that you sent I just delete my current swap file then put that into the terminal (influding the grayed out text)and I should get a bigger swap file? It also seems like I can't delete this swap file because of a permission denied error I keep getting IMG_20240516_142920

do u have discord if so add me cuz this may gonna take long if we use this ticket (username is mc.9)

@NumanTF2
Copy link

I meam you could launch steam with the --no-browser argument and use it it small mode. it takes up wayyy less ram. good for only playing games and not using other steam features such as the overlay or chat

@theofficialgman
Copy link
Contributor

Switchroot Jammy/Noble have no SWAP by default. They have 3GB of ZRAM.
Its enough to load steam itself and some games but may not be enough for everything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants