#Kde plasma X11 randomly freezes up on startup

137 messages · Page 1 of 1 (latest)

pulsar stream
#

I really hope constantly reinstalling is a normal thing people do

#

cuz Im embarassed doing that 💀

#

I just got everything installed a week ago too

muted token
#

Go into tty, delete ~/.Xauthority

#

Or sudo chown $USER:$USER ~/.Xauthority

tawdry zephyrBOT
#

xkaku

Or sudo chown $USER:$USER ~/.Xauthority
rare gale
mortal bramble
#

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.

pulsar stream
#

I didnt do startx before

mortal bramble
#

then it is probably not related to sudo

pulsar stream
#

ls: cannot access '/home/user/.xinitrc': No such file or directory
-rw------- 1 user user 53 Apr 27 08:56 /home/user/.Xauthority

mortal bramble
#

share your .xinitrc please

#

ok you do not have .xinitrc, that is an issue lol

pulsar stream
#

can i just create one?

pulsar stream
mortal bramble
#

wait, you are using KDE right?

pulsar stream
#

yup

mortal bramble
#

you aren't using a display manager?

pulsar stream
#

sddm

mortal bramble
#

then you have nothing to do with startx or .xinitrc

#

you either use startx or sddm

pulsar stream
#

these problems started right after i ran sudo startx tho

#

so maybe its conflicting with sddm somehow

mortal bramble
#

ok now it makes more sense

#

would you like to use sddm, or would you like to start KDE with startx?

pulsar stream
#

whichever fixes my issue

#

i dont really have a preference lol

mortal bramble
#

you can remove sddm and just use startx

#

but do you actually want the functionality of sddm?

pulsar stream
#

is there less with startx?

mortal bramble
#

less?

pulsar stream
#

less functionality

#

idk what the big differences are between the two

mortal bramble
#

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.

pulsar stream
#

ill take sddm then

mortal bramble
#

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)

pulsar stream
#

yeah not too comfortable using it yet then

pulsar stream
#

whether its a dwm or an actual desktop

mortal bramble
#

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.

pulsar stream
#

i might switch to it in the future but ig for now i want to stick with sddm

mortal bramble
#

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

pulsar stream
#

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 ..

mortal bramble
#

Apr 26 23:23 is that perhaps the time you ran sudo startx ?

pulsar stream
#

I think it was like 9 or 10pm yesterday

pulsar stream
#

so its not the original

mortal bramble
#

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

pulsar stream
#

done

mortal bramble
#

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

pulsar stream
#

unless your talking about configs to the looks of the desktop

mortal bramble
#

KDE configs should be staying, we won't touch them

pulsar stream
mortal bramble
#

ok

pulsar stream
#

and the sound service failed to start

mortal bramble
#

did all work fine with sddm before? including sound?

pulsar stream
#

before sudo startx

#

yep

mortal bramble
#

ok

pulsar stream
#

the thing is it works perfectly other times when I restart

#

with the sound and all

mortal bramble
#

oh?

pulsar stream
#

its like rng

mortal bramble
#

so you restart, it work perfectly.

pulsar stream
#

4/5 restarts, it works

mortal bramble
#

hmm

pulsar stream
#

I restarted 10 times and it froze in 2 restarts

mortal bramble
#

complete PC reboots? or something else?

pulsar stream
#

complete reboots

#

each time it froze the sound service would always fail afaik

#

maybe other hidden services fail too but i wouldnt know

mortal bramble
#

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

pulsar stream
#

sure thing

mortal bramble
#

sudo pacman -Rns xorg-xinit sddm
sudo pacman -S sddm

pulsar stream
#

would that remove whatever sudo startx implanted in my system since its effects lives through restarts

mortal bramble
#

I think so.

pulsar stream
#

checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing sddm breaks dependency 'sddm' required by sddm-kcm

mortal bramble
#

ok, let's add that one too

#

sudo pacman -Rns xorg-xinit sddm sddm-kcm
sudo pacman -S sddm sddm-kcm

pulsar stream
#

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

mortal bramble
#

what is the dependency

pulsar stream
#

error: failed to prepare transaction (could not satisfy dependencies)
:: removing sddm-kcm breaks dependency 'sddm-kcm' required by plasma-meta

mortal bramble
#

ok, do -Rnsd instead

#

-Rnsdd if still doesn't work

pulsar stream
#

yup that worked

mortal bramble
#

sudo systemctl enable sddm.service

#

after installing again

pulsar stream
#

done

mortal bramble
#

restart 🙏

pulsar stream
#

the same freezing happened

#

but at least nothing broke lol where it fails to start at all

mortal bramble
#

ls -alt /etc/X11

#

yes haha i was a bit worried at the last moment

pulsar stream
#

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 .

mortal bramble
#

ls -alt /etc/X11/xinit

pulsar stream
#

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 ..

mortal bramble
#

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/*

pulsar stream
#

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

mortal bramble
#

cat .local/share/xorg/Xorg.0.log | grep EE

pulsar stream
#

cat: .local/share/xorg/Xorg.0.log: No such file or directory

mortal bramble
#

ok, you can reinstall, or we can set up startx instead of sddm too.

#

cat /var/log/Xorg.0.log | grep EE

pulsar stream
#

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

mortal bramble
#

if you're not leaving yet;
ls -alt /var/log/Xorg*

#

and
ls -alt ~/.local/share/xorg/

pulsar stream
# mortal bramble if you're not leaving yet; `ls -alt /var/log/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

pulsar stream
mortal bramble
#

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 :)

pulsar stream
mortal bramble
#

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=plasma and exec startplasma-x11 to 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/*

mortal bramble
#

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

pulsar stream
# mortal bramble also can you please do this too, i would like to check: `cat /etc/X11/xinit/xini...

#!/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

tawdry zephyrBOT
#

UnPlugTheMatrix
Compile Error! Click the errors reaction for more information.
(You may edit your message to recompile.)

pulsar stream
#

but the exact same issues happen where it freezes and the sound services dont start