You are not logged in.

#1 Today 09:06:31

AidanUnhappy
Member
Registered: 2022-04-16
Posts: 1

Freeze when switching back from TTY to Xorg

# Steps to reproduce:

1. Log in to TTY1. My shell profile detects that it is TTY1 and runs "exec startx".

"~/.xinitrc" is just "exec dwm"

2. Switch to TTY2 via Ctrl+Alt+F2, the cursor is blinking, prompt me to enter my username and password

3. Try to switch back to TTY1 via Ctrl+Alt+F1, the cursor disappears, and I am stuck on the TTY2 screen.

The keyboard becomes completely unresponsive. The only key combination that still works is Magic SysRq (Alt+SysRq+E), which sends SIGTERM to all processes. After triggering it, I have to log in to TTY1 again.



# Version

Kernel: 7.1.4-arch1-1

GPU: AMD ATI Radeon RX 6400/6500 XT/6500M

GPU driver: xf86-video-amdgpu

xorg-server 21.1.24-1



# Note:

- This issue only occurs when switching from a TTY to Xorg. Switching between different TTYs works as expected.

- This issue is not specific to dwm. It can also be reproduced with i3.

- This issue can also be reproduced by "sudo chvt 1" from TTY2

- The closest issue I found on the forum is this:

https://bbs.archlinux.org/viewtopic.php?id=272327

The issue was fixed after upgrading xorg-server to 21.1.2-2, but my xorg-server version is 21.1.24-1

- "journalctl -b" does not seem to contain any unusual entries.

- Try to use linux-lts kernel, can still reproduce

- Try to downgrade xorg-server, can still reproduce

Offline

#2 Today 10:12:14

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,228

Re: Freeze when switching back from TTY to Xorg

"~/.xinitrc" is just "exec dwm"

Then your xinitrc is broken, see https://wiki.archlinux.org/title/Xinit#xinitrc .
Fix ~/.xinitrc, then test if the freeze still happens.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB