So I am dumb, and somehow I broke Plasma by updating the system, and now when I try to log in it just freezes, I still can access the terminal with Ctrl-Alt-F5 so I can fix this, just do not know how, is there a way of getting "factory settings" of the packages without formating? I do have root access
Although I don't know what exactly you mean by "when I try to log in it just freezes", but in my experience, when my plasma gets stuck at startup and the panel area doesn't start, the following will always help me:
1. log in to the terminal
2. rename (or delete) plasma-org.kde.plasma.desktop-appletsrc:
mv ~/.config/plasma-org.kde.plasma.desktop-appletsrc plasma-org.kde.plasma.desktop-appletsrc.broke
3. restart sddm (run again your DM)
rc-service sddm restart
So, it did not help, And what I mean by it freezes, once I write in the password and press login, the screen locks up, I can move the mouse around but overall is just frozen, the session is selected as Plasma X11
Have you tried logging in as root on the tty?
Off topic: threads like these show why not having a DM and instead running X by typing startx (or at least having startx run by your .bash_profile) is better.
so put here
cat /var/log/sddm.log
and
cat /var/log/Xorg.0.log
use https://paste.artixlinux.org/ copy output and post here both link with full log.
Plasma unfortunately can sometimes go wrong by itself. Sometimes it helps to restart it several times in a row (and suddenly it starts up again without any problems) and sometimes it doesn't. As I wrote above, 100% of that procedure will help me. this is probably another problem.
heh, a problem with copying the logs, is, I have only a terminal to work with, I use my other pc to use the forum.
I could try getting the logs of the pc with a pen, but mounting and then copying the data would be another fun journey I don't really like doing. Also I tried running it via startx , it crashed and put out xtern not found, xlcok not found...
To the logs, It seems as soon as the session starts it's closed
Also I have to switch internet cable between my pc and the laptop with the linux any time I wanna do something so I cannot just ftb the files
If you have a USB flash disk, first find out which device it is on when you connect it:
$ lsblk -f
Usually it will be
/dev/sdb1, but check just in case.
Then (assuming it is
/dev/sdb1):
$ su
# mount /dev/sdb1 /mnt
# cp /var/log/Xorg.0.log /var/log/messages.log /mnt
# dmesg > /mnt/dmesg.txt
# sync; umount /mnt
and there you go.
https://paste.artixlinux.org/view/0a8dffda
https://paste.artixlinux.org/view/ab99aeff
https://paste.artixlinux.org/view/9b3e6fc2
Thank you, that helps lots
Looking at your logs (especially Xorg.0.log), I don't see anything that stands out as an error, except maybe the fact that there are no lines about your mouse, only touchpad, which seems weird because you said that you have a mouse and you could move your pointer with it.
I suggest also uploading your sddm.log as alium said.
https://paste.artixlinux.org/view/89b8c619
(II) HELPER: [PAM] Starting...
[09:41:06.322] (II) HELPER: [PAM] Authenticating...
[09:41:06.322] (II) HELPER: [PAM] Preparing to converse...
[09:41:06.322] (II) HELPER: [PAM] Conversation with 1 messages
[09:41:08.658] (WW) HELPER: [PAM] authenticate: Permission denied
[09:41:08.658] (II) HELPER: [PAM] returning.
[09:41:08.658] (WW) DAEMON: Authentication error: "Permission denied"
some is wrong here.
did you added some scripts or command for KDE's autologin?
that is my log:
[20:46:28.157] (II) HELPER: [PAM] Starting...
[20:46:28.157] (II) HELPER: [PAM] Authenticating...
[20:46:28.157] (II) HELPER: [PAM] Preparing to converse...
[20:46:28.157] (II) HELPER: [PAM] Conversation with 1 messages
[20:46:28.158] (II) HELPER: [PAM] returning.
[20:46:28.158] (II) DAEMON: Authenticated successfully
I do not know, I think I might have by accident at some point
can you try downgrade to https://archive.artixlinux.org/packages/p/plasma-workspace/plasma-workspace-5.21.3-1-x86_64.pkg.tar.zst ? and try if problem is not with last update? It should not be, but to be sure ...
in terminal
wget https://archive.artixlinux.org/packages/p/plasma-workspace/plasma-workspace-5.21.3-1-x86_64.pkg.tar.zst
sudo pacman plasma-workspace-5.21.3-1-x86_64.pkg.tar.zst
restart sddm
we added in last change of workspace "dbus-run-session " command
[09:41:18.594] (II) DAEMON: Session "/usr/share/xsessions/plasma.desktop" selected, command: "dbus-run-session /usr/bin/startplasma-x11"
but that should caused no troubles...
I'll try to do it in a little bit, I have a little problem, as I cannot set up the wifi getting an
essid Host name lookup failure
and the cable is connected to my main pc I cannot disconnect for next 3 hours
Ah no I am dumb again was using wrong command
if you plasma stuck at startup, you can try rename the entire .config to .config2 and restart sddm. the plasma will start as if it were newly installed.
some plasma cache dirs you can find in ./cache. Just deleting plasma cache dirs/files could be help too:
kcmshell5
kinfocenter
kio_http
krunner
ksmserver-logout-greeter
kscreenlocker_greet
ksplashqml
kwin
plasmashell
qmlplugindump
systemsettings
ksycoca5_cs_Sc37KVY0ETJiYubzUugGbzqYDlk=
ksycoca5_en_Sc37KVY0ETJiYubzUugGbzqYDlk=
plasma-svgelements
plasma_theme_default_v5.80.0.kcache
icon-cache.kcache
event-sound-cache.tdb.xxxxxxxx.x86_64-pc-linux-gnu
neither helped, also startx doesn't work either, maybe getting that to work would help ?
Also while using wpa_supplicants when trying to connect to the wifi, I got fun error
Failed to add supported operating classes IE
Anyway, fixed that one myself
What happens when you disable your DM and run
startx?
If it sends you back to the console after a brief flash, post your
/etc/X11/xinit/xinitrc.
For example (I'm not using a DE, but only dwm), my
xinitrc ends with:
exec dwm
so by installing
dwm (if you don't already have it), you can test if your X works at all and we can eliminate X from being the source of the problem.
Shift+Alt+q exits
dwm by default if you manage to start it.
https://paste.artixlinux.org/view/aae4e8ab
So it does flash and then I have a error that line 51, 52, 53, 54 ... command not found
twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name login
That's because you don't have
twm,
xclock or
xterm installed. You can either comment out the line with
twm and
xclock and install
xterm (
pacman -S xterm as root), which will allow you to test if X works, or, alternatively, install a simple WM like
dwm, comment out all lines with
xterm and add
exec dwm
at the end, then try to run
startx.
If you go with the second option (
dwm), this is how the end of your
xinitrc will look:
#twm &
#xclock -geometry 50x50-1+1 &
#xterm -geometry 80x50+494+51 &
#xterm -geometry 80x20+494-0 &
#exec xterm -geometry 80x66+0+0 -name login
exec dwm
So em, that's the resualt, 3 terminals yey?(https://cdn.discordapp.com/attachments/530101529039077388/824527710424268810/IMG_20210325_071816.jpg)
This means that we can narrow down the problem to plasma. X is working on your system.
If alium's suggestion didn't work, I'd next try creating a fresh user account and starting plasma (through your DM) as that user.
Sorry I ask, i am stupid how do you use Display Manager?
Create a new user >> System Settings > In "Personalization" section click "Users" then at bottom click "+ Add New User". After that log out of Plasma and login as that "New User". hth
Best regards.
The problem is that I have no GUI. Plasma broke, and I have access only to the terminal, and I am asking how to use DM to start it, not how to create a user
which init you have?
above i wrote you, how re-start sddm, if you have openrc.
I get service sddm doesn't exist
And I think I have runit ?
which DM you use ? if you don't know, install sddm and install sddm-runit
Alright, so I know now I am using openrc
Also, I am not sure what type of DM I use, it's the default one most likely, as I wasn't messing with it
you can see what you have for a DM :
pacman -Q sddm
pacman -Q lightdm
pacman -Q xdm
pacman -Q gdm
more DM we support not, i think :D
I only have sddm installed ^^
So I use openrc for innit and sddm for dm
but when I write rc-service sddm restart
it says sddm not found
Despite it being installed maybe that is the problem ?
installing sddm-openrc can really very help 😄😄😄😅
install it and enable this service please :
rc-update add sddm default
and after start this service or restart computer
Alright, so now it works somewhat, it looks same but now I can start it, also, it still freezes, also new behavior, when trying to log into the new account it seems that sddm is crashing before relaunching itself
put here some new logs please, if you can.
https://paste.artixlinux.org/view/0e99c4f4
https://paste.artixlinux.org/view/8f494601
https://paste.artixlinux.org/view/61b27df9
https://paste.artixlinux.org/view/095cde43
seems as your home dir permissions are set wrong
check permissions of your /home/fixer
ls -ls /home
and eventually
ls -la /home/fixer
The home directory hadn't been made for fixer I fixed that
Aaaand the behavior becomes the same as with the other accounts
what is the behavior? does sddm start, and will plasma start? plasma as it starts and takes a long time or nothing happens? or sddm crash? or sddm returns to the original screen. Please describe the behavior after starting sddm better . I don't have a clear idea of what you see on the screen because I can't see it on your screen.
Try to install xfce, and in sddm select xfce instead of plasma. If xfce starts via sddm, the problem is somewhere in the plasma. But if xfce doesn't work either, the issue is probably in sddm, then you need to install another DM (like gdm or lighdm) for confirming this. But if he doesn't work either, and doesn't run any DE, then there's an issue somewhere in your system settings.
if you can not identify the cause, and you have no experience with Linux and the issue is somewhere in your system settings I would suggest maybe even fresh installation from ISO week
About
sddm.log:
[08:00:18.166] (II) HELPER: [PAM] Starting...
[08:00:18.166] (II) HELPER: [PAM] Authenticating...
[08:00:18.166] (II) HELPER: [PAM] Preparing to converse...
[08:00:18.166] (II) HELPER: [PAM] Conversation with 1 messages
[08:00:18.166] (II) HELPER: [PAM] Preparing to converse...
[08:00:18.166] (II) HELPER: [PAM] Conversation with 1 messages
[08:00:18.166] (WW) DAEMON: Authentication information: "The account is locked due to 3 failed logins."
[08:00:18.166] (WW) DAEMON: Authentication information: "(10 minutes left to unlock)"
[08:00:18.166] (II) HELPER: [PAM] Preparing to converse...
[08:00:18.166] (II) HELPER: [PAM] Conversation with 1 messages
[08:00:21.547] (II) DAEMON: Message received from greeter: Login
[08:00:21.547] (II) DAEMON: Reading from "/usr/share/xsessions/plasma.desktop"
[08:00:21.548] (WW) DAEMON: Existing authentication ongoing, aborting
[...]
Meaning the OP got timeout due to 3 unsuccessful logins, and later:
[08:01:07.172] (II) DAEMON: Message received from greeter: Login
[08:01:07.172] (II) DAEMON: Reading from "/usr/share/xsessions/plasma.desktop"
[08:01:07.173] (WW) DAEMON: Existing authentication ongoing, aborting
[08:27:01.300] (WW) DAEMON: Signal received: SIGTERM
[08:27:01.300] (II) DAEMON: Greeter stopping...
[08:27:01.300] (II) DAEMON: Socket server stopping...
[08:27:01.300] (II) DAEMON: Socket server stopped.
[08:27:01.300] (II) DAEMON: Display server stopping...
[08:27:01.332] (II) DAEMON: Display server stopped.
[08:27:01.333] (II) DAEMON: Running display stop script "/usr/share/sddm/scripts/Xstop"
[08:27:01.341] (WW) DAEMON: QProcess: Destroyed while process ("/usr/lib/sddm/sddm-helper") is still running.
[...]
[08:27:33.331] (II) DAEMON: Display server started.
[08:27:33.331] (II) DAEMON: Socket server starting...
[08:27:33.331] (II) DAEMON: Socket server started.
[08:27:33.332] (II) DAEMON: Loading theme configuration from "/usr/share/sddm/themes/artix/theme.conf"
[08:27:33.332] (II) DAEMON: Greeter starting...
[08:27:33.346] (II) HELPER: [PAM] Starting...
[08:27:33.346] (II) HELPER: [PAM] Authenticating...
[08:27:33.346] (II) HELPER: [PAM] returning.
[08:27:33.355] (II) DAEMON: Greeter session started successfully
[08:27:33.472] (II) DAEMON: Message received from greeter: Connect
[08:29:49.935] (II) DAEMON: Message received from greeter: Login
[08:29:49.935] (II) DAEMON: Reading from "/usr/share/xsessions/plasma.desktop"
[08:29:49.936] (II) DAEMON: Reading from "/usr/share/xsessions/plasma.desktop"
[08:29:49.936] (II) DAEMON: Session "/usr/share/xsessions/plasma.desktop" selected, command: "dbus-run-session /usr/bin/startplasma-x11"
[08:29:49.960] (II) HELPER: [PAM] Starting...
[08:29:49.961] (II) HELPER: [PAM] Authenticating...
[08:29:49.961] (II) HELPER: [PAM] Preparing to converse...
[08:29:49.961] (II) HELPER: [PAM] Conversation with 1 messages
[08:29:52.473] (WW) HELPER: [PAM] authenticate: Permission denied
[08:29:52.473] (II) HELPER: [PAM] returning.
[08:29:52.473] (WW) DAEMON: Authentication error: "Permission denied"
[08:29:52.473] (II) HELPER: [PAM] Ended.
[08:29:52.480] (WW) DAEMON: Auth: sddm-helper exited with 1
[08:30:02.554] (II) DAEMON: Message received from greeter: Login
[08:30:02.554] (II) DAEMON: Reading from "/usr/share/xsessions/plasma.desktop"
[08:30:02.554] (II) DAEMON: Reading from "/usr/share/xsessions/plasma.desktop"
[08:30:02.554] (II) DAEMON: Session "/usr/share/xsessions/plasma.desktop" selected, command: "dbus-run-session /usr/bin/startplasma-x11"
[08:30:02.566] (II) HELPER: [PAM] Starting...
[08:30:02.566] (II) HELPER: [PAM] Authenticating...
[08:30:02.566] (II) HELPER: [PAM] Preparing to converse...
[08:30:02.566] (II) HELPER: [PAM] Conversation with 1 messages
[08:30:02.573] (II) HELPER: [PAM] returning.
[08:30:02.579] (II) DAEMON: Authenticated successfully
[08:30:02.647] (II) HELPER: [PAM] Closing session
[08:30:02.648] (II) HELPER: [PAM] Ended.
[08:30:02.649] (II) DAEMON: Auth: sddm-helper exited successfully
[08:30:02.650] (II) DAEMON: Greeter stopped.
Probably rebooted or restarted sddm and could login successfully.
Alright, Xfce worked instantly.
I am quite happy with having it work, maybe I should just reinstall plasma then.
To problem, once the sddm is restarted, it goes to the login screen, where I can pick the session and write my login, when I do and press login with plasma selected as the session, it just freezes and does nothing. As in, it stays on the login screen, and I cannot interact with it anymore. while with Xfce, it loged me in instantly
Also little problem I been having is for some reason when the screen loads, an touch keyboard appears, what is quite annoying and I do not know how to fix that
Alright I found how to fix it, it was just as simple as reinstalling Plasma with
sudo pacman -S --overwrite /* plasma