ublue-os / bazzite

Bazzite is a cloud native image built upon Fedora Atomic Desktops that brings the best of Linux gaming to all of your devices - including your favorite handheld.
https://bazzite.gg
Apache License 2.0
3.98k stars 237 forks source link

Performance issue wake after sleep #1070

Open byronpc opened 6 months ago

byronpc commented 6 months ago

Describe the bug

Hi guys,

I'm using an Aokzoe A1. I know this is a known issue. But I was just wondering if there is any solution to this? Basically, FPS drops in half after wake from sleep. I checked the TDP usage and it still the same at 30w before and after sleep. So I'm not sure why FPS is getting cut in half on games. This is consistent across most games. On Windows this is also a known issue, and the suggestion was to use hibernate instead of sleep (which solved the problem for me when I was using Windows). Is this a hardware issue or is there a solution for linux? If not, is it possible to enable hibernate?

What did you expect to happen?

Performance to still be the same

Output of rpm-ostree status

State: idle
Deployments:
● ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-deck:stable
                   Digest: sha256:67bb1f9dd52a420f080fd67e71a60bb6f732c12bacab7d27476dfbdca601c757
                  Version: 40.20240427.0 (2024-04-27T22:36:59Z)
          LayeredPackages: pavucontrol snapd
                Initramfs: '"-I /etc/crypttab /etc/modprobe.d/amdgpu.conf /etc/modprobe.d/deck-blacklist.conf" ' 

  ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-deck:stable
                   Digest: sha256:b3e8d6e3cb7ed88de6dfe20dcf1f82a38eff42e02226d68897ea051a90ec7fa7
                  Version: 39.20240418.0 (2024-04-18T20:08:16Z)
          LayeredPackages: dkms onboard pavucontrol snapd
                Initramfs: '"-I /etc/crypttab /etc/modprobe.d/amdgpu.conf /etc/modprobe.d/deck-blacklist.conf" '

Hardware

Aokzoe A1

Extra information or context

No response

Hereticofdune commented 5 months ago

Same issue here. Running bazzite on a AYN Loki Max. Resume from suspend destroys performance until the device is restarted. Would love a solution - enabling hibernate would be an acceptable work around for the moment.

mbouron commented 4 months ago

I experience the same issue on a regular desktop machine (AMD 5700x + RX7600).

Jefferson-tan commented 4 months ago

Desktop user here (Ryzen 5 5600G + RX 6600) and I'm getting the same issue. Whenever I wake my device from sleep with my game running, I noticed that it becomes incredibly choppy and I'd have to relaunch the game in order to restore performance.

Alexmjacobs commented 3 months ago

Same issue here win max 2 6800u - TDP set to 14 with simple decky TDP and once I have used suspend even turning TDP up to 40 does not change frame rate.

IMG_4362 IMG_4361

tuxfamily commented 2 months ago

I'm experiencing the same issue on the 'Rog Ally Z1 Extreme'.

However, after using Bazzite for over 8 months, I've noticed that it's quite random and depends a lot on the specific game being played. For instance, it has never occurred with the Dolphin Emulator or other native linux app, but with Proton games, it happens almost every time. So for me, it's probably related to something in the Windows emulation (or Windows itself 🤐).

I have also noticed that the issue worsens when the Rog is plugged into a charger while it is sleeping and then unplugged. However, I believe this may be related to another (TPS) issue.

Something that seems to help is the Decky plugin Pause Games. Manually pausing the game before putting the device to sleep has reduced the issue to, I would say, one time out of four. It's not perfect, but it's an improvement.

MikeDrewitt commented 2 months ago

I also have this issue. It’s only an issue when sleeping the system while a game is running.

Checking Mangohud, the power draw from the GPU is basically none after resuming. After exiting the game everything goes back to normal. I have a 7900 xtx.

Any help I can provide in getting this sorted let me know 👍

lob19 commented 1 month ago

I also have this issue on a 6900XT. I think it may be a bug with amdgpu driver not copying data back to VRAM after resume, see https://gitlab.freedesktop.org/drm/amd/-/issues/2893.

In my case, i can see that the vram usage is pretty low after resume, indicating that I suffer from this bug. I think it is fixed with kernel 6.10, in fact I do not experience this problem with latest arch.

So we have to wait for the new kernel on bazzite too and maybe this issue is solved

physicsmeGH commented 3 weeks ago

Similar issue with Ryzen 7700 + RX 7900XT desktop machine. When I sleep + wake up with a game running, it'll run like 5 fps. It's not just the game that's slow, steam's own UI is also as sluggish as the 5 fps suggests. Shutting down and restarting the game brings everything back to normal. This issue was there when I first started playing with steamOS (ChimeraOS then) about 1.5 years ago and has persisted ever since.

zzzspike commented 3 weeks ago

same issure on my 7800XT

Kleei commented 2 weeks ago

Same here. Ryzen 5 5600x + RX 7800 XT.