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

Performance issue wake after sleep #1070

Open
byronpc opened this issue May 3, 2024 · 9 comments
Open

Performance issue wake after sleep #1070

byronpc opened this issue May 3, 2024 · 9 comments

Comments

@byronpc
Copy link

byronpc commented May 3, 2024

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
Copy link

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
Copy link
Contributor

mbouron commented Jun 11, 2024

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

@Jefferson-tan
Copy link

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
Copy link

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
Copy link

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
Copy link

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
Copy link

lob19 commented Oct 2, 2024

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
Copy link

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
Copy link

same issure on my 7800XT

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

10 participants