You are not logged in.

#1 2024-04-23 15:11:21

ZulluBalti
Member
Registered: 2021-04-07
Posts: 62

[SOLVED] Brave browser is too slow to open

Hi, I'm using arch linux 6.8.5 and I brave browser is too slow to open. Other browser like firefox open instantly but brave takes like 30s

Here are some logs

[zullu@zorch ~]$ brave-nightly -enable-logging=stderr -disable-gpu 
[105990:105990:0423/200228.960838:WARNING:chrome_main_delegate.cc(740)] This is Chrome version 123.1.66.47 (not a warning) 
[105990:105990:0423/200228.991127:INFO:policy_logger.cc(145)] :components/policy/core/common/config_dir_policy_loader.cc(118) Skipping mandatory platform policies because no policy file was found at: /etc/brave/policies/managed 
[105990:105990:0423/200228.991144:INFO:policy_logger.cc(145)] :components/policy/core/common/config_dir_policy_loader.cc(118) Skipping recommended platform policies because no policy file was found at: /etc/brave/policies/recommended 
[106029:106029:0423/200230.703193:WARNING:sandbox_linux.cc(418)] InitializeSandbox() called with multiple threads in process gpu-process. 
[106030:106030:0423/200244.084566:INFO:child_thread_impl.cc(957)] ChildThreadImpl::EnsureConnected() 
[105990:105990:0423/200247.995930:WARNING:key_storage_linux.cc(168)] OSCrypt tried Libsecret but couldn't initialise. 
[105990:105990:0423/200248.000033:ERROR:object_proxy.cc(576)] Failed to call method: org.kde.KWallet.isEnabled: object_path= /modules/kwalletd6: org.freedesktop.DBus.Error.ServiceUnknown: The name org.kde.kwalletd6 was not provided by any .service files 
[105990:105990:0423/200248.000311:ERROR:kwallet_dbus.cc(112)] Error contacting kwalletd6 (isEnabled) 
[105990:105990:0423/200248.001576:ERROR:object_proxy.cc(576)] Failed to call method: org.kde.KLauncher.start_service_by_desktop_name: object_path= /KLauncher: org.freedesktop.DBus.Error.ServiceUnknown: The name org.kde.klauncher was not provided by any .service files 
[105990:105990:0423/200248.001633:ERROR:kwallet_dbus.cc(81)] Error contacting klauncher to start kwalletd6 
[105990:105990:0423/200248.001656:WARNING:key_storage_linux.cc(191)] OSCrypt tried KWallet but couldn't initialise. 
[105990:105990:0423/200248.002708:ERROR:object_proxy.cc(576)] Failed to call method: org.kde.KWallet.close: object_path= /modules/kwalletd6: org.freedesktop.DBus.Error.ServiceUnknown: The name org.kde.kwalletd6 was not provided by any .service files 
[105990:105990:0423/200248.002764:ERROR:kwallet_dbus.cc(502)] Error contacting kwalletd6 (close) 
[105990:105990:0423/200248.007181:ERROR:object_proxy.cc(576)] Failed to call method: org.kde.KWallet.isEnabled: object_path= /modules/kwalletd5: org.freedesktop.DBus.Error.ServiceUnknown: The name org.kde.kwalletd5 was not provided by any .service files 
[105990:105990:0423/200248.007241:ERROR:kwallet_dbus.cc(112)] Error contacting kwalletd5 (isEnabled) 
[105990:105990:0423/200248.008390:ERROR:object_proxy.cc(576)] Failed to call method: org.kde.KLauncher.start_service_by_desktop_name: object_path= /KLauncher: org.freedesktop.DBus.Error.ServiceUnknown: The name org.kde.klauncher was not provided by any .service files 
[105990:105990:0423/200248.008447:ERROR:kwallet_dbus.cc(81)] Error contacting klauncher to start kwalletd5 
[105990:105990:0423/200248.008469:WARNING:key_storage_linux.cc(191)] OSCrypt tried KWallet but couldn't initialise. 
[105990:105990:0423/200248.009513:ERROR:object_proxy.cc(576)] Failed to call method: org.kde.KWallet.close: object_path= /modules/kwalletd5: org.freedesktop.DBus.Error.ServiceUnknown: The name org.kde.kwalletd5 was not provided by any .service files 
[105990:105990:0423/200248.009570:ERROR:kwallet_dbus.cc(502)] Error contacting kwalletd5 (close) 
[105990:105990:0423/200248.011572:ERROR:object_proxy.cc(576)] Failed to call method: org.kde.KWallet.isEnabled: object_path= /modules/kwalletd: org.freedesktop.DBus.Error.ServiceUnknown: The name org.kde.kwalletd was not provided by any .service files 
[105990:105990:0423/200248.011597:ERROR:kwallet_dbus.cc(112)] Error contacting kwalletd (isEnabled) 
[105990:105990:0423/200248.012028:ERROR:object_proxy.cc(576)] Failed to call method: org.kde.KLauncher.start_service_by_desktop_name: object_path= /KLauncher: org.freedesktop.DBus.Error.ServiceUnknown: The name org.kde.klauncher was not provided by any .service files 
[105990:105990:0423/200248.012046:ERROR:kwallet_dbus.cc(81)] Error contacting klauncher to start kwalletd 
[105990:105990:0423/200248.012062:WARNING:key_storage_linux.cc(191)] OSCrypt tried KWallet but couldn't initialise. 
[105990:105990:0423/200248.012425:ERROR:object_proxy.cc(576)] Failed to call method: org.kde.KWallet.close: object_path= /modules/kwalletd: org.freedesktop.DBus.Error.ServiceUnknown: The name org.kde.kwalletd was not provided by any .service files 
[105990:105990:0423/200248.012442:ERROR:kwallet_dbus.cc(502)] Error contacting kwalletd (close) 
[105990:105990:0423/200248.013762:ERROR:policy_logger.cc(157)] :components/enterprise/browser/controller/chrome_browser_cloud_management_controller.cc(161) Cloud management controller initialization aborted as CBCM is not enabled. Please use the `--enable-chrome-browser-cloud-management` command line flag to enable it if you are not using the official Google Chrome build. 
[105990:105990:0423/200248.093410:WARNING:external_provider_impl.cc(514)] Malformed extension dictionary for extension: odbfpeeihdkbihmopkbjmoonfanlbfcl.  Key external_update_url has value "", which is not a valid URL. 
[105990:105990:0423/200248.167099:WARNING:bluez_dbus_manager.cc(248)] Floss manager not present, cannot set Floss enable/disable. 
[105990:106333:0423/200248.191498:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable 
[105990:106333:0423/200248.191507:WARNING:property.cc(144)] DaemonVersion: GetAndBlock: failed. 
[105990:106333:0423/200248.191531:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.UPower.GetDisplayDevice: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable 
[105990:106333:0423/200248.191552:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.UPower.EnumerateDevices: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable 
[105990:105990:0423/200248.208339:ERROR:network_service_instance_impl.cc(599)] Network service crashed, restarting service. 
[105990:105990:0423/200248.254129:WARNING:idle_linux.cc(105)] None of the known D-Bus ScreenSaver services could be used. 
[105990:105990:0423/200248.255374:ERROR:service_worker_task_queue.cc(244)] DidStartWorkerFail fmkadmapgofadopljbjfkapdkoienihi: 3 
[105990:105990:0423/200248.288836:WARNING:CONSOLE(5)] "crbug/1173575, non-JS module files deprecated.", source: chrome://resources/js/load_time_data_deprecated.js (5) 
[105990:105990:0423/200248.296907:INFO:CONSOLE(6556)] "  /''''\ 
 (0)==(0) 
/__||||__\ 
Welcome to Dark Reader!", source: chrome-extension://eimadpbcbfnmbkopoojfekhnkhdbieeh/background/index.js (6556) 
[105990:105990:0423/200248.297496:INFO:CONSOLE(1)] "started cache machine", source: chrome-extension://eidhkmnbiahhgbgpjpiimdogfidfikgf/background/background.js (1) 
[105990:105990:0423/200248.307929:ERROR:service_worker_task_queue.cc(244)] DidStartWorkerFail dbepggeogbaibhgnhhndojpepiihcmeb: 3 
[105990:105990:0423/200248.335480:INFO:CONSOLE(1)] "got stored context", source: chrome-extension://eidhkmnbiahhgbgpjpiimdogfidfikgf/background/background.js (1) 
[105990:105990:0423/200248.335511:INFO:CONSOLE(1)] "[object Object]", source: chrome-extension://eidhkmnbiahhgbgpjpiimdogfidfikgf/background/background.js (1) 
[105990:105990:0423/200248.336880:INFO:CONSOLE(84)] "[ClearURLs]: Save on disk.", source: chrome-extension://lckanjgmijmafbedllaakclkaicjfmnk/core_js/storage.js (84) 
[105990:105990:0423/200248.398581:INFO:CONSOLE(2700)] "Slow network is detected. See https://www.chromestatus.com/feature/5636954674692096 for more details. Fallback font will be used while loading: chrome://resources/brave/fonts/third_party/poppins/Poppins_300_normal_latin_v20.woff2", source: chrome://newtab/brave_new_tab.bundle.js (2700) 
[105990:105990:0423/200248.398678:INFO:CONSOLE(2700)] "Slow network is detected. See https://www.chromestatus.com/feature/5636954674692096 for more details. Fallback font will be used while loading: chrome://resources/brave/fonts/third_party/poppins/Poppins_600_normal_latin_v20.woff2", source: chrome://newtab/brave_new_tab.bundle.js (2700) 
[105990:105990:0423/200248.695664:INFO:CONSOLE(150)] "rcxDict main then in 369", source: chrome-extension://jipdnfibhldikgcjhfnomkfpcebammhp/data.js (150) 

any solution?

Last edited by ZulluBalti (2024-04-24 14:22:19)

Offline

#2 2024-04-23 15:30:29

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,902
Website

Re: [SOLVED] Brave browser is too slow to open

Mod note: Moving to AUR Issues.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2024-04-23 15:30:36

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

Re: [SOLVED] Brave browser is too slow to open

It's failing to launch kwallet a bunch of times, what's your general environment, what are your outputs for

loginctl session-status
printenv | grep -E 'DBUS|XDG'

Offline

#4 2024-04-23 16:37:08

ZulluBalti
Member
Registered: 2021-04-07
Posts: 62

Re: [SOLVED] Brave browser is too slow to open

I'm using dwm,
here's the output of the commands

loginctl session-status
1 - zullu (1000)
  Since: Tue 2024-04-23 15:00:48 PKT; 4h 15min ago
  State: active
 Leader: 1183 (login)
   Seat: seat0; vc1
    TTY: tty1
 Remote: no
Service: login
   Type: tty
  Class: user
   Idle: yes since Tue 2024-04-23 15:00:48 PKT ((null))
   Unit: session-1.scope
         ├─  1183 "login -- zullu"
         ├─  1210 /bin/sh /usr/bin/startx /home/zullu/.config/x11/xinitrc
         ├─  1217 /usr/bin/dbus-daemon --syslog --fork --print-pid 4 --print-address 6 --session
         ├─  1268 xinit /home/zullu/.config/x11/xinitrc -- /etc/X11/xinit/xserverrc :0 vt1 -keeptty -auth /tmp/serverauth.F7s4L3elZR
         ├─  1270 /usr/lib/Xorg -nolisten tcp :0 vt1 -keeptty -auth /tmp/serverauth.F7s4L3elZR
         ├─  1301 /bin/sh /home/zullu/.config/x11/xinitrc
         ├─  1305 /bin/sh /home/zullu/.config/x11/xinitrc
         ├─  1307 /bin/sh /home/zullu/.config/x11/xinitrc
         ├─  1311 /bin/sh /home/zullu/.config/x11/xinitrc
         ├─  1317 dwm
         ├─  1320 ssh-agent dwm
         ├─  1322 /bin/bash /home/zullu/.local/bin/remapd
         ├─  1325 xcompmgr
         ├─  1327 unclutter
         ├─  1337 xcape -e Super_L Escape
         ├─  1341 udevadm monitor -u -t seat -s input -s usb
         ├─  1342 grep -qP -m1 "[^un]bind.+\\/[^:]+\\(usb\\)" /dev/fd/63
         ├─  1345 dwmblocks
         ├─  1352 tsp -l
         ├─  1384 dunst
         ├─  1390 mpd
         ├─  1619 /usr/lib/at-spi-bus-launcher
         ├─  3111 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 11 --address=unix:path=/run/user/1000/at-spi/bus_0
         ├─  3118 /usr/lib/at-spi2-registryd --use-gnome-session
         ├─ 17802 /usr/lib/dconf-service
         ├─106902 /bin/bash /opt/brave.com/brave-nightly/brave-browser
         ├─106906 cat
         ├─106907 cat
         ├─106908 "/opt/brave.com/brave-nightly/brave   "
         ├─106910 /opt/brave.com/brave-nightly/chrome_crashpad_handler --monitor-self --monitor-self-annotation=ptype=crashpad-handler "--database=/home/zullu/.config/BraveSoftware/Brave-Browser-Nightly/Crash Reports" --metrics-dir=/home/zullu/.config/BraveSoftware/Brave-Browser-Nightly --url=https://cr.brave.com --annotation=channel=nightly "--annotation=lsb-release=Arch Linux" --annotation=plat=Linux --annotation=prod=Chrome_Linux --annotation=ver=123.1.66.47 --initial-client-fd=5 --shared-client-connection
         ├─106912 /opt/brave.com/brave-nightly/chrome_crashpad_handler --no-periodic-tasks --monitor-self-annotation=ptype=crashpad-handler "--database=/home/zullu/.config/BraveSoftware/Brave-Browser-Nightly/Crash Reports" --url=https://cr.brave.com --annotation=channel=nightly "--annotation=lsb-release=Arch Linux" --annotation=plat=Linux --annotation=prod=Chrome_Linux --annotation=ver=123.1.66.47 --initial-client-fd=4 --shared-client-connection
         ├─106918 "/opt/brave.com/brave-nightly/brave --type=zygote --no-zygote-sandbox --crashpad-handler-pid=106910 --enable-crash-reporter=b5a5cb4c-7aa8-4a68-b442-f700dd73eaca,nightly --change-stack-guard-on-fork=enable"
         ├─106919 "/opt/brave.com/brave-nightly/brave --type=zygote --crashpad-handler-pid=106910 --enable-crash-reporter=b5a5cb4c-7aa8-4a68-b442-f700dd73eaca,nightly --change-stack-guard-on-fork=enable"
         ├─106921 "/opt/brave.com/brave-nightly/brave --type=zygote --crashpad-handler-pid=106910 --enable-crash-reporter=b5a5cb4c-7aa8-4a68-b442-f700dd73eaca,nightly --change-stack-guard-on-fork=enable"
         ├─106941 "/opt/brave.com/brave-nightly/brave --type=gpu-process --crashpad-handler-pid=106910 --enable-crash-reporter=b5a5cb4c-7aa8-4a68-b442-f700dd73eaca,nightly --change-stack-guard-on-fork=enable --gpu-preferences=WAAAAAAAAAAhAAAEAAAAAAAAAAAAAAAAAABgAAEAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAGAAAAAAAAAAYAAAAAAAAAAgAAAAAAAAACAAAAAAAAAAIAAAAAAAAAA== --shared-files --field-trial-handle=3,i,6516747491769289636,16118984573796843433,262144 --variations-seed-version=1"
         ├─107238 "/opt/brave.com/brave-nightly/brave --type=utility --utility-sub-type=storage.mojom.StorageService --lang=en-US --service-sandbox-type=utility --crashpad-handler-pid=106910 --enable-crash-reporter=b5a5cb4c-7aa8-4a68-b442-f700dd73eaca,nightly --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,6516747491769289636,16118984573796843433,262144 --variations-seed-version=1"
         ├─107314 "/opt/brave.com/brave-nightly/brave --type=renderer --crashpad-handler-pid=106910 --enable-crash-reporter=b5a5cb4c-7aa8-4a68-b442-f700dd73eaca,nightly --extension-process --enable-distillability-service --origin-trial-public-key=bYUKPJoPnCxeNvu72j4EmPuK7tr1PAC7SHh8ld9Mw3E=,fMS4mpO6buLQ/QMd+zJmxzty/VQ6B1EUZqoCU04zoRU= --change-stack-guard-on-fork=enable --brave_session_token=586675831589299500 --disable-accelerated-video-decode --lang=en-US --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=5 --time-ticks-at-unix-epoch=-1713875034304221 --launch-time-ticks=9596475740 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,6516747491769289636,16118984573796843433,262144 --variations-seed-version=1"
         ├─107335 "/opt/brave.com/brave-nightly/brave --type=renderer --crashpad-handler-pid=106910 --enable-crash-reporter=b5a5cb4c-7aa8-4a68-b442-f700dd73eaca,nightly --extension-process --enable-distillability-service --origin-trial-public-key=bYUKPJoPnCxeNvu72j4EmPuK7tr1PAC7SHh8ld9Mw3E=,fMS4mpO6buLQ/QMd+zJmxzty/VQ6B1EUZqoCU04zoRU= --change-stack-guard-on-fork=enable --brave_session_token=586675831589299500 --disable-accelerated-video-decode --lang=en-US --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=6 --time-ticks-at-unix-epoch=-1713875034304221 --launch-time-ticks=9596495232 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,6516747491769289636,16118984573796843433,262144 --variations-seed-version=1"
         ├─107354 "/opt/brave.com/brave-nightly/brave --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --crashpad-handler-pid=106910 --enable-crash-reporter=b5a5cb4c-7aa8-4a68-b442-f700dd73eaca,nightly --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,6516747491769289636,16118984573796843433,262144 --variations-seed-version=1"
         ├─107363 "/opt/brave.com/brave-nightly/brave --type=renderer --crashpad-handler-pid=106910 --enable-crash-reporter=b5a5cb4c-7aa8-4a68-b442-f700dd73eaca,nightly --extension-process --enable-distillability-service --origin-trial-public-key=bYUKPJoPnCxeNvu72j4EmPuK7tr1PAC7SHh8ld9Mw3E=,fMS4mpO6buLQ/QMd+zJmxzty/VQ6B1EUZqoCU04zoRU= --change-stack-guard-on-fork=enable --brave_session_token=586675831589299500 --disable-accelerated-video-decode --lang=en-US --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=7 --time-ticks-at-unix-epoch=-1713875034304221 --launch-time-ticks=9596510559 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,6516747491769289636,16118984573796843433,262144 --variations-seed-version=1"
         ├─107380 "/opt/brave.com/brave-nightly/brave --type=renderer --crashpad-handler-pid=106910 --enable-crash-reporter=b5a5cb4c-7aa8-4a68-b442-f700dd73eaca,nightly --extension-process --enable-distillability-service --origin-trial-public-key=bYUKPJoPnCxeNvu72j4EmPuK7tr1PAC7SHh8ld9Mw3E=,fMS4mpO6buLQ/QMd+zJmxzty/VQ6B1EUZqoCU04zoRU= --change-stack-guard-on-fork=enable --brave_session_token=586675831589299500 --disable-accelerated-video-decode --lang=en-US --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=8 --time-ticks-at-unix-epoch=-1713875034304221 --launch-time-ticks=9596521372 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,6516747491769289636,16118984573796843433,262144 --variations-seed-version=1"
         ├─107431 "/opt/brave.com/brave-nightly/brave --type=renderer --crashpad-handler-pid=106910 --enable-crash-reporter=b5a5cb4c-7aa8-4a68-b442-f700dd73eaca,nightly --extension-process --enable-distillability-service --origin-trial-public-key=bYUKPJoPnCxeNvu72j4EmPuK7tr1PAC7SHh8ld9Mw3E=,fMS4mpO6buLQ/QMd+zJmxzty/VQ6B1EUZqoCU04zoRU= --change-stack-guard-on-fork=enable --brave_session_token=586675831589299500 --disable-accelerated-video-decode --lang=en-US --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=9 --time-ticks-at-unix-epoch=-1713875034304221 --launch-time-ticks=9596537911 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,6516747491769289636,16118984573796843433,262144 --variations-seed-version=1"
         ├─107866 st -n spterm -g 120x34
         ├─107867 /bin/zsh
         ├─113371 "/opt/brave.com/brave-nightly/brave --type=utility --utility-sub-type=audio.mojom.AudioService --lang=en-US --service-sandbox-type=none --crashpad-handler-pid=106910 --enable-crash-reporter=b5a5cb4c-7aa8-4a68-b442-f700dd73eaca,nightly --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,6516747491769289636,16118984573796843433,262144 --variations-seed-version=1"
         ├─123761 "/opt/brave.com/brave-nightly/brave --type=renderer --crashpad-handler-pid=106910 --enable-crash-reporter=b5a5cb4c-7aa8-4a68-b442-f700dd73eaca,nightly --extension-process --enable-distillability-service --origin-trial-public-key=bYUKPJoPnCxeNvu72j4EmPuK7tr1PAC7SHh8ld9Mw3E=,fMS4mpO6buLQ/QMd+zJmxzty/VQ6B1EUZqoCU04zoRU= --change-stack-guard-on-fork=enable --brave_session_token=586675831589299500 --disable-accelerated-video-decode --lang=en-US --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=93 --time-ticks-at-unix-epoch=-1713875034304221 --launch-time-ticks=10876186365 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,6516747491769289636,16118984573796843433,262144 --variations-seed-version=1"
         ├─123961 "/opt/brave.com/brave-nightly/brave --type=renderer --crashpad-handler-pid=106910 --enable-crash-reporter=b5a5cb4c-7aa8-4a68-b442-f700dd73eaca,nightly --enable-distillability-service --origin-trial-public-key=bYUKPJoPnCxeNvu72j4EmPuK7tr1PAC7SHh8ld9Mw3E=,fMS4mpO6buLQ/QMd+zJmxzty/VQ6B1EUZqoCU04zoRU= --change-stack-guard-on-fork=enable --brave_session_token=586675831589299500 --disable-accelerated-video-decode --lang=en-US --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=94 --time-ticks-at-unix-epoch=-1713875034304221 --launch-time-ticks=10893019989 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,6516747491769289636,16118984573796843433,262144 --variations-seed-version=1"
         ├─178016 "/opt/brave.com/brave-nightly/brave --type=renderer --crashpad-handler-pid=106910 --enable-crash-reporter=b5a5cb4c-7aa8-4a68-b442-f700dd73eaca,nightly --enable-distillability-service --origin-trial-public-key=bYUKPJoPnCxeNvu72j4EmPuK7tr1PAC7SHh8ld9Mw3E=,fMS4mpO6buLQ/QMd+zJmxzty/VQ6B1EUZqoCU04zoRU= --change-stack-guard-on-fork=enable --brave_session_token=586675831589299500 --disable-accelerated-video-decode --lang=en-US --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=302 --time-ticks-at-unix-epoch=-1713875034304221 --launch-time-ticks=15096870285 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,6516747491769289636,16118984573796843433,262144 --variations-seed-version=1"
         ├─178026 "/opt/brave.com/brave-nightly/brave --type=renderer --crashpad-handler-pid=106910 --enable-crash-reporter=b5a5cb4c-7aa8-4a68-b442-f700dd73eaca,nightly --enable-distillability-service --origin-trial-public-key=bYUKPJoPnCxeNvu72j4EmPuK7tr1PAC7SHh8ld9Mw3E=,fMS4mpO6buLQ/QMd+zJmxzty/VQ6B1EUZqoCU04zoRU= --change-stack-guard-on-fork=enable --brave_session_token=586675831589299500 --disable-accelerated-video-decode --lang=en-US --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=303 --time-ticks-at-unix-epoch=-1713875034304221 --launch-time-ticks=15096950972 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,6516747491769289636,16118984573796843433,262144 --variations-seed-version=1"
         ├─178053 "/opt/brave.com/brave-nightly/brave --type=renderer --crashpad-handler-pid=106910 --enable-crash-reporter=b5a5cb4c-7aa8-4a68-b442-f700dd73eaca,nightly --enable-distillability-service --origin-trial-public-key=bYUKPJoPnCxeNvu72j4EmPuK7tr1PAC7SHh8ld9Mw3E=,fMS4mpO6buLQ/QMd+zJmxzty/VQ6B1EUZqoCU04zoRU= --change-stack-guard-on-fork=enable --brave_session_token=586675831589299500 --disable-accelerated-video-decode --lang=en-US --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=304 --time-ticks-at-unix-epoch=-1713875034304221 --launch-time-ticks=15098218913 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,6516747491769289636,16118984573796843433,262144 --variations-seed-version=1"
         ├─178210 "/opt/brave.com/brave-nightly/brave --type=renderer --crashpad-handler-pid=106910 --enable-crash-reporter=b5a5cb4c-7aa8-4a68-b442-f700dd73eaca,nightly --enable-distillability-service --origin-trial-public-key=bYUKPJoPnCxeNvu72j4EmPuK7tr1PAC7SHh8ld9Mw3E=,fMS4mpO6buLQ/QMd+zJmxzty/VQ6B1EUZqoCU04zoRU= --change-stack-guard-on-fork=enable --brave_session_token=586675831589299500 --disable-accelerated-video-decode --lang=en-US --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=306 --time-ticks-at-unix-epoch=-1713875034304221 --launch-time-ticks=15107608952 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,6516747491769289636,16118984573796843433,262144 --variations-seed-version=1"
         ├─178219 "/opt/brave.com/brave-nightly/brave --type=renderer --crashpad-handler-pid=106910 --enable-crash-reporter=b5a5cb4c-7aa8-4a68-b442-f700dd73eaca,nightly --enable-distillability-service --origin-trial-public-key=bYUKPJoPnCxeNvu72j4EmPuK7tr1PAC7SHh8ld9Mw3E=,fMS4mpO6buLQ/QMd+zJmxzty/VQ6B1EUZqoCU04zoRU= --change-stack-guard-on-fork=enable --brave_session_token=586675831589299500 --disable-accelerated-video-decode --lang=en-US --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=307 --time-ticks-at-unix-epoch=-1713875034304221 --launch-time-ticks=15108275708 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,6516747491769289636,16118984573796843433,262144 --variations-seed-version=1"
         ├─180642 xclip -selection clipboard
         ├─180751 "/opt/brave.com/brave-nightly/brave --type=renderer --crashpad-handler-pid=106910 --enable-crash-reporter=b5a5cb4c-7aa8-4a68-b442-f700dd73eaca,nightly --extension-process --enable-distillability-service --origin-trial-public-key=bYUKPJoPnCxeNvu72j4EmPuK7tr1PAC7SHh8ld9Mw3E=,fMS4mpO6buLQ/QMd+zJmxzty/VQ6B1EUZqoCU04zoRU= --change-stack-guard-on-fork=enable --brave_session_token=586675831589299500 --disable-accelerated-video-decode --lang=en-US --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=313 --time-ticks-at-unix-epoch=-1713875034304221 --launch-time-ticks=15346691122 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,6516747491769289636,16118984573796843433,262144 --variations-seed-version=1"
         ├─180824 loginctl session-status
         └─180825 xclip -selection clipboard

Apr 23 20:00:47 zorch dbus-daemon[1217]: [session uid=1000 pid=1213] Activating service name='org.freedesktop.secrets' requested by ':1.68' (uid=1000 pid=104205 comm="/opt/brave.com/brave-nightly/brave -enable-logging")
Apr 23 20:00:47 zorch gnome-keyring-daemon[104244]: discover_other_daemon: 1
Apr 23 20:00:47 zorch org.freedesktop.secrets[104244]: GNOME_KEYRING_CONTROL=/run/user/1000/keyring
Apr 23 20:00:47 zorch org.freedesktop.secrets[104244]: discover_other_daemon: 1
Apr 23 20:02:47 zorch dbus-daemon[1217]: [session uid=1000 pid=1213] Failed to activate service 'org.freedesktop.secrets': timed out (service_start_timeout=120000ms)
Apr 23 20:03:25 zorch dbus-daemon[1217]: [session uid=1000 pid=1213] Activating service name='org.freedesktop.secrets' requested by ':1.105' (uid=1000 pid=106908 comm="/opt/brave.com/brave-nightly/brave   ")
Apr 23 20:03:25 zorch gnome-keyring-daemon[106947]: discover_other_daemon: 1
Apr 23 20:03:25 zorch org.freedesktop.secrets[106947]: GNOME_KEYRING_CONTROL=/run/user/1000/keyring
Apr 23 20:03:25 zorch org.freedesktop.secrets[106947]: discover_other_daemon: 1
Apr 23 20:05:25 zorch dbus-daemon[1217]: [session uid=1000 pid=1213] Failed to activate service 'org.freedesktop.secrets': timed out (service_start_timeout=120000ms)
printenv | grep -E 'DBUS|XDG'
XDG_DATA_HOME=/home/zullu/.local/share
XDG_CONFIG_HOME=/home/zullu/.config
XDG_SEAT=seat0
XDG_SESSION_TYPE=tty
XDG_CACHE_HOME=/home/zullu/.cache
XDG_SESSION_CLASS=user
XDG_VTNR=1
DBUS_SESSION_BUS_PID=1217
XDG_SESSION_ID=1
XDG_RUNTIME_DIR=/run/user/1000
DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/dbus-xowBG7NYOd,guid=10d0a8e6ee21eb04dc48ec76662786d0

Last edited by ZulluBalti (2024-04-23 16:40:05)

Offline

#5 2024-04-23 16:45:44

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

Re: [SOLVED] Brave browser is too slow to open

DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/dbus-xowBG7NYOd,guid=10d0a8e6ee21eb04dc48ec76662786d0

Last link below, second blue note.
And don't use dbus-launch anywhere.

Offline

#6 2024-04-24 06:38:51

ZulluBalti
Member
Registered: 2021-04-07
Posts: 62

Re: [SOLVED] Brave browser is too slow to open

seth wrote:

DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/dbus-xowBG7NYOd,guid=10d0a8e6ee21eb04dc48ec76662786d0

Last link below, second blue note.
And don't use dbus-launch anywhere.

Hi, I'm not using dbus-launch anywhere.
Here's my setup

.zprofile

export XDG_CONFIG_HOME="$HOME/.config"
export XINITRC="$XDG_CONFIG_HOME/x11/xinitrc"
# Start graphical server on user's current tty if not already running.
[ "$(tty)" = "/dev/tty1" ] && ! pidof -s Xorg >/dev/null 2>&1 && exec startx "$XINITRC"

.config/x11/xinitrc

if [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/x11/xprofile" ]; then
	. "${XDG_CONFIG_HOME:-$HOME/.config}/x11/xprofile"
else
	. "$HOME/.xprofile"
fi

# Activate dbus variables
dbus-update-activation-environment --all
ssh-agent dwm

.config/x11/xprofile

#!/bin/sh
xrandr --dpi 141
setbg &
autostart="mpd xcompmgr dunst unclutter pipewire remapd"

for program in $autostart; do
	pidof -sx "$program" || "$program" &
done >/dev/null 2>&1

# I added this after reading the 2nd blue note that you mention
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

# Ensure that xrdb has finished running before moving on to start the WM/DE.
[ -n "$xrdbpid" ] && wait "$xrdbpid"

Offline

#7 2024-04-24 07:02:52

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

Re: [SOLVED] Brave browser is too slow to open

         ├─  1210 /bin/sh /usr/bin/startx /home/zullu/.config/x11/xinitrc
         ├─  1217 /usr/bin/dbus-daemon --syslog --fork --print-pid 4 --print-address 6 --session
         ├─  1268 xinit /home/zullu/.config/x11/xinitrc -- /etc/X11/xinit/xserverrc :0 vt1 -keeptty -auth /tmp/serverauth.F7s4L3elZR

has to be coming from somewhere

# I added this after reading the 2nd blue note that you mention
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
done
unset f
fi

this is the critical part, but you want that in your xinitrc (as xprofile would theoretically be sourced by DMs where this isn't necessary and might or not cause conflicts) and before sourcing xprofile.

dbus-update-activation-environment --all

should™ then not be necessary anymore at all.

=> report back with the impact of those changes (on your session-status, environment and the brave situation)

Offline

#8 2024-04-24 08:11:41

ZulluBalti
Member
Registered: 2021-04-07
Posts: 62

Re: [SOLVED] Brave browser is too slow to open

If I understand it correctly, brave mistakenly thinks that I'm using KDE, right? And that's causing the issue?

I've moved this code in xinitrc at the top before sourcing xprofile. Brave is still slow to launch when there's no instances of brave already running

# I added this after reading the 2nd blue note that you mention
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
done
unset f
fi

and also commented out this

dbus-update-activation-environment --all
loginctl session-status
1 - zullu (1000)
  Since: Wed 2024-04-24 13:06:40 PKT; 1min 59s ago
  State: active
 Leader: 830 (login)
   Seat: seat0; vc1
    TTY: tty1
 Remote: no
Service: login
   Type: tty
  Class: user
   Idle: no
   Unit: session-1.scope
         ├─ 830 "login -- zullu"
         ├─ 872 /bin/sh /usr/bin/startx /home/zullu/.config/x11/xinitrc
         ├─ 879 /usr/bin/dbus-daemon --syslog --fork --print-pid 4 --print-address 6 --session
         ├─ 931 xinit /home/zullu/.config/x11/xinitrc -- /etc/X11/xinit/xserverrc :0 vt1 -keeptty -auth /tmp/serverauth.MHmlbEKZdT
         ├─ 932 /usr/lib/Xorg -nolisten tcp :0 vt1 -keeptty -auth /tmp/serverauth.MHmlbEKZdT
         ├─ 951 /bin/sh /home/zullu/.config/x11/xinitrc
         ├─ 957 /bin/sh /home/zullu/.config/x11/xinitrc
         ├─ 959 /bin/sh /home/zullu/.config/x11/xinitrc
         ├─ 964 /bin/sh /home/zullu/.config/x11/xinitrc
         ├─ 967 dwm
         ├─ 969 ssh-agent dwm
         ├─ 973 /bin/bash /home/zullu/.local/bin/remapd
         ├─ 976 xcompmgr
         ├─ 978 unclutter
         ├─ 988 xcape -e Super_L Escape
         ├─ 992 udevadm monitor -u -t seat -s input -s usb
         ├─ 993 grep -qP -m1 "[^un]bind.+\\/[^:]+\\(usb\\)" /dev/fd/63
         ├─ 996 dwmblocks
         ├─1003 tsp -l
         ├─1035 dunst
         ├─1040 mpd
         ├─1551 /bin/zsh
         ├─1585 /usr/lib/signal-desktop/signal-desktop
         ├─1595 "/usr/lib/signal-desktop/signal-desktop --type=zygote --no-zygote-sandbox"
         ├─1596 "/usr/lib/signal-desktop/signal-desktop --type=zygote"
         ├─1598 "/usr/lib/signal-desktop/signal-desktop --type=zygote"
         ├─1652 "/usr/lib/signal-desktop/signal-desktop --type=gpu-process --enable-crash-reporter=c369152c-316d-4536-aff1-91d1c2932e26,no_channel --user-data-dir=/home/zullu/.config/Signal --gpu-preferences=WAAAAAAAAAAgAAAEAAAAAAAAAAAAAAAAAABgAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAGAAAAAAAAAAYAAAAAAAAAAgAAAAAAAAACAAAAAAAAAAIAAAAAAAAAA== --use-gl=angle --use-angle=swiftshader-webgl --shared-files --field-trial-handle=0,i,12200693920275751208,12951174730616818293,262144 --enable-features=kWebSQLAccess --disable-features=HardwareMediaKeyHandling,SpareRendererForSitePerProcess --variations-seed-version"
         ├─1656 "/usr/lib/signal-desktop/signal-desktop --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --enable-crash-reporter=c369152c-316d-4536-aff1-91d1c2932e26,no_channel --user-data-dir=/home/zullu/.config/Signal --shared-files=v8_context_snapshot_data:100 --field-trial-handle=0,i,12200693920275751208,12951174730616818293,262144 --enable-features=kWebSQLAccess --disable-features=HardwareMediaKeyHandling,SpareRendererForSitePerProcess --variations-seed-version"
         ├─1688 /usr/lib/at-spi-bus-launcher
         ├─1696 "/usr/lib/signal-desktop/signal-desktop --type=renderer --enable-crash-reporter=c369152c-316d-4536-aff1-91d1c2932e26,no_channel --user-data-dir=/home/zullu/.config/Signal --app-path=/usr/lib/signal-desktop/resources/app.asar --no-sandbox --no-zygote --enable-blink-features=CSSPseudoDir,CSSLogical --disable-blink-features=Accelerated2dCanvas,AcceleratedSmallCanvases --disable-gpu-compositing --lang=en-US --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=4 --time-ticks-at-unix-epoch=-1713945983814506 --launch-time-ticks=55194656 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=0,i,12200693920275751208,12951174730616818293,262144 --enable-features=kWebSQLAccess --disable-features=HardwareMediaKeyHandling,SpareRendererForSitePerProcess --variations-seed-version"
         ├─2313 /bin/bash /opt/brave.com/brave-nightly/brave-browser
         ├─2317 cat
         ├─2318 cat
         ├─2319 "/opt/brave.com/brave-nightly/brave   "
         ├─2321 /opt/brave.com/brave-nightly/chrome_crashpad_handler --monitor-self --monitor-self-annotation=ptype=crashpad-handler "--database=/home/zullu/.config/BraveSoftware/Brave-Browser-Nightly/Crash Reports" --metrics-dir=/home/zullu/.config/BraveSoftware/Brave-Browser-Nightly --url=https://cr.brave.com --annotation=channel=nightly "--annotation=lsb-release=Arch Linux" --annotation=plat=Linux --annotation=prod=Chrome_Linux --annotation=ver=123.1.66.47 --initial-client-fd=5 --shared-client-connection
         ├─2323 /opt/brave.com/brave-nightly/chrome_crashpad_handler --no-periodic-tasks --monitor-self-annotation=ptype=crashpad-handler "--database=/home/zullu/.config/BraveSoftware/Brave-Browser-Nightly/Crash Reports" --url=https://cr.brave.com --annotation=channel=nightly "--annotation=lsb-release=Arch Linux" --annotation=plat=Linux --annotation=prod=Chrome_Linux --annotation=ver=123.1.66.47 --initial-client-fd=4 --shared-client-connection
         ├─2329 "/opt/brave.com/brave-nightly/brave --type=zygote --no-zygote-sandbox --crashpad-handler-pid=2321 --enable-crash-reporter=b5a5cb4c-7aa8-4a68-b442-f700dd73eaca,nightly --change-stack-guard-on-fork=enable"
         ├─2330 "/opt/brave.com/brave-nightly/brave --type=zygote --crashpad-handler-pid=2321 --enable-crash-reporter=b5a5cb4c-7aa8-4a68-b442-f700dd73eaca,nightly --change-stack-guard-on-fork=enable"
         ├─2332 "/opt/brave.com/brave-nightly/brave --type=zygote --crashpad-handler-pid=2321 --enable-crash-reporter=b5a5cb4c-7aa8-4a68-b442-f700dd73eaca,nightly --change-stack-guard-on-fork=enable"
         ├─2353 "/opt/brave.com/brave-nightly/brave --type=gpu-process --crashpad-handler-pid=2321 --enable-crash-reporter=b5a5cb4c-7aa8-4a68-b442-f700dd73eaca,nightly --change-stack-guard-on-fork=enable --gpu-preferences=WAAAAAAAAAAhAAAEAAAAAAAAAAAAAAAAAABgAAEAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAGAAAAAAAAAAYAAAAAAAAAAgAAAAAAAAACAAAAAAAAAAIAAAAAAAAAA== --shared-files --field-trial-handle=3,i,16783708883599658563,778411257150638334,262144 --variations-seed-version=1"
         ├─2640 "/opt/brave.com/brave-nightly/brave --type=utility --utility-sub-type=storage.mojom.StorageService --lang=en-US --service-sandbox-type=utility --crashpad-handler-pid=2321 --enable-crash-reporter=b5a5cb4c-7aa8-4a68-b442-f700dd73eaca,nightly --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,16783708883599658563,778411257150638334,262144 --variations-seed-version=1"
         ├─2660 "/opt/brave.com/brave-nightly/brave --type=renderer --crashpad-handler-pid=2321 --enable-crash-reporter=b5a5cb4c-7aa8-4a68-b442-f700dd73eaca,nightly --enable-distillability-service --origin-trial-public-key=bYUKPJoPnCxeNvu72j4EmPuK7tr1PAC7SHh8ld9Mw3E=,fMS4mpO6buLQ/QMd+zJmxzty/VQ6B1EUZqoCU04zoRU= --change-stack-guard-on-fork=enable --brave_session_token=15258747512445124768 --disable-accelerated-video-decode --lang=en-US --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=11 --time-ticks-at-unix-epoch=-1713945983814506 --launch-time-ticks=91502401 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,16783708883599658563,778411257150638334,262144 --variations-seed-version=1"
         ├─2727 "/opt/brave.com/brave-nightly/brave --type=renderer --crashpad-handler-pid=2321 --enable-crash-reporter=b5a5cb4c-7aa8-4a68-b442-f700dd73eaca,nightly --extension-process --enable-distillability-service --origin-trial-public-key=bYUKPJoPnCxeNvu72j4EmPuK7tr1PAC7SHh8ld9Mw3E=,fMS4mpO6buLQ/QMd+zJmxzty/VQ6B1EUZqoCU04zoRU= --change-stack-guard-on-fork=enable --brave_session_token=15258747512445124768 --disable-accelerated-video-decode --lang=en-US --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=5 --time-ticks-at-unix-epoch=-1713945983814506 --launch-time-ticks=91548839 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,16783708883599658563,778411257150638334,262144 --variations-seed-version=1"
         ├─2755 "/opt/brave.com/brave-nightly/brave --type=renderer --crashpad-handler-pid=2321 --enable-crash-reporter=b5a5cb4c-7aa8-4a68-b442-f700dd73eaca,nightly --extension-process --enable-distillability-service --origin-trial-public-key=bYUKPJoPnCxeNvu72j4EmPuK7tr1PAC7SHh8ld9Mw3E=,fMS4mpO6buLQ/QMd+zJmxzty/VQ6B1EUZqoCU04zoRU= --change-stack-guard-on-fork=enable --brave_session_token=15258747512445124768 --disable-accelerated-video-decode --lang=en-US --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=6 --time-ticks-at-unix-epoch=-1713945983814506 --launch-time-ticks=91575902 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,16783708883599658563,778411257150638334,262144 --variations-seed-version=1"
         ├─2771 "/opt/brave.com/brave-nightly/brave --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --crashpad-handler-pid=2321 --enable-crash-reporter=b5a5cb4c-7aa8-4a68-b442-f700dd73eaca,nightly --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,16783708883599658563,778411257150638334,262144 --variations-seed-version=1"
         ├─2778 "/opt/brave.com/brave-nightly/brave --type=renderer --crashpad-handler-pid=2321 --enable-crash-reporter=b5a5cb4c-7aa8-4a68-b442-f700dd73eaca,nightly --extension-process --enable-distillability-service --origin-trial-public-key=bYUKPJoPnCxeNvu72j4EmPuK7tr1PAC7SHh8ld9Mw3E=,fMS4mpO6buLQ/QMd+zJmxzty/VQ6B1EUZqoCU04zoRU= --change-stack-guard-on-fork=enable --brave_session_token=15258747512445124768 --disable-accelerated-video-decode --lang=en-US --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=7 --time-ticks-at-unix-epoch=-1713945983814506 --launch-time-ticks=91588331 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,16783708883599658563,778411257150638334,262144 --variations-seed-version=1"
         ├─2794 "/opt/brave.com/brave-nightly/brave --type=renderer --crashpad-handler-pid=2321 --enable-crash-reporter=b5a5cb4c-7aa8-4a68-b442-f700dd73eaca,nightly --extension-process --enable-distillability-service --origin-trial-public-key=bYUKPJoPnCxeNvu72j4EmPuK7tr1PAC7SHh8ld9Mw3E=,fMS4mpO6buLQ/QMd+zJmxzty/VQ6B1EUZqoCU04zoRU= --change-stack-guard-on-fork=enable --brave_session_token=15258747512445124768 --disable-accelerated-video-decode --lang=en-US --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=8 --time-ticks-at-unix-epoch=-1713945983814506 --launch-time-ticks=91598816 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,16783708883599658563,778411257150638334,262144 --variations-seed-version=1"
         ├─2828 "/opt/brave.com/brave-nightly/brave --type=renderer --crashpad-handler-pid=2321 --enable-crash-reporter=b5a5cb4c-7aa8-4a68-b442-f700dd73eaca,nightly --extension-process --enable-distillability-service --origin-trial-public-key=bYUKPJoPnCxeNvu72j4EmPuK7tr1PAC7SHh8ld9Mw3E=,fMS4mpO6buLQ/QMd+zJmxzty/VQ6B1EUZqoCU04zoRU= --change-stack-guard-on-fork=enable --brave_session_token=15258747512445124768 --disable-accelerated-video-decode --lang=en-US --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=9 --time-ticks-at-unix-epoch=-1713945983814506 --launch-time-ticks=91612607 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,16783708883599658563,778411257150638334,262144 --variations-seed-version=1"
         ├─2861 "/opt/brave.com/brave-nightly/brave --type=renderer --crashpad-handler-pid=2321 --enable-crash-reporter=b5a5cb4c-7aa8-4a68-b442-f700dd73eaca,nightly --extension-process --enable-distillability-service --origin-trial-public-key=bYUKPJoPnCxeNvu72j4EmPuK7tr1PAC7SHh8ld9Mw3E=,fMS4mpO6buLQ/QMd+zJmxzty/VQ6B1EUZqoCU04zoRU= --change-stack-guard-on-fork=enable --brave_session_token=15258747512445124768 --disable-accelerated-video-decode --lang=en-US --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=15 --time-ticks-at-unix-epoch=-1713945983814506 --launch-time-ticks=91628035 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,16783708883599658563,778411257150638334,262144 --variations-seed-version=1"
         ├─2995 "/opt/brave.com/brave-nightly/brave --type=renderer --crashpad-handler-pid=2321 --enable-crash-reporter=b5a5cb4c-7aa8-4a68-b442-f700dd73eaca,nightly --extension-process --enable-distillability-service --origin-trial-public-key=bYUKPJoPnCxeNvu72j4EmPuK7tr1PAC7SHh8ld9Mw3E=,fMS4mpO6buLQ/QMd+zJmxzty/VQ6B1EUZqoCU04zoRU= --change-stack-guard-on-fork=enable --brave_session_token=15258747512445124768 --disable-accelerated-video-decode --lang=en-US --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=18 --time-ticks-at-unix-epoch=-1713945983814506 --launch-time-ticks=98568677 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,16783708883599658563,778411257150638334,262144 --variations-seed-version=1"
         ├─3034 "/opt/brave.com/brave-nightly/brave --type=renderer --crashpad-handler-pid=2321 --enable-crash-reporter=b5a5cb4c-7aa8-4a68-b442-f700dd73eaca,nightly --enable-distillability-service --origin-trial-public-key=bYUKPJoPnCxeNvu72j4EmPuK7tr1PAC7SHh8ld9Mw3E=,fMS4mpO6buLQ/QMd+zJmxzty/VQ6B1EUZqoCU04zoRU= --change-stack-guard-on-fork=enable --brave_session_token=15258747512445124768 --disable-accelerated-video-decode --lang=en-US --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=19 --time-ticks-at-unix-epoch=-1713945983814506 --launch-time-ticks=100273252 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,16783708883599658563,778411257150638334,262144 --variations-seed-version=1"
         ├─3118 "/opt/brave.com/brave-nightly/brave --type=utility --utility-sub-type=audio.mojom.AudioService --lang=en-US --service-sandbox-type=none --crashpad-handler-pid=2321 --enable-crash-reporter=b5a5cb4c-7aa8-4a68-b442-f700dd73eaca,nightly --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,16783708883599658563,778411257150638334,262144 --variations-seed-version=1"
         ├─3219 "/opt/brave.com/brave-nightly/brave --type=renderer --crashpad-handler-pid=2321 --enable-crash-reporter=b5a5cb4c-7aa8-4a68-b442-f700dd73eaca,nightly --enable-distillability-service --origin-trial-public-key=bYUKPJoPnCxeNvu72j4EmPuK7tr1PAC7SHh8ld9Mw3E=,fMS4mpO6buLQ/QMd+zJmxzty/VQ6B1EUZqoCU04zoRU= --change-stack-guard-on-fork=enable --brave_session_token=15258747512445124768 --disable-accelerated-video-decode --lang=en-US --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=26 --time-ticks-at-unix-epoch=-1713945983814506 --launch-time-ticks=105499736 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,16783708883599658563,778411257150638334,262144 --variations-seed-version=1"
         ├─3341 "/opt/brave.com/brave-nightly/brave --type=renderer --crashpad-handler-pid=2321 --enable-crash-reporter=b5a5cb4c-7aa8-4a68-b442-f700dd73eaca,nightly --enable-distillability-service --origin-trial-public-key=bYUKPJoPnCxeNvu72j4EmPuK7tr1PAC7SHh8ld9Mw3E=,fMS4mpO6buLQ/QMd+zJmxzty/VQ6B1EUZqoCU04zoRU= --change-stack-guard-on-fork=enable --brave_session_token=15258747512445124768 --disable-accelerated-video-decode --lang=en-US --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=27 --time-ticks-at-unix-epoch=-1713945983814506 --launch-time-ticks=115322115 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,16783708883599658563,778411257150638334,262144 --variations-seed-version=1"
         ├─3508 st
         ├─3509 /bin/zsh
         ├─3594 loginctl session-status
         └─3595 xclip -selection clipboard

Apr 24 13:06:40 zorch systemd[1]: Started Session 1 of User zullu.
Apr 24 13:06:40 zorch login[830]: LOGIN ON tty1 BY zullu
Apr 24 13:06:54 zorch dbus-daemon[879]: [session uid=1000 pid=875] Activating service name='org.freedesktop.secrets' requested by ':1.5' (uid=1000 pid=1229 comm="/opt/brave.com/brave-nightly/brave -enable-logging")
Apr 24 13:06:54 zorch gnome-keyring-daemon[1290]: discover_other_daemon: 1
Apr 24 13:06:54 zorch org.freedesktop.secrets[1290]: GNOME_KEYRING_CONTROL=/run/user/1000/keyring
Apr 24 13:06:54 zorch org.freedesktop.secrets[1290]: discover_other_daemon: 1
Apr 24 13:07:18 zorch dbus-daemon[879]: [session uid=1000 pid=875] Activating service name='org.a11y.Bus' requested by ':1.11' (uid=1000 pid=1585 comm="/usr/lib/signal-desktop/signal-desktop")
Apr 24 13:07:18 zorch dbus-daemon[879]: [session uid=1000 pid=875] Successfully activated service 'org.a11y.Bus'
[zullu@zorch ~]$ printenv | grep -E 'DBUS|XDG' 
XDG_DATA_HOME=/home/zullu/.local/share 
XDG_CONFIG_HOME=/home/zullu/.config 
XDG_SEAT=seat0 
XDG_SESSION_TYPE=tty 
XDG_CACHE_HOME=/home/zullu/.cache 
XDG_SESSION_CLASS=user 
XDG_VTNR=1 
DBUS_SESSION_BUS_PID=879 
XDG_SESSION_ID=1 
XDG_RUNTIME_DIR=/run/user/1000 
DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/dbus-mimAfvKOTE,guid=606c0564527242f2c0a2abec6628bd90 

Last edited by ZulluBalti (2024-04-24 08:12:38)

Offline

#9 2024-04-24 08:24:20

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

Re: [SOLVED] Brave browser is too slow to open

The main issue is the lacking integration with the system bus, which is indicated by

DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/dbus-mimAfvKOTE,guid=606c0564527242f2c0a2abec6628bd90 

and most likely caused by

├─ 879 /usr/bin/dbus-daemon --syslog --fork --print-pid 4 --print-address 6 --session

what should not happen, provided /etc/X11/xinit/xinitrc.d/50-systemd-user.sh is sourced (early enough) and you're not dbs-launch'ing aynthing.

There's also recursive(?) invocation of /home/zullu/.config/x11/xinitrc and dwm has a lower PID than "ssh-agent dwm"
What if you source the ssh-agent environment rather than using it as a wrapper?
https://wiki.archlinux.org/title/SSH_keys#ssh-agent

And please post the updated versions of your actual session scripts.

Offline

#10 2024-04-24 09:12:39

ZulluBalti
Member
Registered: 2021-04-07
Posts: 62

Re: [SOLVED] Brave browser is too slow to open

Hi, here's the updated data

[zullu@zorch ~]$ printenv | grep -E 'DBUS|XDG' 
XDG_DATA_HOME=/home/zullu/.local/share 
XDG_CONFIG_HOME=/home/zullu/.config 
XDG_SEAT=seat0 
XDG_SESSION_TYPE=tty 
XDG_CACHE_HOME=/home/zullu/.cache 
XDG_SESSION_CLASS=user 
XDG_VTNR=1 
DBUS_SESSION_BUS_PID=899 
XDG_SESSION_ID=1 
XDG_RUNTIME_DIR=/run/user/1000 
DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/dbus-WGpX6hpY59,guid=56bfb9ace03ef94802352f626628cbb4 
[zullu@zorch ~]$ loginctl session-status 
[zullu@zorch ~]$ loginctl session-status 
1 - zullu (1000) 
  Since: Wed 2024-04-24 14:06:59 PKT; 29s ago 
  State: active 
 Leader: 840 (login) 
   Seat: seat0; vc1 
    TTY: tty1 
 Remote: no 
Service: login 
   Type: tty 
  Class: user 
   Idle: no 
   Unit: session-1.scope 
         ├─ 840 "login -- zullu" 
         ├─ 891 /bin/sh /usr/bin/startx /home/zullu/.config/x11/xinitrc 
         ├─ 899 /usr/bin/dbus-daemon --syslog --fork --print-pid 4 --print-address 6 --session 
         ├─ 954 xinit /home/zullu/.config/x11/xinitrc -- /etc/X11/xinit/xserverrc :0 vt1 -keeptty -auth /tmp/serverauth.1hmngOrEXm 
         ├─ 955 /usr/lib/Xorg -nolisten tcp :0 vt1 -keeptty -auth /tmp/serverauth.1hmngOrEXm 
         ├─ 974 /bin/sh /home/zullu/.config/x11/xinitrc 
         ├─ 980 /bin/sh /home/zullu/.config/x11/xinitrc 
         ├─ 983 /bin/sh /home/zullu/.config/x11/xinitrc 
         ├─ 986 /bin/sh /home/zullu/.config/x11/xinitrc 
         ├─ 993 ssh-agent 
         ├─ 995 dwm 
         ├─ 998 xcompmgr 
         ├─1000 unclutter 
         ├─1001 /bin/bash /home/zullu/.local/bin/remapd 
         ├─1012 xcape -e Super_L Escape 
         ├─1016 udevadm monitor -u -t seat -s input -s usb 
         ├─1017 grep -qP -m1 "[^un]bind.+\\/[^:]+\\(usb\\)" /dev/fd/63 
         ├─1020 dwmblocks 
         ├─1027 tsp -l 
         ├─1059 dunst 
         ├─1065 mpd 
         ├─1160 /bin/bash /opt/brave.com/brave-nightly/brave-browser 
         ├─1164 cat 
         ├─1165 cat 
         ├─1166 "/opt/brave.com/brave-nightly/brave   " 
         ├─1175 /opt/brave.com/brave-nightly/chrome_crashpad_handler --monitor-self --monitor-self-annotation=ptype=crashpad-handler "--database=/home/zullu/.config/BraveSoftware/Brave-Browser-Nightly/Crash Reports" --metrics-dir=> 
         ├─1177 /opt/brave.com/brave-nightly/chrome_crashpad_handler --no-periodic-tasks --monitor-self-annotation=ptype=crashpad-handler "--database=/home/zullu/.config/BraveSoftware/Brave-Browser-Nightly/Crash Reports" --url=htt> 
         ├─1183 "/opt/brave.com/brave-nightly/brave --type=zygote --no-zygote-sandbox --crashpad-handler-pid=1175 --enable-crash-reporter=b5a5cb4c-7aa8-4a68-b442-f700dd73eaca,nightly --change-stack-guard-on-fork=enable" 
         ├─1184 "/opt/brave.com/brave-nightly/brave --type=zygote --crashpad-handler-pid=1175 --enable-crash-reporter=b5a5cb4c-7aa8-4a68-b442-f700dd73eaca,nightly --change-stack-guard-on-fork=enable" 
         ├─1186 "/opt/brave.com/brave-nightly/brave --type=zygote --crashpad-handler-pid=1175 --enable-crash-reporter=b5a5cb4c-7aa8-4a68-b442-f700dd73eaca,nightly --change-stack-guard-on-fork=enable" 
         ├─1210 "/opt/brave.com/brave-nightly/brave --type=gpu-process --crashpad-handler-pid=1175 --enable-crash-reporter=b5a5cb4c-7aa8-4a68-b442-f700dd73eaca,nightly --change-stack-guard-on-fork=enable --gpu-preferences=WAAAAAAA> 
         ├─1236 st 
         ├─1237 /bin/zsh 
         ├─1515 loginctl session-status 
         └─1516 less 
Apr 24 14:07:00 zorch systemd[1]: Started Session 1 of User zullu. 
Apr 24 14:07:00 zorch login[840]: LOGIN ON tty1 BY zullu 
Apr 24 14:07:05 zorch dbus-daemon[899]: [session uid=1000 pid=896] Activating service name='org.freedesktop.secrets' requested by ':1.5' (uid=1000 pid=1166 comm="/opt/brave.com/brave-nightly/brave   ") 
Apr 24 14:07:05 zorch gnome-keyring-daemon[1217]: discover_other_daemon: 1 
Apr 24 14:07:05 zorch org.freedesktop.secrets[1217]: GNOME_KEYRING_CONTROL=/run/user/1000/keyring 
Apr 24 14:07:05 zorch org.freedesktop.secrets[1217]: discover_other_daemon: 1 

.config/x11/xinitrc

#!/bin/sh

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

if [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/x11/xprofile" ]; then
	. "${XDG_CONFIG_HOME:-$HOME/.config}/x11/xprofile"
else
	. "$HOME/.xprofile"
fi
# Activate dbus variables
# dbus-update-activation-environment --all

eval "$(ssh-agent)" // I hope this is what you wanted me to try. (or should I use systemd ssh server?)
dwm
# ssh-agent dwm

also can we do something about recursive invocation to the xinitrc file? or is it normal? cause I'm sure I'm sourcing it only once from ~/.zprofile

Last edited by ZulluBalti (2024-04-24 09:14:36)

Offline

#11 2024-04-24 12:20:51

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

Re: [SOLVED] Brave browser is too slow to open

What does "printenv" look like before you run startx?
Anything special in your zshenv or zshrc?
Do you use something that's called oh-my-zsh?

You could inject

ps o "cmd,pid,ppid" hp $PPID

into the xinitrc to see what's calling it - I'd almost say it's the autostart invocation, but here're only 4 occurrences and 6 autostart entries…
However, completely skipping all of them should remove the subsequent xinitrc invocations (if that's the cause)

Offline

#12 2024-04-24 12:58:39

ZulluBalti
Member
Registered: 2021-04-07
Posts: 62

Re: [SOLVED] Brave browser is too slow to open

Hi, here's the output before and after starting startx
and no, I'm not using oh-my-zsh just simple zsh

[zullu@zorch ~]$ cat before_startx.txt 
XDG_SESSION_ID=1 
XDG_RUNTIME_DIR=/run/user/1000 
DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/dbus-QRaDmWqxOu,guid=7ecaa9b651eb37f5e6911d68662900bf 
XDG_SESSION_TYPE=tty 
XDG_SESSION_CLASS=user 
XDG_SEAT=seat0 
XDG_VTNR=2 
DBUS_SESSION_BUS_PID=906 
XDG_CONFIG_HOME=/home/zullu/.config 
XDG_DATA_HOME=/home/zullu/.local/share 
XDG_CACHE_HOME=/home/zullu/.cache 
[zullu@zorch ~]$ cat after_startx.txt 
XDG_DATA_HOME=/home/zullu/.local/share 
XDG_CONFIG_HOME=/home/zullu/.config 
XDG_SEAT=seat0 
XDG_SESSION_TYPE=tty 
XDG_CACHE_HOME=/home/zullu/.cache 
XDG_SESSION_CLASS=user 
XDG_VTNR=2 
DBUS_SESSION_BUS_PID=906 
XDG_SESSION_ID=1 
XDG_RUNTIME_DIR=/run/user/1000 
DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/dbus-QRaDmWqxOu,guid=7ecaa9b651eb37f5e6911d68662900bf 

Here's updated xinitrc

[zullu@zorch ~]$ cat .config/x11/xinitrc 
#!/bin/sh 

if [ -d /etc/X11/xinit/xinitrc.d ] ; then 
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do 
  [ -x "$f" ] && . "$f" 
 done 
 unset f 
fi 

if [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/x11/xprofile" ]; then 
        . "${XDG_CONFIG_HOME:-$HOME/.config}/x11/xprofile" 
else 
        . "$HOME/.xprofile" 
fi 

# Activate dbus variables 
# dbus-update-activation-environment --all 
eval "$(ssh-agent)" 
dwm 
#ssh-agent dwm 
ps o "cmd,pid,ppid" hp $PPID 

Last edited by ZulluBalti (2024-04-24 13:00:24)

Offline

#13 2024-04-24 13:06:41

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

Re: [SOLVED] Brave browser is too slow to open

The bogus dbus address exists before startx and will likely come from your shell rc's
=> look at your .zshrc, .zshenv and .profile configs

The point of adding 'ps o "cmd,pid,ppid" hp $PPID' was to trace its output (in doubt"…  >> /tmp/wheredoesthiscomefrom" it) and it needs to be ahead of dwm (as that will block)

Offline

#14 2024-04-24 13:14:39

ZulluBalti
Member
Registered: 2021-04-07
Posts: 62

Re: [SOLVED] Brave browser is too slow to open

here's the content of .zprofile

#!/bin/sh
# shellcheck disable=SC2155

# Profile file, runs on login. Environmental variables are set here.

# Add all directories in `~/.local/bin` to $PATH
export PATH="$PATH:$(find ~/.local/bin -type d | paste -sd ':' -)"

unsetopt PROMPT_SP 2>/dev/null

# Default programs:
export EDITOR="nvim"
export TERMINAL="st"
export TERMINAL_PROG="st"
export BROWSER="brave-nightly"

# ~/ Clean-up:
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_CACHE_HOME="$HOME/.cache"
export XINITRC="$XDG_CONFIG_HOME/x11/xinitrc"
#export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" # This line will break some DMs.
export NOTMUCH_CONFIG="$XDG_CONFIG_HOME/notmuch-config"
export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc-2.0"
export WGETRC="$XDG_CONFIG_HOME/wget/wgetrc"
export INPUTRC="$XDG_CONFIG_HOME/shell/inputrc"
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
#export GNUPGHOME="$XDG_DATA_HOME/gnupg"
export WINEPREFIX="$XDG_DATA_HOME/wineprefixes/default"
export KODI_DATA="$XDG_DATA_HOME/kodi"
export PASSWORD_STORE_DIR="$XDG_DATA_HOME/password-store"
export TMUX_TMPDIR="$XDG_RUNTIME_DIR"
export ANDROID_SDK_HOME="$XDG_CONFIG_HOME/android"
export CARGO_HOME="$XDG_DATA_HOME/cargo"
export GOPATH="$XDG_DATA_HOME/go"
export GOMODCACHE="$XDG_CACHE_HOME/go/mod"
export ANSIBLE_CONFIG="$XDG_CONFIG_HOME/ansible/ansible.cfg"
export UNISON="$XDG_DATA_HOME/unison"
export HISTFILE="$XDG_DATA_HOME/history"
export MBSYNCRC="$XDG_CONFIG_HOME/mbsync/config"
export ELECTRUMDIR="$XDG_DATA_HOME/electrum"
export PYTHONSTARTUP="$XDG_CONFIG_HOME/python/pythonrc"
export SQLITE_HISTORY="$XDG_DATA_HOME/sqlite_history"

# Other program settings:
export DICS="/usr/share/stardict/dic/"
export SUDO_ASKPASS="$HOME/.local/bin/dmenupass"
export FZF_DEFAULT_OPTS="--layout=reverse --height 40%"
export LESS="R"
export LESS_TERMCAP_mb="$(printf '%b' '[1;31m')"
export LESS_TERMCAP_md="$(printf '%b' '[1;36m')"
export LESS_TERMCAP_me="$(printf '%b' '[0m')"
export LESS_TERMCAP_so="$(printf '%b' '[01;44;33m')"
export LESS_TERMCAP_se="$(printf '%b' '[0m')"
export LESS_TERMCAP_us="$(printf '%b' '[1;32m')"
export LESS_TERMCAP_ue="$(printf '%b' '[0m')"
export LESSOPEN="| /usr/bin/highlight -O ansi %s 2>/dev/null"
export QT_QPA_PLATFORMTHEME="gtk2"        # Have QT use gtk2 theme.
export MOZ_USE_XINPUT2=0                  # Mozilla smooth scrolling/touchpads.
export AWT_TOOLKIT="MToolkit wmname LG3D" # May have to install wmname
export _JAVA_AWT_WM_NONREPARENTING=1      # Fix for Java applications in dwm

[ ! -f "$XDG_CONFIG_HOME/shell/shortcutrc" ] && setsid -f shortcuts >/dev/null 2>&1

# Start graphical server on user's current tty if not already running.
[ "$(tty)" = "/dev/tty1" ] && ! pidof -s Xorg >/dev/null 2>&1 && exec startx "$XINITRC"

# Switch escape and caps if tty and no passwd required:
sudo -n loadkeys "$XDG_DATA_HOME/larbs/ttymaps.kmap" 2>/dev/null

Here's the content of ~/.config/zsh/.zshrc

# Enable colors and change prompt:
autoload -U colors && colors	# Load colors
PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b "
setopt autocd		# Automatically cd into typed directory.
stty stop undef		# Disable ctrl-s to freeze terminal.
setopt interactive_comments

# History in cache directory:
HISTSIZE=10000000
SAVEHIST=10000000
HISTFILE="${XDG_CACHE_HOME:-$HOME/.cache}/zsh/history"

# Load aliases and shortcuts if existent.
[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutrc" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutrc"
[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliasrc" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliasrc"
[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/zshnameddirrc" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/zshnameddirrc"

# Basic auto/tab complete:
autoload -U compinit
zstyle ':completion:*' menu select
zmodload zsh/complist
compinit
_comp_options+=(globdots)		# Include hidden files.

# vi mode
bindkey -v
export KEYTIMEOUT=1

# Use vim keys in tab complete menu:
bindkey -M menuselect 'h' vi-backward-char
bindkey -M menuselect 'k' vi-up-line-or-history
bindkey -M menuselect 'l' vi-forward-char
bindkey -M menuselect 'j' vi-down-line-or-history
bindkey -v '^?' backward-delete-char

# Change cursor shape for different vi modes.
function zle-keymap-select () {
    case $KEYMAP in
        vicmd) echo -ne '\e[1 q';;      # block
        viins|main) echo -ne '\e[5 q';; # beam
    esac
}
zle -N zle-keymap-select
zle-line-init() {
    zle -K viins # initiate `vi insert` as keymap (can be removed if `bindkey -V` has been set elsewhere)
    echo -ne "\e[5 q"
}
zle -N zle-line-init
echo -ne '\e[5 q' # Use beam shape cursor on startup.
preexec() { echo -ne '\e[5 q' ;} # Use beam shape cursor for each new prompt.

# Use lf to switch directories and bind it to ctrl-o
lfcd () {
    tmp="$(mktemp -uq)"
    trap 'rm -f $tmp >/dev/null 2>&1 && trap - HUP INT QUIT TERM PWR EXIT' HUP INT QUIT TERM PWR EXIT
    lf -last-dir-path="$tmp" "$@"
    if [ -f "$tmp" ]; then
        dir="$(cat "$tmp")"
        [ -d "$dir" ] && [ "$dir" != "$(pwd)" ] && cd "$dir"
    fi
}
bindkey -s '^o' '^ulfcd\n'

bindkey -s '^a' '^ubc -lq\n'

bindkey -s '^f' '^ucd "$(dirname "$(fzf)")"\n'

bindkey '^[[P' delete-char

# Edit line in vim with ctrl-e:
autoload edit-command-line; zle -N edit-command-line
bindkey '^e' edit-command-line
bindkey -M vicmd '^[[P' vi-delete-char
bindkey -M vicmd '^e' edit-command-line
bindkey -M visual '^[[P' vi-delete

# Load syntax highlighting; should be last.
source /usr/share/zsh/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh 2>/dev/null

I'll post output of printenv again shortly after rebooting.

Offline

#15 2024-04-24 13:19:07

ZulluBalti
Member
Registered: 2021-04-07
Posts: 62

Re: [SOLVED] Brave browser is too slow to open

Here's the updated printenv after rebooting

Before startx

[zullu@zorch ~]$ cat before.txt 
XDG_SESSION_ID=1 
XDG_RUNTIME_DIR=/run/user/1000 
DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/dbus-E6SwLaE5qI,guid=26390936c4348e43d06f2001662906
XDG_SESSION_TYPE=tty 
XDG_SESSION_CLASS=user 
XDG_SEAT=seat0 
XDG_VTNR=2 
DBUS_SESSION_BUS_PID=1387 
XDG_CONFIG_HOME=/home/zullu/.config 
XDG_DATA_HOME=/home/zullu/.local/share 
XDG_CACHE_HOME=/home/zullu/.cache 

after startx

[zullu@zorch ~]$ cat after.txt 
XDG_DATA_HOME=/home/zullu/.local/share 
XDG_CONFIG_HOME=/home/zullu/.config 
XDG_SEAT=seat0 
XDG_SESSION_TYPE=tty 
XDG_CACHE_HOME=/home/zullu/.cache 
XDG_SESSION_CLASS=user 
XDG_VTNR=2 
DBUS_SESSION_BUS_PID=1387 
XDG_SESSION_ID=1 
XDG_RUNTIME_DIR=/run/user/1000 
DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/dbus-E6SwLaE5qI,guid=26390936c4348e43d06f2001662906

Here's content of xinitrc

[zullu@zorch ~]$ cat .config/x11/xinitrc 
#!/bin/sh 

if [ -d /etc/X11/xinit/xinitrc.d ] ; then 
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do 
  [ -x "$f" ] && . "$f" 
 done 
 unset f 
fi 

if [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/x11/xprofile" ]; then 
        . "${XDG_CONFIG_HOME:-$HOME/.config}/x11/xprofile" 
else 
        . "$HOME/.xprofile" 
fi 
# Activate dbus variables 
# dbus-update-activation-environment --all 
ps o "cmd,pid,ppid" hp $PPID 
eval "$(ssh-agent)" 
dwm 
#ssh-agent dwm 

Offline

#16 2024-04-24 13:31:09

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

Re: [SOLVED] Brave browser is too slow to open

Doesn't seem to be in your zprofile or zshrc - if you create a new (dummy) user and log in as that (on the console), what does $DBUS_SESSION_BUS_ADDRESS look like then?
What if you chsh the new user to zsh as well?

Offline

#17 2024-04-24 13:42:24

ZulluBalti
Member
Registered: 2021-04-07
Posts: 62

Re: [SOLVED] Brave browser is too slow to open

Hi, I'm getting the same issue on test user too, even tho there I don't have dwm and zsh (after creating the user I didn't restart the computer, hope that's not an issue, I logged in on tty3)

Here are the output before doing startx on test user

[zullu@zorch /home]$ cat test/test_env_before.txt 
XDG_SEAT=seat0 
XDG_SESSION_TYPE=tty 
XDG_SESSION_CLASS=user 
XDG_VTNR=3 
DBUS_SESSION_BUS_PID=13890 
XDG_SESSION_ID=3 
XDG_RUNTIME_DIR=/run/user/1001 
DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/dbus-aoKlOH7OCk,guid=631e6fb4f4c87f76da87e16c66290a7c 

after

[zullu@zorch /home]$ cat test/test_env_after.txt 
XDG_SEAT=seat0 
XDG_SESSION_TYPE=tty 
XDG_SESSION_CLASS=user 
XDG_VTNR=3 
DBUS_SESSION_BUS_PID=13890 
XDG_SESSION_ID=3 
XDG_RUNTIME_DIR=/run/user/1001 
DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/dbus-aoKlOH7OCk,guid=631e6fb4f4c87f76da87e16c66290a7c 

Offline

#18 2024-04-24 13:57:21

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

Re: [SOLVED] Brave browser is too slow to open

ps aux | grep -i dbus
grep -ir dbus /etc/profile*

Offline

#19 2024-04-24 14:01:53

ZulluBalti
Member
Registered: 2021-04-07
Posts: 62

Re: [SOLVED] Brave browser is too slow to open

[zullu@zorch /home]$ cat test/etc_profile.txt 
/etc/profile.d/dbus.sh:export $(dbus-launch) 
[zullu@zorch /home]$ cat test/ps_ouput.txt 
dbus        1265  0.0  0.0   9228  4004 ?        Ss   18:15   0:00 /usr/bin/dbus-broker-launch --scope system --audit 
dbus        1266  0.0  0.0   4792  2984 ?        S    18:15   0:00 dbus-broker --log 4 --controller 9 --machine-id 0a264276d8983e50134daa2c65af72e8 --max-bytes 536870912 --max-fds 4096 --max-matches 131072 --audit 
zullu       1382  0.0  0.0   8832  3712 ?        Ss   18:16   0:00 /usr/bin/dbus-broker-launch --scope user 
zullu       1386  0.0  0.0   4000  2304 ?        S    18:16   0:00 dbus-broker --log 4 --controller 10 --machine-id 0a264276d8983e50134daa2c65af72e8 --max-bytes 100000000000000 --max-fds 25000000000000 --max-matches 5000000000 
zullu       1387  0.0  0.0   8656  2312 ?        Ss   18:16   0:00 /usr/bin/dbus-daemon --syslog --fork --print-pid 4 --print-address 6 --session 
test       13890  0.0  0.0   8644  2312 ?        Ss   18:34   0:00 /usr/bin/dbus-daemon --syslog --fork --print-pid 4 --print-address 6 --session 
test       16404  0.0  0.0   8832  3712 ?        Ss   18:38   0:00 /usr/bin/dbus-broker-launch --scope user 
test       16405  0.0  0.0   4000  2432 ?        S    18:38   0:00 dbus-broker --log 4 --controller 10 --machine-id 0a264276d8983e50134daa2c65af72e8 --max-bytes 100000000000000 --max-fds 25000000000000 --max-matches 5000000000 
test       30715  0.0  0.0   8504  1924 ?        Ss   18:58   0:00 /usr/bin/dbus-daemon --syslog --fork --print-pid 4 --print-address 6 --session 
test       30952  0.0  0.0   6896  4156 tty3     S+   18:59   0:00 grep -i dbus 

Offline

#20 2024-04-24 14:03:08

ZulluBalti
Member
Registered: 2021-04-07
Posts: 62

Re: [SOLVED] Brave browser is too slow to open

I read somewhere that it is caused by nvidia graph cards, but running brave with "-disable-gpu" flag doesn't solve it, so I guess that's not the real problem

Offline

#21 2024-04-24 14:03:49

ZulluBalti
Member
Registered: 2021-04-07
Posts: 62

Re: [SOLVED] Brave browser is too slow to open

I read somewhere that it is caused by nvidia graph cards, but running brave with "-disable-gpu" flag doesn't solve it, so I guess that's not the real problem

Offline

#22 2024-04-24 14:06:01

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,604

Re: [SOLVED] Brave browser is too slow to open

ZulluBalti wrote:
[zullu@zorch /home]$ cat test/etc_profile.txt 
/etc/profile.d/dbus.sh:export $(dbus-launch) 

And where did that file come from? It's not in any package in the repos.

Offline

#23 2024-04-24 14:06:51

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

Re: [SOLVED] Brave browser is too slow to open

pacman -Qo /etc/profile.d/dbus.sh

what is that, why is that there and did you realize that it's the rather obvious cause?

Offline

#24 2024-04-24 14:09:38

ZulluBalti
Member
Registered: 2021-04-07
Posts: 62

Re: [SOLVED] Brave browser is too slow to open

Scimmia wrote:
ZulluBalti wrote:
[zullu@zorch /home]$ cat test/etc_profile.txt 
/etc/profile.d/dbus.sh:export $(dbus-launch) 

And where did that file come from? It's not in any package in the repos.

I created it to copy the output of the command from main user, as it's just a temporary user and I don't know if I can share the clipboard between different tty.

Offline

#25 2024-04-24 14:11:13

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,604

Re: [SOLVED] Brave browser is too slow to open

I don't mean etc_profile.txt, I mean the file in /etc that it found.

Offline

Board footer

Powered by FluxBB