The frame rate of games will become low after waking up from sleep

the frame rate of OpenGL and Vulkan games will become low after waking up from sleep, and only restarting can return to normal. It doesn’t feel like the CPU is frequency locked either. This is only true under linux and win is normal. I have been researching it for a long time. The kernels from 6.1 to 6.7 all have the same problem.

For example, when I enter the main interface of the game, the normal frame rate is more than 700 frames. Then after sleeping and waking up, it drops to more than 200 frames.

BIOS has also been restored.


amd 4800h

It looks like you’re using the laptop. Maybe this has to do with energy saving.

PS: I do not have the issue with Desktop PC.

To be fair:

My refresh rate is also slow when waking from sleep…

1 Like

You see, it’s smooth, but it’s just too stuck when you wake up. And I didn’t set up the power policy,BIOS settings are also normal.

inxi -Fazy

Doesn’t matter. Might will be the reason, whether your fault or not.

Please provide the information as mentioned by @cscs, as in order for us, or anyone for that matter, to be able to provide assistance, more information is necessary. To that end, please see:

Please also note and heed: Forum Rules - Manjaro

Hope you manage!


:bangbang: Tip: :bangbang:

To provide terminal output, copy the text you wish to share, and paste it here, surrounded by three (3) backticks, a.k.a grave accents. Like this:

```
pasted text
```

Or three (3) tilde signs, like this:

~~~
pasted text
~~~

This will just cause it to be rendered like this:

Portaest sed
elementum
cursus nisl nisi
hendrerit ac quis
sit
adipiscing
tortor sit leo commodo.

Instead of like this:

Portaest sed elementum cursus nisl nisi hendrerit ac quis sit adipiscing tortor sit leo commodo.

Alternatively, paste the text you wish to format as terminal output, select all pasted text, and click the </> button on the taskbar. This will indent the whole pasted section with one TAB, causing it to render the same way as described above.

Thereby improving legibility and making it much easier for those trying to be of assistance.


:bangbang::bangbang: Additionally

If your language isn’t English, please prepend any and all terminal commands with LC_ALL=C. For example:

LC_ALL=C bluetoothctl

This will just cause the terminal output to be in English, making it easier to understand and debug.

System:
  Kernel: 6.7.0-4-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
    clocksource: hpet available: acpi_pm
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.7-x86_64
    root=UUID=2e59c56a-e358-4426-9c94-ad96b29b5474 rw quiet apparmor=1
    security=apparmor udev.log_priority=3
  Desktop: Cinnamon v: 6.0.2 tk: GTK v: 3.24.39 vt: 7 dm: LightDM v: 1.32.0
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Desktop System: Micro (HK) Tech product: UM480XT v: N/A
    serial: <superuser required>
  Mobo: Shenzhen Meigao Equipment model: F6BFC serial: <superuser required>
    UEFI: American Megatrends v: 4.05 date: 08/01/2023
CPU:
  Info: model: AMD Ryzen 7 4800H with Radeon Graphics bits: 64 type: MT MCP
    arch: Zen 2 gen: 3 level: v3 note: check built: 2020-22
    process: TSMC n7 (7nm) family: 0x17 (23) model-id: 0x60 (96) stepping: 1
    microcode: 0x8600106
  Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
    L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB L3: 8 MiB
    desc: 2x4 MiB
  Speed (MHz): avg: 1592 high: 2900 min/max: 1400/2900 boost: enabled
    scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 1400 2: 2900
    3: 1400 4: 1400 5: 1479 6: 1400 7: 1400 8: 1400 9: 1400 10: 1400 11: 2900
    12: 1400 13: 1400 14: 1400 15: 1400 16: 1400 bogomips: 92663
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: retbleed mitigation: untrained return thunk; SMT enabled with STIBP
    protection
  Type: spec_rstack_overflow mitigation: Safe RET
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, STIBP:
    always-on, RSB filling, PBRSB-eIBRS: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Renoir [Radeon RX Vega 6 ] driver: amdgpu v: kernel arch: GCN-5
    code: Vega process: GF 14nm built: 2017-20 pcie: gen: 3 speed: 8 GT/s
    lanes: 16 link-max: gen: 4 speed: 16 GT/s ports: active: HDMI-A-2
    empty: DP-1,DP-2,HDMI-A-1 bus-ID: 04:00.0 chip-ID: 1002:1636 class-ID: 0300
    temp: 33.0 C
  Display: x11 server: X.org v: 1.21.1.10 with: Xwayland v: 23.2.3 driver: X:
    loaded: amdgpu unloaded: modesetting alternate: fbdev,vesa dri: radeonsi
    gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-size: <missing: xdpyinfo>
  Monitor-1: HDMI-A-2 mapped: HDMI-A-1 model: B24F2 serial: <filter>
    built: 2023 res: 1920x1080 dpi: 102 gamma: 1.2 size: 480x270mm (18.9x10.63")
    modes: max: 1920x1080 min: 720x400
  API: EGL v: 1.5 hw: drv: amd radeonsi platforms: device: 0 drv: radeonsi
    device: 1 drv: swrast surfaceless: drv: radeonsi x11: drv: radeonsi
    inactive: gbm,wayland
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 23.1.9-manjaro1.1
    glx-v: 1.4 direct-render: yes renderer: AMD Radeon Graphics (renoir LLVM
    16.0.6 DRM 3.56 6.7.0-4-MANJARO) device-ID: 1002:1636 memory: 500 MiB
    unified: no
  API: Vulkan v: 1.3.274 layers: 11 device: 0 type: integrated-gpu name: AMD
    Radeon Graphics (RADV RENOIR) driver: mesa radv v: 23.1.9-manjaro1.1
    device-ID: 1002:1636 surfaces: xcb,xlib
Audio:
  Device-1: AMD Renoir Radeon High Definition Audio driver: snd_hda_intel
    v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4
    speed: 16 GT/s bus-ID: 04:00.1 chip-ID: 1002:1637 class-ID: 0403
  Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor driver: N/A
    alternate: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x, snd_pci_acp6x,
    snd_acp_pci, snd_rpl_pci_acp6x, snd_pci_ps, snd_sof_amd_renoir,
    snd_sof_amd_rembrandt, snd_sof_amd_vangogh pcie: gen: 3 speed: 8 GT/s
    lanes: 16 link-max: gen: 4 speed: 16 GT/s bus-ID: 04:00.5
    chip-ID: 1022:15e2 class-ID: 0480
  Device-3: AMD Family 17h/19h HD Audio vendor: Realtek driver: snd_hda_intel
    v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4
    speed: 16 GT/s bus-ID: 04:00.6 chip-ID: 1022:15e3 class-ID: 0403
  API: ALSA v: k6.7.0-4-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: N/A
  Server-2: PipeWire v: 1.0.0 status: off tools: pw-cli
  Server-3: PulseAudio v: 16.1 status: active with: pulseaudio-alsa
    type: plugin tools: pacat,pactl,pavucontrol
Network:
  Device-1: Intel Ethernet I226-V driver: igc v: kernel pcie: gen: 2
    speed: 5 GT/s lanes: 1 port: N/A bus-ID: 01:00.0 chip-ID: 8086:125c
    class-ID: 0200
  IF: eno1 state: down mac: <filter>
  Device-2: MEDIATEK MT7921K Wi-Fi 6E 80MHz driver: mt7921e v: kernel pcie:
    gen: 2 speed: 5 GT/s lanes: 1 bus-ID: 02:00.0 chip-ID: 14c3:0608
    class-ID: 0280
  IF: wlp2s0 state: up mac: <filter>
Bluetooth:
  Device-1: MediaTek Wireless_Device driver: btusb v: 0.8 type: USB rev: 2.1
    speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-3:2 chip-ID: 0e8d:0608
    class-ID: e001 serial: <filter>
  Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends
Drives:
  Local Storage: total: 476.94 GiB used: 175.94 GiB (36.9%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: BIWIN model: SSD size: 476.94 GiB
    block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4
    tech: SSD serial: <filter> fw-rev: S0614B0 temp: 37.9 C scheme: GPT
Partition:
  ID-1: / raw-size: 266.23 GiB size: 260.99 GiB (98.03%)
    used: 175.88 GiB (67.4%) fs: ext4 dev: /dev/nvme0n1p5 maj-min: 259:5
  ID-2: /boot/efi raw-size: 100 MiB size: 96 MiB (96.00%)
    used: 70.7 MiB (73.7%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 36.9 C mobo: N/A gpu: amdgpu temp: 34.0 C
  Fan Speeds (rpm): N/A
Info:
  Processes: 347 Uptime: 15m wakeups: 0 Memory: total: 16 GiB note: est.
  available: 15.07 GiB used: 2.12 GiB (14.1%) Init: systemd v: 254
  default: graphical tool: systemctl Compilers: gcc: 13.2.1 clang: 16.0.6
  Packages: pm: pacman pkgs: 1293 libs: 378 tools: pamac,yay pm: flatpak
  pkgs: 0 Shell: Bash v: 5.2.21 running-in: gnome-terminal inxi: 3.3.31

Ok, i see.

OK, this is going to sound weird, I know. But let’s try something. It would seem from this page that there is (an other?) driver for the GPU available:

The Pulse 15 comes with a Ryzen 7 4800H CPU, which includes a Renoir GPU. The laptop works with the open source xf86-video-amdgpu driver.

However, it would seem you already have the in-kernel driver in use:

So perhaps we should just test the other one, which is in the extra repository:

$ pamac search xf86-video-amdgpu
[...]
xf86-video-amdgpu  23.0.0-1                                                                                                                                                                                                                             extra
X.org amdgpu video driver

So it can easily be installed using:

pamac install xf86-video-amdgpu

But then we have to blacklist the in-kernel driver to stop it from being used:

echo "blacklist amdgpu" | sudo tee /etc/modprobe.d/disable-amdgpu.conf

And then you can reboot to test it.

If is doesn’t help or work or anything, simply reverse those steps to revert to the previous driver:

  1. Remove the blacklist file:
sudo rm /etc/modprobe.d/disable-amdgpu.conf
  1. And remove the newly-installed driver:
sudo pamac remove xf86-video-amdgpu

Hope it helps!


Note:

I do not have an AMD GPU, so have no idea what this would do, if anything.