You are not logged in.
On my laptop I have an issue loading sway and i3wm. When I log in via SDDM, sway immediately logs out and sends me back to log in again. Same issue with i3.
I tried erasing my configs and using the defaults and they still didn't work. I tried creating a new user account and they did work. Problem is, something on my user account must be causing the problem.
Here is my paste of `sway -d`:
https://0x0.st/Hgt0.txt
In another log, I got these errors on the tty:
```
00:00:00.062 [ERROR] [wlr] [types/wlr_drm_lease_v1.c:715] No DRM backend supplied, failed to create wlr_drm_lease_v1_manager
00:00:00.088 [ERROR] [wlr] [xwayland/sockets.c:63] Failed to bind socket @/tmp/.X11-unix/X0: Address already in use
2023-12-22 19:17:36 - [swaybg-1.2.0/main.c:582] wl_display_roundtrip failed
```
I also tried launching i3 via startx. This is my .xinitrc:
https://0x0.st/-eNp.sh
This is what shows up in the tty when I try to launch it:
https://0x0.st/Hgvu.txt
And this is my Xorg log:
https://0x0.st/HgvS.txt
I created a fresh user without sudo permissions, and I was able to log into sway and i3 on that from SDDM, just not my main account. Can anybody please figure out what's wrong with my user?
Last edited by jamesp5 (2023-12-24 15:57:41)
Offline
Are there any "foreign" files in $HOME?
find ~ ! -user "$USER"EDIT: double-quote the variable!
Last edited by Head_on_a_Stick (2023-12-23 20:24:54)
Jin, Jîyan, Azadî
Offline
EDIT: double-quote the variable!
Nah. Anyone who puts spaces in a *nix username gets what they deserve.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Also
printenvmight be interesting and you could try to just "exec xterm" in your xinitrc and , assuming that works, try to start i3 from there (you might get a hint at the problem)
"A POSIX violation" - there're btw. more restrinctions to valid user names than that, https://systemd.io/USER_NAMES/
Online
Also
printenvmight be interesting and you could try to just "exec xterm" in your xinitrc and , assuming that works, try to start i3 from there (you might get a hint at the problem)
I've printed out my printenv:
https://paste.rs/3JZdO
Where should I add
exec xtermto the xinitrc to start i3?
Last edited by jamesp5 (2023-12-24 13:27:33)
Offline
At the end of the file instead of "exec i3" and you can run printenv either in that xterm or in the linux console before running "startx"
Online
At the end of the file instead of "exec i3" and you can run printenv either in that xterm or in the linux console before running "startx"
So I tried replacing "exec i3" with "exec xterm" and I still didn't get anywhere.
I did paste my printenv from the tty: (Sorry, I edited my previous post just before I saw yours)
https://0x0.st/HgI2.txt
Offline
Did you search for foreign owned files/directories?
Edit: the environment is from TTY3, is SDDM still running on TTY1?
Last edited by seth (2023-12-24 13:37:21)
Online
Did you search for foreign owned files/directories?
Edit: the environment is from TTY3, is SDDM still running on TTY1?
I think SDDM was running on TTY2 (due to the fact that TTY1 is blank for me). I tried using the command above (with and without quotes around $USER) to search for foreign-owned files and got nothing.
Offline
Post your updated xinitrc - "type xterm" suggests that you do have xterm installed?
Online
Post your updated xinitrc - "type xterm" suggests that you do have xterm installed?
It turns out I didn't have xterm installed. Terminal emulators just say that to get the right colors. So I installed xterm and tried opening it. It does open, but I can't even type in it or log out.
Here is my .xinitrc as of now:
https://0x0.st/HgIg.sh
Offline
It'll take focus when you move the pointer over it.
Online
So I was able to move my cursor over, and I was able to get a printenv from there. I tried running /bin/i3 and it went "Segmentation fault (core dumped)" just like sway would from a tty.
Here is my printenv from xterm:
https://0x0.st/HgIF.txt
Now what should I do?
Offline
https://wiki.archlinux.org/title/Core_d … _core_dump
Also https://wiki.archlinux.org/title/Debuginfod
And that's btw news:
just like sway would from a tty.
Last edited by seth (2023-12-24 14:51:20)
Online
So I was able to find the process IDs in coredumpctl for both i3 and sway (I launched that in another tty for this purpose) and I ran "coredumpctl info" on each of them.
This is i3: http://0x0.st/Hgl8.txt
And this is sway: http://0x0.st/HglK.txt
I should note that in coredumpctl, i3 was listed as "present" while sway was listed as "inaccessible", which probably means I need to use sudo if I want to get any debug logs.
And that's btw news:
just like sway would from a tty.
So what does this mean? And why would they both work on the other fresh user account but not mine?
Offline
#1 0x00007fd46dc8b902 _IO_file_fopen (libc.so.6 + 0x83902)
#2 0x00007fd46dc7ffef n/a (libc.so.6 + 0x77fef)
#3 0x00007fd46e26f559 n/a (libxcb-cursor.so.0 + 0x2559)It's your cursor theme.
So what does this mean?
That you didn't point out that sway was getting you a core dump.
Online
#1 0x00007fd46dc8b902 _IO_file_fopen (libc.so.6 + 0x83902) #2 0x00007fd46dc7ffef n/a (libc.so.6 + 0x77fef) #3 0x00007fd46e26f559 n/a (libxcb-cursor.so.0 + 0x2559)It's your cursor theme.
So it seems like my cursor theme must be responsible for the crashes. So how do I find out which it is and restore it?
Offline
Online
Okay, I just solved it! So it turns out that LXQt placed ".icons/default/index.theme" in my home directory, and that must've interfered with sway and i3. I removed it, and they now both work!
Here were the contents:
# Written by lxqt-config-appearance
[Icon Theme]
Name=Default
Comment=Default cursor theme
Inherits=default
Size=18I moved .icons somewhere else, and I've been able to successfully load sway and i3. Thanks for your help. Now how do I mark this as solved?
Offline
Mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Online
Mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
I don't see where to edit the subject. Can you show me where it is, please?
EDIT: I realized I have to edit it on the first post. I ran out of characters so I had to shorten the subject. It is now marked as solved. Thanks!
Last edited by jamesp5 (2023-12-24 15:58:35)
Offline