#Kde plasma X11 randomly freezes up on startup
137 messages · Page 1 of 1 (latest)
xkaku
Or sudo chown $USER:$USER ~/.Xauthority
This doesn’t always work. I ran sudo startx like an idiot once and this had no effect.
only fix is to reinstall?
ls -al ~/.xinitrc ~/.Xauthority
It shouldn't be "unfixable" or difficult to fix at all
also did you do startx properly before and did it work fine?
maybe your issue is not related to doing sudo startx as you assumed.
I didnt do startx before
then it is probably not related to sudo
ls: cannot access '/home/user/.xinitrc': No such file or directory
-rw------- 1 user user 53 Apr 27 08:56 /home/user/.Xauthority
can i just create one?
1 out of 5 times, it freezes at startup for the first 30 seconds, then everything works as normall
EXCEPT: my pulseaudio fails to start whenever that happens
wait, you are using KDE right?
yup
you aren't using a display manager?
sddm
then you have nothing to do with startx or .xinitrc
you either use startx or sddm
these problems started right after i ran sudo startx tho
so maybe its conflicting with sddm somehow
ok now it makes more sense
would you like to use sddm, or would you like to start KDE with startx?
you can remove sddm and just use startx
but do you actually want the functionality of sddm?
is there less with startx?
less?
startx has no functionality other than starting your KDE session.
sddm gives you a graphical interface you use to login, pick form different desktop sessions if you have multiple ones.
ill take sddm then
with startx, you login from the tty, entering your username and password, and then KDE starts up automatically (or not, if you want to manually start it by just writing startx in the tty)
yeah not too comfortable using it yet then
but its similiar where you can choose which de to run?
whether its a dwm or an actual desktop
so, you do not get a graphical interface to pick which DE to run.
but you can easily set it up so that a specific DE / WM starts.
i might switch to it in the future but ig for now i want to stick with sddm
ok, i'm not sure how to fix sddm now, but we can investigate.
i think the issue is that sddm uses the root user's .Xauthority.
sudo ls -alt /root
total 20
drwx------ 5 root root 4096 Apr 26 23:23 .
-rw------- 1 root root 0 Apr 26 23:23 .Xauthority
drwxr-xr-x 3 root root 4096 Apr 24 14:33 .cache
drwx------ 2 root root 4096 Apr 24 14:27 .ssh
drwx------ 3 root root 4096 Apr 24 14:27 .gnupg
drwxr-xr-x 17 root root 4096 Apr 24 14:27 ..
Apr 26 23:23 is that perhaps the time you ran sudo startx ?
I think it was like 9 or 10pm yesterday
I did delete Xauthority in an effort to fix it yesterday as well
so its not the original
I think you removed the .Xauthority in your home, not root's
so let's try removing root's.
make a backup just in case, so:
sudo mv /root/.Xauthority /root/.Xauthority.bak
done
ok, restart and see if it works
you can also try uninstalling and reinstalling sddm + xorg-xinit
but uninstall with sudo pacman -Rns
you would need to redo any config you did to sddm. so you may want to back up the config files
this is a fresh install so I didnt do much
unless your talking about configs to the looks of the desktop
KDE configs should be staying, we won't touch them
i still experienced the same 20s freeze
ok
and the sound service failed to start
did all work fine with sddm before? including sound?
ok
oh?
its like rng
so you restart, it work perfectly.
4/5 restarts, it works
hmm
I tested it
I restarted 10 times and it froze in 2 restarts
complete PC reboots? or something else?
complete reboots
each time it froze the sound service would always fail afaik
maybe other hidden services fail too but i wouldnt know
if you are doing nothing, like using startx inbetween those restarts, and it is just rebooting and it randomly does not work well, that is weird
personally, I prefer to use startx and not have a graphical startup screen like sddm.
but it is a preference.
so if you'd like, let's reinstall sddm cleanly
sure thing
sudo pacman -Rns xorg-xinit sddm
sudo pacman -S sddm
would that remove whatever sudo startx implanted in my system since its effects lives through restarts
I think so.
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing sddm breaks dependency 'sddm' required by sddm-kcm
ok, let's add that one too
sudo pacman -Rns xorg-xinit sddm sddm-kcm
sudo pacman -S sddm sddm-kcm
its just listing another dependency that ssm-kcm would break
is there a way to just override it?
since if you remove and reinstall, it shouldnt be an issue
what is the dependency
error: failed to prepare transaction (could not satisfy dependencies)
:: removing sddm-kcm breaks dependency 'sddm-kcm' required by plasma-meta
yup that worked
done
restart 🙏
the same freezing happened
but at least nothing broke lol where it fails to start at all
total 16
drwxr-xr-x 78 root root 4096 Apr 27 10:40 ..
drwxr-xr-x 3 root root 4096 Apr 26 23:26 xinit
drwxr-xr-x 2 root root 4096 Apr 24 14:32 xorg.conf.d
drwxr-xr-x 4 root root 4096 Apr 24 14:30 .
ls -alt /etc/X11/xinit
total 12
drwxr-xr-x 3 root root 4096 Apr 26 23:26 .
drwxr-xr-x 2 root root 4096 Apr 24 14:32 xinitrc.d
drwxr-xr-x 4 root root 4096 Apr 24 14:30 ..
hmm this xinit directory should not exist after uninstalling xorg-xinit, so i'm not sure why it's still there
but it shouldn't be having an effect anyway
cat /etc/X11/xorg.conf.d/*
Written by systemd-localed(8), read by systemd-localed and Xorg. It's
probably wise not to edit this file manually. Use localectl(1) to
instruct systemd-localed to update it.
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "us"
Option "XkbModel" "pc105+inet"
Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection
I have to go right now but I really appreciate your help 🙏
systems still functional but I'll end up reinstalling this weekend if nothing else works
cat .local/share/xorg/Xorg.0.log | grep EE
cat: .local/share/xorg/Xorg.0.log: No such file or directory
ok, you can reinstall, or we can set up startx instead of sddm too.
cat /var/log/Xorg.0.log | grep EE
im down to setup startx when I get back
[ 7.813] Current Operating System: Linux AstralOS 6.2.12-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 20 Apr 2023 16:11:55 +0000 x86_64
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 7.840] (EE) Failed to load module "intel" (module does not exist, 0)
[ 7.842] (EE) Failed to load module "fbdev" (module does not exist, 0)
[ 7.842] (EE) Failed to load module "vesa" (module does not exist, 0)
[ 8.350] (II) Initializing extension MIT-SCREEN-SAVER
if you're not leaving yet;
ls -alt /var/log/Xorg*
and
ls -alt ~/.local/share/xorg/
-rw-r--r-- 1 root root 70279 Apr 27 10:48 /var/log/Xorg.0.log
-rw-r--r-- 1 root root 62956 Apr 27 10:39 /var/log/Xorg.0.log.old
-rw-r--r-- 1 root root 5309 Apr 26 23:42 /var/log/Xorg.2.log
-rw-r--r-- 1 root root 66127 Apr 26 23:23 /var/log/Xorg.1.log
-rw-r--r-- 1 root root 62864 Apr 26 23:13 /var/log/Xorg.1.log.old
no such file or directory
ok, then we have no errors related to this in Xorg logs
btw I am still assuming there is no other issue, and this is just some weirdness caused by running sudo startx.
I hope it does not happen when we use startx instead of sddm :)
is the process to switch to startx easy?
yeah
we should remove sddm. but plasma-meta which you have requires sddm-kcm for some reason, so let's not do this.
instead, let's just do:
sudo systemctl disable sddm.service
then add xinit : sudo pacman -S xorg-xinit
create and edit the ~/.xinitrc file in your home.
To start Plasma with xinit/startx, append
export DESKTOP_SESSION=plasmaandexec startplasma-x11to your .xinitrc file.
You also should add some other part. So this is what you should have:
# load package-managed config additions.
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
export DESKTOP_SESSION=plasma
exec startplasma-x11
restart.
you should get into the black screen tty asking for login.
login with username and password.
then write startx.
it should work. if you have a problem, let me know
we can make it auto-start after making sure it works.
also can you please do this too, i would like to check:
cat /etc/X11/xinit/xinitrc.d/*
I might go out in an hour.
If you have issues getting into KDE after the changes, just do this and restart, it will be back to where you started:
sudo systemctl enable sddm.service
#!/bin/sh
case "${DESKTOP_SESSION-}" in
gnome*) # Done by gnome-settings-daemon
;;
*)
# Extra check in case DESKTOP_SESSION is not set correctly
if [ -z "${GNOME_DESKTOP_SESSION_ID-}" ]; then
GTK_MODULES="${GTK_MODULES:+$GTK_MODULES:}canberra-gtk-module"
export GTK_MODULES
fi
;;
esac
#!/bin/sh
SPDX-License-Identifier: LGPL-2.1-or-later
This file is part of systemd.
systemd is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
systemctl --user import-environment DISPLAY XAUTHORITY
if command -v dbus-update-activation-environment >/dev/null 2>&1; then
dbus-update-activation-environment DISPLAY XAUTHORITY
fi
UnPlugTheMatrix
Compile Error! Click the
reaction for more information.
(You may edit your message to recompile.)
good news is I can start kde-plasma the exact same way as in sddm
but the exact same issues happen where it freezes and the sound services dont start