bazzite icon indicating copy to clipboard operation
bazzite copied to clipboard

Performance issue wake after sleep

Open byronpc opened this issue 9 months ago β€’ 7 comments

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

byronpc avatar May 03 '24 23:05 byronpc

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.

Hereticofdune avatar May 12 '24 10:05 Hereticofdune

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

mbouron avatar Jun 11 '24 12:06 mbouron

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.

Jefferson-tan avatar Jun 23 '24 13:06 Jefferson-tan

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

Alexmjacobs avatar Jul 09 '24 00:07 Alexmjacobs

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.

tuxfamily avatar Aug 16 '24 09:08 tuxfamily

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 πŸ‘

MikeDrewitt avatar Sep 01 '24 03:09 MikeDrewitt

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

lob19 avatar Oct 02 '24 19:10 lob19

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.

physicsmeGH avatar Oct 10 '24 06:10 physicsmeGH

same issure on my 7800XT

zzzspike avatar Oct 12 '24 09:10 zzzspike

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

Kleei avatar Oct 20 '24 21:10 Kleei