yuzu icon indicating copy to clipboard operation
yuzu copied to clipboard

Yuzu Freezes When Suspending Game on Steam Deck

Open mcoffey2640 opened this issue 2 years ago • 8 comments

When resuming a game using the steam deck suspend feature, yuzu will freeze and be unresponsive. I have documented this in Kirby and the Forgotten Land, The Legend of Zelda Skyward Sword HD, and Triangle Strategy. This is using the flatpack version of Yuzu Yuzu 980

mcoffey2640 avatar Apr 11 '22 19:04 mcoffey2640

I don't have a steam deck but see if you can get an error log by running the Yuzu flatpak via konsole.

1. Go into desktop mode on Steam Deck
2. Open Konsole
3. run this command: flatpak run org.yuzu_emu.yuzu
4. do not touch Konsole and leave it open
5. Yuzu should have launched: start a game in Yuzu as you normally would
6. put the Steam Deck in suspend and then restore it like you normally would

you should have some kind of output in Konsole. Paste it here so the developers have something to go off of if they also do not have a steam deck.

ghtesting2020 avatar Apr 11 '22 23:04 ghtesting2020

This is the message that appeared in konsole after resuming.

(deck@steamdeck ~)$ flatpak run org.yuzu_emu.yuzu WARNING: radv is not a conformant Vulkan implementation, testing use only. libpng warning: iCCP: known incorrect sRGB profile

mcoffey2640 avatar Apr 12 '22 01:04 mcoffey2640

In my case (Pokemon Sword) pausing the Emulator and Resuming it "fixes" this issue.

Maykin-99 avatar Apr 15 '22 22:04 Maykin-99

This is caused by a step change in wallclock on resume. Yuzu assumes that the TSC can be made monotonic, however a "sleep" (actually a hibernate) on the Steam Deck violates that assumption.

Pause/Resume is a fix because yuzu allows a step change backwards here.

merryhime avatar Apr 15 '22 22:04 merryhime

just a +1 to seeing this resolved

eddiegalvez avatar May 02 '22 20:05 eddiegalvez

In my case (Pokemon Sword) pausing the Emulator and Resuming it "fixes" this issue.

what steam deck inputs do you use to pause/resume? edit: Select+A

eddiegalvez avatar May 02 '22 20:05 eddiegalvez

I’ve been experiencing this issue as well. I’ve been using Yuzu since Sept 9 when I got my steam deck, but I’ve only faced this issue this week. A few notes:

  • Yuzu suspends emulation when the Steam Deck goes to sleep, I believe this is expected. I mapped one of the back buttons to F4 (the default hot key for pause/continue emulation, Can be changed in emulation->configure->general->hotkeys), and until this week resuming emulation on waking the steam deck up had been working 100% of the time
  • As of this week, pressing F4 (I’ve even tried with a USB Keyboard) doesn’t work on some occasions. Yuzu hangs for several seconds/minutes, sometimes it comes back to life but sometimes you have to force kill it
  • edit after enabling ‘pause emulation when in background’ in emulation->configure->general->general I’m no longer seeing the issue. I’ll report back in a few days when I’ve tested more

gustakasn0v avatar Sep 20 '22 22:09 gustakasn0v