box64 icon indicating copy to clipboard operation
box64 copied to clipboard

Nintendo switch steam being weird

Open Kirbo8 opened this issue 1 year ago • 32 comments

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

Kirbo8 avatar May 13 '24 19:05 Kirbo8

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

ptitSeb avatar May 13 '24 20:05 ptitSeb

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

Kirbo8 avatar May 13 '24 20:05 Kirbo8

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

ptitSeb avatar May 13 '24 20:05 ptitSeb

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

IMG_20240513_171823

Kirbo8 avatar May 13 '24 21:05 Kirbo8

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

Kirbo8 avatar May 14 '24 17:05 Kirbo8

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

ptitSeb avatar May 14 '24 17:05 ptitSeb

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

Kirbo8 avatar May 14 '24 17:05 Kirbo8

This game: https://store.steampowered.com/app/2212330/Your_Only_Move_Is_HUSTLE/ ?

ptitSeb avatar May 14 '24 17:05 ptitSeb

This game: https://store.steampowered.com/app/2212330/Your_Only_Move_Is_HUSTLE/ ?

Yeah that's it

Kirbo8 avatar May 14 '24 17:05 Kirbo8

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

ptitSeb avatar May 14 '24 18:05 ptitSeb

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?

ptitSeb avatar May 14 '24 19:05 ptitSeb

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 avatar May 14 '24 20:05 Kirbo8

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?

Kirbo8 avatar May 14 '24 20:05 Kirbo8

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.

ptitSeb avatar May 14 '24 20:05 ptitSeb

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 avatar May 14 '24 21:05 Kirbo8

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?

Kirbo8 avatar May 14 '24 23:05 Kirbo8

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?

ptitSeb avatar May 15 '24 06:05 ptitSeb

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 avatar May 15 '24 12:05 Kirbo8

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 avatar May 15 '24 13:05 Kirbo8

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 avatar May 15 '24 13:05 Kirbo8

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 avatar May 15 '24 14:05 Kirbo8

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

Kirbo8 avatar May 16 '24 12:05 Kirbo8

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.

ptitSeb avatar May 16 '24 15:05 ptitSeb

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?

Kirbo8 avatar May 16 '24 15:05 Kirbo8

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)...

ptitSeb avatar May 16 '24 15:05 ptitSeb

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

Kirbo8 avatar May 16 '24 15:05 Kirbo8

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.

ptitSeb avatar May 16 '24 15:05 ptitSeb

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

ghost avatar May 16 '24 16:05 ghost

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

Kirbo8 avatar May 16 '24 17:05 Kirbo8

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)

ghost avatar May 16 '24 18:05 ghost