You are not logged in.

#1 2021-04-27 20:32:21

NarcoticNoble
Member
Registered: 2017-09-06
Posts: 35

[SOLVED] Pavucontrol, nautilus and lutris really slow to start

Hello all,

This has eventually happened in every Arch installation I've done. The programs will work absolutely fine and then after a few upgrades or package installations seemingly loads of applications will suddenly take a good 15-25 seconds to load compared to 1-2 seconds that all my other applications take.

I'm running my Arch installation off an SSD and most applications will just launch instantly but in my current install so far pavucontrol, nautilus and lutris are all taking the same long amount of time to load.

I'm not even sure where to start looking. When I run lutris from the terminal with debugging, the output seems normal except that it pauses for around 25 seconds before continuing to launch, same with nautilus.

If it helps I'm running i3 on my system using an Ryzen 1700 and an RX580 (Primary) RX560 (Plugged in but not in use).

If anyone could point me in the right direction of what logs I should be looking at I would greatly appreciate it.

Last edited by NarcoticNoble (2021-04-27 22:13:42)

Offline

#2 2021-04-27 20:39:33

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Pavucontrol, nautilus and lutris really slow to start

How are you starting your WM/DE? If you use startx post the contents of your ~/.xinitrc

Also the output of...

hostnamectl

No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2021-04-27 21:02:27

NarcoticNoble
Member
Registered: 2017-09-06
Posts: 35

Re: [SOLVED] Pavucontrol, nautilus and lutris really slow to start

I'm starting my WM using startx

.profile:

#!/bin/sh

# Profile file. Runs on login.

# Variables
#export TERMINAL="st"
export EDITOR="vim"
export PATH="$PATH:$HOME/.scripts:$HOME/.local/bin"

# Start graphical server if i3 is not already running.
#if [ "$(tty)" = "/dev/tty1" ]; then
#       pgrep -x i3 || exec startx
#fi

if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ] && [ "$(tty)" = "/dev/tty1"  ]; then
  exec startx
fi

.xinitrc:

# Add this to your .xinitrc or whatever file starts programs on startup.
wal -nR
nitrogen --restore &
exec i3

output of hostnamectl:

 Static hostname: neutron
       Icon name: computer-desktop
         Chassis: desktop
      Machine ID: 78fccf5e83e14d22855f55e94e1f9439
         Boot ID: 02622e60bc07469bb2b0ac3321f6286c
Operating System: Arch Linux
          Kernel: Linux 5.11.16-arch1-1
    Architecture: x86-64
 Hardware Vendor: Gigabyte Technology Co., Ltd.
  Hardware Model: X470 AORUS ULTRA GAMING

Offline

#4 2021-04-27 21:28:49

progandy
Member
Registered: 2012-05-17
Posts: 5,286

Re: [SOLVED] Pavucontrol, nautilus and lutris really slow to start

That is the common bug (mostly wlroots / sway) with xdg-desktop-portal not starting correctly and timing out. That causes gtk3 to hang.

The issue is your xinitrc, it is missing the boilerplate to source /etc/X11/xinit/xinitrc.d

Copy the file from /etc/X11/xinit/xinitrc and only change the last few lines from "twm ..." to "exec ..." (and maybe delete some empty lines to make it more readable)

Last edited by progandy (2021-04-27 21:32:21)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#5 2021-04-27 21:53:14

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Pavucontrol, nautilus and lutris really slow to start

Your ~/.xinitrc is incorrect. Read...
https://wiki.archlinux.org/index.php/Xinit#xinitrc


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#6 2021-04-27 22:13:22

NarcoticNoble
Member
Registered: 2017-09-06
Posts: 35

Re: [SOLVED] Pavucontrol, nautilus and lutris really slow to start

You guys are amazing - thank you so much!

In future how would I go about debugging this? progandy you said it caused GTK3 to hang, are there any logs I could look out for in similar situations in future?

Thanks again everyone - marking as solved.

Offline

Board footer

Powered by FluxBB