Xorg logs now include PIDs

I happened to be looking around /var/log and I noticed an odd change to the Xorg logs since (apparently) late March (about the time of an update).

Whereas Xorg’s logs were previously simply rotating as:

Xorg.0.log
Xorg.0.log.old

Each time Xorg restarted it now creates a file in the format:

Xorg.pid-788247.log

with the number changing according to the PID of the process.

Worth mentioning because this means that without intervention, Xorg logs are going to accumulate ad-infinitum. Fortunately I have a periodical cleanup process I can add this to, other people may have to implement something themselves.

I cannot confirm this, but another strange to me occurence:

I have several VM’s - Manjaro Xfce4, Manjaro Plasma, Manjaro Gnome
and Manjaro Gnome which is on the testing branch.

In the two Gnome installations, there is no Xorg.log at all - even though Gnome is running under Xorg in both.

In the Xfce4 and Plasma installations, there is the normal log pattern:

Xorg.0.log
Xorg.0.log.old
Xorg.1.log
Xorg.1.log.old

Same:

ls /var/log/ | grep -i xorg
Xorg.0.log
Xorg.0.log.old
Xorg.1.log
Xorg.1.log.old

… I’ve been using Wayland for some time now, so wouldn’t expect to see much in these? Although not empty. Plasma6 here.

I assume if you’re using Wayland Xorg won’t be even started so won’t have written any logs since you last used it. So the timestamps on those files will probably be quite old.

Surprisingly not that old:

Protocol Version 11, Revision 0
[     8.718] Current Operating System: Linux BG-T440-MANJARO 6.1.90-1-MANJARO #1 SMP PREEMPT_DYNAMIC Fri May  3 05:13:01 UTC 2024 x86_64

… I guess this might have been from when I manually logged out, as I assume the login screen is using X11.

Interesting. Seems that when I can finally go over to Wayland I’ll still be needing things I didn’t expect to need.

1 Like

SDDM can be configured to use Wayland (kwin_wayland)

https://wiki.archlinux.org/title/SDDM#Wayland

1 Like

Cheers @Takakage … I suspect the reason it’s not like that by default is because some people still have issues with Wayland.

I rarely see the login screen anyway so it probably doesn’t matter in my case.