You are not logged in.

#1 2023-01-30 15:29:44

satoshich
Member
Registered: 2023-01-30
Posts: 9

[SOLVED] Chrome really slow on Asus ROG Zephyrus G14 (2022)

Hello,

I have an issue where Chrome is really slow on my Asus ROG Zephyrus G14 (2022) but only when not using an external screen.

The laptop has a AMD Ryzen 7 6800HS CPU (with integrated AMD Radeon 680M GPU) and a dedicated AMD Radeon RX 6800S GPU.

When attached to an external screen, it all works perfectly both on the external screen and the laptop screen. As soon the external screen is unplugged everything lags in Chrome.

I tried with different sets of drivers (not together):

  1. Official AMD proprietary: amdgpu-pro-oglp amf-amdgpu-pro lib32-amdgpu-pro-oglp lib32-libva-mesa-driver lib32-vulkan-amdgpu-pro libva-mesa-driver mesa-utils vulkan-amdgpu-pro xf86-video-amdgpu

  2. Open source: xf86-video-amdgpu vulkan-radeon lib32-vulkan-radeon libva-mesa-driver lib32-libva-mesa-driver

Nothing changes between the two sets.

I have this in /etc/mkinitcpio.conf:

MODULES=(amdgpu)

I also have this in /etc/X11/xorg.conf.d/20-amdgpu.conf:

Section "OutputClass"
        Identifier "AMD"
        MatchDriver "amdgpu"
        Driver "amdgpu"
        Option "PrimaryGPU" "yes"
EndSection

Using gdm for display manager and i3 for window manager.

Any ideas?

Thanks.

Last edited by satoshich (2023-01-30 17:01:28)

Offline

#2 2023-01-30 15:45:28

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,740

Re: [SOLVED] Chrome really slow on Asus ROG Zephyrus G14 (2022)

Sounds like power management kicks into too low of a state in the single screen case, try setting the performance level to high: https://wiki.archlinux.org/title/ATI#Dy … management

Offline

#3 2023-01-30 15:48:21

satoshich
Member
Registered: 2023-01-30
Posts: 9

Re: [SOLVED] Chrome really slow on Asus ROG Zephyrus G14 (2022)

V1del wrote:

Sounds like power management kicks into too low of a state in the single screen case, try setting the performance level to high: https://wiki.archlinux.org/title/ATI#Dy … management

Thanks, I am going to try now but wouldn't that happen only when unplugging it from the mains? It happens even when plugged in.

Offline

#4 2023-01-30 15:51:27

satoshich
Member
Registered: 2023-01-30
Posts: 9

Re: [SOLVED] Chrome really slow on Asus ROG Zephyrus G14 (2022)

satoshich wrote:
V1del wrote:

Sounds like power management kicks into too low of a state in the single screen case, try setting the performance level to high: https://wiki.archlinux.org/title/ATI#Dy … management

Thanks, I am going to try now but wouldn't that happen only when unplugging it from the mains? It happens even when plugged in.

I have tried now and still the same. Also setting it to low when the external screen is connected still doesn't lag, so I don't think it's that. Thanks

Offline

#5 2023-01-30 15:58:11

seth
Member
Registered: 2012-09-03
Posts: 51,253

Re: [SOLVED] Chrome really slow on Asus ROG Zephyrus G14 (2022)

a) Define reallyslow™, ~ 1fps or more?
b) Only chrome turns slow? And is it chrome or chromium? And is it some flatpak? Edit: what about glxgears?
c) Please post your xorg log, https://wiki.archlinux.org/title/Xorg#General
d) killall chrome; LIBGL_ALWAYS_SOFTWARE=true chrome # or chromium - still slow?

Last edited by seth (2023-01-30 15:58:29)

Offline

#6 2023-01-30 16:33:56

satoshich
Member
Registered: 2023-01-30
Posts: 9

Re: [SOLVED] Chrome really slow on Asus ROG Zephyrus G14 (2022)

seth wrote:

a) Define reallyslow™, ~ 1fps or more?
b) Only chrome turns slow? And is it chrome or chromium? And is it some flatpak? Edit: what about glxgears?
c) Please post your xorg log, https://wiki.archlinux.org/title/Xorg#General
d) killall chrome; LIBGL_ALWAYS_SOFTWARE=true chrome # or chromium - still slow?

a) Every mouse click or keystroke takes 1-3 seconds
b) I though only chrome (installed with yay -Sy google-chrome) was a problem but I also see 1 fps with glxgears when the external screen is unplugged, whilst it is 144 fps when the external screen is plugged in.
c) systemd journal (which I think includes xorg logs too): when unplugging, when plugging in
d) still slow

Thanks for your help!

Offline

#7 2023-01-30 16:38:08

seth
Member
Registered: 2012-09-03
Posts: 51,253

Re: [SOLVED] Chrome really slow on Asus ROG Zephyrus G14 (2022)

Jan 30 17:15:24 g14 /usr/lib/gdm-x-session[16288]: (EE) AMDGPU(G0): drmmode_do_crtc_dpms cannot get last vblank counter
Jan 30 17:15:24 g14 /usr/lib/gdm-x-session[16288]: (EE) AMDGPU(0): drmmode_do_crtc_dpms cannot get last vblank counter

This explains and confirms what, but not why. Please post the entire xorg log.
Also try to remove xf86-video-amdgpu (and your config referencing it!)

Offline

#8 2023-01-30 16:46:33

satoshich
Member
Registered: 2023-01-30
Posts: 9

Re: [SOLVED] Chrome really slow on Asus ROG Zephyrus G14 (2022)

seth wrote:
Jan 30 17:15:24 g14 /usr/lib/gdm-x-session[16288]: (EE) AMDGPU(G0): drmmode_do_crtc_dpms cannot get last vblank counter
Jan 30 17:15:24 g14 /usr/lib/gdm-x-session[16288]: (EE) AMDGPU(0): drmmode_do_crtc_dpms cannot get last vblank counter

This explains and confirms what, but not why. Please post the entire xorg log.
Also try to remove xf86-video-amdgpu (and your config referencing it!)

Thanks, I have removed that package now.

Full xorg log.

Offline

#9 2023-01-30 16:49:22

seth
Member
Registered: 2012-09-03
Posts: 51,253

Re: [SOLVED] Chrome really slow on Asus ROG Zephyrus G14 (2022)

If that doesn't help (you'll have to restart X11), try to run the internal displa at 60Hz

Offline

#10 2023-01-30 17:01:04

satoshich
Member
Registered: 2023-01-30
Posts: 9

Re: [SOLVED] Chrome really slow on Asus ROG Zephyrus G14 (2022)

seth wrote:

If that doesn't help (you'll have to restart X11), try to run the internal displa at 60Hz

That solved it, everything great after reboot. Thanks a lot!

Offline

Board footer

Powered by FluxBB