You are not logged in.

#26 2023-12-08 02:38:39

papabryce
Member
Registered: 2023-11-25
Posts: 16

Re: Chromium starts very slowly (30 seconds)

I removed TLP and powertop. It seems like now I see the issue regardless of whether I am plugged in. Maybe a step in the right direction?

Offline

#27 2023-12-08 08:04:24

seth
Member
Registered: 2012-09-03
Posts: 56,103

Re: Chromium starts very slowly (30 seconds)

https://wiki.archlinux.org/title/CPU_frequency_scaling
You could try to force the system into AC mode, but obviously this will shorten your battery-time.
https://wiki.archlinux.org/title/TLP#Fo … figuration (just  use AC instead of BAT)

Offline

#28 2024-05-12 00:24:20

patriarch001
Member
Registered: 2021-12-15
Posts: 14

Re: Chromium starts very slowly (30 seconds)

I'm facing the same issue as well regardless of whether my laptop is charging or not. I'm using hyprland too.

Offline

#29 2024-05-12 06:41:07

seth
Member
Registered: 2012-09-03
Posts: 56,103

Re: Chromium starts very slowly (30 seconds)

Is you CPU underclocked?
Do you have dbus/portal related errors in your system journal?
Is your dbus environment properly set?

See the head of this thread for some investigational steps - #meetoo generically slow is pointless here.

Offline

#30 2024-05-15 16:04:19

patriarch001
Member
Registered: 2021-12-15
Posts: 14

Re: Chromium starts very slowly (30 seconds)

seth wrote:

Is you CPU underclocked?
Do you have dbus/portal related errors in your system journal?
Is your dbus environment properly set?

See the head of this thread for some investigational steps - #meetoo generically slow is pointless here.

Will sure do! But meanwhile, here is some more specific details of the problem caused:

I've found out Chromium based browsers only launch late when the flag

"Preferred Ozone platform
Selects the preferred platform backend used on Linux. The default one is "X11". "Auto" selects Wayland if possible, X11 otherwise. – Linux"

is set to "Wayland".

Also, I'm using hyprland on Laptop.

Offline

#31 2024-05-15 16:06:31

seth
Member
Registered: 2012-09-03
Posts: 56,103

Re: Chromium starts very slowly (30 seconds)

https://wiki.archlinux.org/title/Chromi … er_Wayland

chromium --ozone-platform=wayland

?

Offline

#32 2024-06-10 23:14:21

rarchrinux
Member
Registered: 2023-01-09
Posts: 1

Re: Chromium starts very slowly (30 seconds)

Just wanted to chime in that I have had the exact same problem with chromium and electron apps for several months. Running Arch, Hyprland, and powertop. I have xdg-desktop-portal-hyprland and xdg-desktop-portal-gtk installed (no gnome, kde, etc). Setting —ozone-platform=wayland does not remove the delay, but it does affect whether the window appears immediately or after 30 seconds.

Offline

#33 2024-06-11 07:12:41

seth
Member
Registered: 2012-09-03
Posts: 56,103

Re: Chromium starts very slowly (30 seconds)

seth wrote:

Is you CPU underclocked?
Do you have dbus/portal related errors in your system journal?
Is your dbus environment properly set?

See the head of this thread for some investigational steps - #meetoo generically slow is pointless here.

That includes testing a fresh profile and lowerign the dbus timeout - stracing a massive beast like chromium to figure what it's waiting for is gonna be a complete PITA

Offline

#34 2024-08-24 23:06:35

kyentei
Member
From: The Netherlands
Registered: 2014-07-13
Posts: 16

Re: Chromium starts very slowly (30 seconds)

(I have intel + nvidia hybrid graphics)

This issue has been bothering me for weeks until I, due to this post, started digging in journalctl and found a lot of the same lines coming by:

[..]
Aug 24 23:50:26 xps kernel: [drm:__nv_drm_gem_nvkms_memory_prime_get_sg_table [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Cannot create sg_table for NvKmsKapiMemory 0x000000000001aaea
Aug 24 23:50:26 xps kernel: [drm:__nv_drm_gem_nvkms_memory_prime_get_sg_table [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Cannot create sg_table for NvKmsKapiMemory 0x000000000001aaea
Aug 24 23:50:26 xps systemd-journald[1098]: Missed 1 kernel messages
Aug 24 23:50:26 xps kernel: [drm:__nv_drm_gem_nvkms_memory_prime_get_sg_table [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Cannot create sg_table for NvKmsKapiMemory 0x000000000001aaea
Aug 24 23:50:26 xps systemd-journald[1098]: Missed 9 kernel messages
Aug 24 23:50:26 xps kernel: [drm:__nv_drm_gem_nvkms_memory_prime_get_sg_table [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Cannot create sg_table for NvKmsKapiMemory 0x000000000001aaea
[..]

Googling for this issue brought me to the nvidia forums and someone suggested that maybe, the i915 module wasn't present in the dracut config. So I verified mine, and indeed it wasn't there:

$ cat /etc/dracut.conf.d/myflags.conf 
hostonly="yes"
compress="lz4"
omit_dracutmodules+=" brltty "
force_drivers+=" nvidia nvidia_modeset nvidia_uvm nvidia_drm "

I've changed the force_drivers line to look like the following:

force_drivers+=" i915 nvidia nvidia_modeset nvidia_uvm nvidia_drm "

And regenerated my initramfs after:

dracut --force --no-hostonly-cmdline --hostonly "/boot/initramfs-linux.img" --kver "$(uname -r)"

Lo and behold, after a reboot my chromium based applications start instantly when using the ozone command line options.

Last edited by kyentei (2024-08-24 23:07:50)

Offline

#35 2024-08-25 06:36:04

seth
Member
Registered: 2012-09-03
Posts: 56,103

Re: Chromium starts very slowly (30 seconds)

You've probably previously been running the wayland server on either (likely, because of theyr initramfs presence) the nvidia GPU or the simpledrm device (as the intel chip wasn't ready and are now running on intel - the general problem seems unresolved, https://forums.developer.nvidia.com/t/5 … and/284775

The OP doesn't seem to have an nvidia chip, though there's a failure message about loading nvidia-uvm, so maybe spurious nvidia-utils installation?

Offline

Board footer

Powered by FluxBB