Artix Linux Forum

Artix Linux => System => Topic started by: xqtha2276 on 28 April 2022, 01:11:20

Title: [SOLVED] X will not start, dbus error
Post by: xqtha2276 on 28 April 2022, 01:11:20
X will not start.
I don't know if it's novideo or what. I'm on Artix S6. All I can think of that I did that may have caused this was a system update, followed by installing mullvad-vpn-bin and mullvad-vpn-s6, then a reboot leaving me where I am now.
I removed nvidia-dkms as a test then rebooted, but no success, x still won't start and gives the same error.
The error is "failed to connect to socket /run/dbus/system_bus_socket: No such file or directory"
Any help would be greatly appreciated.
Title: Re: X will not start, dbus error
Post by: u0 on 28 April 2022, 02:21:20
Do you have dbus and dbus-s6 installed?
Title: Re: X will not start, dbus error
Post by: Dudemanguy on 28 April 2022, 04:47:10
It looks like you do not have the dbus service running.
Title: Re: X will not start, dbus error
Post by: xqtha2276 on 28 April 2022, 12:36:27
Do you have dbus and dbus-s6 installed?
They were already installed, yeah.
It looks like you do not have the dbus service running.
Hmm ok. I've never had to mess with dbus before. Not sure if it's useful, but I tried the command dbus-launch. Appears to start a dbus server. X wouldn't start still. Am I missing something?
Title: Re: X will not start, dbus error
Post by: Dudemanguy on 28 April 2022, 15:22:55
Hmm ok. I've never had to mess with dbus before. Not sure if it's useful, but I tried the command dbus-launch. Appears to start a dbus server. X wouldn't start still. Am I missing something?
I'm just guessing here, but probably dbus and elogind are not in your default bundle. You can check that with sudo s6-rc-db contents default. The way we handled managing bundles changed earlier this year to match upstream. The support for the old way was dropped a while ago, so if you did not migrate to the new way, it's possible that bundle contents were dropped on an upgrade. Check out the wiki for details (https://wiki.artixlinux.org/Main/S6#Updating_bundle_contents). You can use the s6-rc command to start/stop services as usual of course.
Title: Re: X will not start, dbus error
Post by: xqtha2276 on 07 May 2022, 06:55:41
I'm just guessing here, but probably dbus and elogind are not in your default bundle. You can check that with sudo s6-rc-db contents default. The way we handled managing bundles changed earlier this year to match upstream. The support for the old way was dropped a while ago, so if you did not migrate to the new way, it's possible that bundle contents were dropped on an upgrade. Check out the wiki for details (https://wiki.artixlinux.org/Main/S6#Updating_bundle_contents). You can use the s6-rc command to start/stop services as usual of course.
So, I put dbus and elogind in my default bundles, and now they appear to automatically start running as they would before. I no longer get the error message in op.
But X still will not start. Appears to be an nvidia problem.  ::) Must be from my initial uninstall and reinstall of nvidia-dkms.
Error in log appears to be nouveau and nv modules not loading.
(https://files.catbox.moe/w49t2f.jpg)
I've tried reinstalling all nvidia packages including nvidia-utils-s6. I've checked that nouveau is blacklisted in the confs (maybe I missed some?).
I don't know.
Title: Re: X will not start, dbus error
Post by: strajder on 07 May 2022, 09:03:41
Please copy the entire X log in textual form to some paste service.
Title: Re: X will not start, dbus error
Post by: xqtha2276 on 10 May 2022, 02:55:51
Please copy the entire X log in textual form to some paste service.
https://bin.snopyta.org/?9c266cb64ca17a78#HHqT5XUKFjs4YmZqzu2hF7DtzTPcC5ufdBimHybrzGb6
Title: Re: X will not start, dbus error
Post by: Dudemanguy on 11 May 2022, 16:08:01
This is a weird one. I'm not really sure nouveau failing to load is a fatal or error or not. It looks like it continues on just find after that but xorg decides to shut itself down for no particular reason.
Title: Re: X will not start, dbus error
Post by: xqtha2276 on 11 May 2022, 19:20:50
This is a weird one. I'm not really sure nouveau failing to load is a fatal or error or not. It looks like it continues on just find after that but xorg decides to shut itself down for no particular reason.
I'm no expert on any of this, but that's what it seemed like to me at first too.
Title: Re: X will not start, dbus error
Post by: strajder on 11 May 2022, 19:32:27
Probably you haven't recompiled nvidia-dkms, so the modules aren't loaded. Test with:
Code: [Select]
lsmod | grep nvidia

If there is no output, see: https://wiki.archlinux.org/title/Dynamic_Kernel_Module_Support
Title: Re: X will not start, dbus error
Post by: xqtha2276 on 12 May 2022, 06:36:27
Probably you haven't recompiled nvidia-dkms, so the modules aren't loaded. Test with:
Code: [Select]
lsmod | grep nvidia[code]
[/code]

If there is no output, see: https://wiki.archlinux.org/title/Dynamic_Kernel_Module_Support
I ran
Code: [Select]
lsmod | grep nvidia
and got this output:
Code: [Select]
nvidia uvm     2609152 0
nvidia drm     73728 0
nvidia modeset    1163264 1 nvidia drm
nvidia    39153664 2 nvidia_uvm, nvidia_nodeset
(https://files.catbox.moe/2d9vf5.jpg)
I ran "sudo dkms autoinstall" and got
Code: [Select]
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/exfat-5.8/1/source/dkms.conf

"dkms status" gives this
Code: [Select]
exfat/206.297a573: added
exfat-5.8/1: added
nvidia 510.68.02, 5.17.4-artix1-1, x86_64: installed
vmware-workstation/16.2.1_18811642, 5.17.4-artix1-1, x86_64: installed
I assume exfat 206.xx is the newer version and the older 5.8 version folder is conflicting? Should I remove the older folder if so?

I'd troubleshoot further, but I have to get to bed.
Title: Re: X will not start, dbus error
Post by: strajder on 12 May 2022, 09:17:21
From the X log, it seems you have two video cards, or at least Intel video kernel module in addition to nvidia. Can you give the output of
Code: [Select]
inxi -F
as root? What are your system specifications in relation to video hardware?

P.S. You should blacklist nouveau if you are using the proprietary driver.
Title: Re: X will not start, dbus error
Post by: xqtha2276 on 16 May 2022, 01:15:31
From the X log, it seems you have two video cards, or at least Intel video kernel module in addition to nvidia. Can you give the output of
Code: [Select]
inxi -F
as root? What are your system specifications in relation to video hardware?

P.S. You should blacklist nouveau if you are using the proprietary driver.
I am on a hybrid laptop with an integrated Intel GPU and dedicated NVIDIA GPU
Here's the output of "inxi -F" (I cannot find a good enough picture to text service to convert all of it to text)
(https://files.catbox.moe/nrfphn.jpg)
Nouveau has been blacklisted since I started using Artix. I checked all the relevant ".conf" files I know, and that still seems to be the case.
Title: Re: X will not start, dbus error
Post by: xqtha2276 on 16 May 2022, 01:35:16
By the way, here is what the Xorg.0.log looks like with the "nvidia-dkms" package removed:

https://bin.snopyta.org/?17c1d7091363ee62#G3FWmPY84A167NvUHtxpa56zerMoFxnXpzWRWGWqcPMY

It really seems like xorg shuts down for no reason... hopefully I can figure this out and remember to do more backups lol.
As always, I appreciate the help. I don't feel like I'd get very far on most other forums.
Title: Re: X will not start, dbus error
Post by: xqtha2276 on 19 May 2022, 02:00:02
I tried another system upgrade and removing the old exfat dkms modules (deprecated). No luck.
Title: Re: X will not start, dbus error
Post by: xqtha2276 on 19 May 2022, 04:23:38
I installed the "nvidia-xrun" package to see if forcing nvidia use would do anything.

I ran the command "nvidia-xrun startx" and got this error
Code: [Select]
rmmod: ERROR: Module nvidia is in use by: nvidia_uvm

Also, the "Xorg.0.log" for "nvidia-xrun startx" contains a segmentation fault that is not present in the log for just "startx".

"startx" Xorg.0.log: https://bin.snopyta.org/?a1d96ef081c29611#H173fgUNdTWZ7bk8ygRKTcWuKWitbm71yUxokNnz5wG8

"nvidia-xrun startx" Xorg.0.log: https://bin.snopyta.org/?e11f9ec65d32ba6a#DyLUtnpqgCKJ5e3cSffpmxeKDfzf2mP9ui2pcbKyqFia
Title: Re: X will not start, dbus error
Post by: xqtha2276 on 29 May 2022, 08:44:38
Since the S6 bundle issue was solved, but X still won't start for some other reason, I made a new thread: https://forum.artixlinux.org/index.php/topic,4096.new.html#new