I think my DBUS is not working properly (gnome apps load 30+ seconds, pavucontrol doesn't work at all, etc.)
Hello, I have arch 5.18.9-arch1-1. For some time I am experiencing issues with a lot of programs and I think it is related to dbus. I am experiencing:
- Every gnome app takes something like 30+ seconds to load (unless it is run as root)
- telegram desktop app freezes when someone calls me
- Some gnome apps are in default setting when loaded
- Pavucontrol is not worikng and showing this:
Connection to PulseAudio failed. Automatic retry in 5s.
In this case this is likely because PULSE_SERVER in the Environment/X11 Root Window Properties or default-server in client.conf is misconfigured.
This situation can also arise when PulseAudio crashed and left stale details in the X11 Root Window.
If this is the case, then PulseAudio should autospawn again, of if this is not configured you should run start-pulseaudio-x11 manually.
- IWCTL return this:
Rejected send message, 2 matched rules; type="method_call", sender=":1.511" (uid=1000 pid=33504 comm="iwctl") interface="org.freedesktop.DBus.ObjectManager" member="GetManagedObjects" error name="(unset)" requested_reply="0" destination="net.connman.iwd" (uid=0 pid=2835 comm="/usr/lib/iwd/iwd")
Failed to retrieve IWD dbus objects, quitting...
Waiting for IWD to start...
I do not know what other information to attach so there is my .xinitrc:
#!/bin/sh
source /etc/X11/xinit/xinitrc.d/*
exec i3
and this is /etc/X11/xinit/xinitrc.d/30-dbus.sh:
#!/bin/bash
# launches a session dbus instance
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ] && type dbus-launch >/dev/null; then
eval $(dbus-launch --sh-syntax --exit-with-session)
fi
I have also find this in my journalctl:
08 14:54:57 arch-thinkpad systemd[1413]: Failed to start Portal service (GNOME implementation).
░░ Subject: A start job for unit UNIT has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit UNIT has finished with a failure.
░░
░░ The job identifier is 406 and the job result is failed.
There is chance that these issues are not caused by dbus at all but I can not figure out what else could it be.
If you want any other information do not be afraid to ask in comments. I will try to answer ASAP.
Thanks for help
UPDATE1: I was trying to solve it by myself and now telegram would not start at all.
Edited 8 Jul 2022. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 3 · 100% up
- Kind
- Text
- ID
- vuafyu
15 comments
What is in your ~.xserverrc?
Edit: https://wiki.archlinux.org/title/Xinit#xserverrc setting vt to display variable allows for the $DISPLAY variable to be set in the x environment, it should solve problem.
I do not have this file in my home directory at all.
I updated my comment a second too slow lol. :D
I think if you start x without a dm then you need to configure the X environmental variables, the configuration on wiki should be all you need.
It did not help but thanks to your post I discovered that when I set
GTK_USE_PORTAL=0as env variable gnome apps loads instantly. All other issues remain.Hmm then the only thing i can think of is:
Might this be loaded before X is started?
Edit: Nevermind i see that i have done the same thing only in xprofiles
Is dbus running?
Thinking about it more... Iwd runs on system bus. Access to it is allowed for root and users in wheel group. Pulseaudio is on session bus so access to it shouldn't be restricted in any way for you. So is DBUS_SESSION_BUS_ADDRESS set up in your environment? Is pulseaudio or pipewire-pulse installed at all?
when I run
echo $DBUS_SESSION_BUS_ADDRESSI getunix:path=/run/user/1000/busPulse audio is installed. Basically every issues appeared in few last weeks. Everything worked before that.
So i expect iwd will work if you add yourself to wheel group and log out and in.
I ran
sudo usermod -aG wheel myaccount. Nowiwctlworks! Everything else remains but still thanks for help!You are welcome!
I saw in some other post if you’re using a WM then the gnome apps trying to talk to the gnome shell through dbus will essentially all timeout because there’s no gnome shell.
Don’t know how relevant or true that is but it seems similar to your issue.
I run arch on native hardware. I have no gnome-shell installed but i ran for a long time fine without it.