You are not logged in.

#1 2024-11-12 18:34:26

waddyhussain
Member
Registered: 2024-11-12
Posts: 2

[SOLVED] Issues with getty and freezing when switching to tty console

My system is freezing whenever it launches into the getty login prompt, or if the login is skipped, when launching into the tty console as opposed to a graphical WM.

My system is configured to automatically login with getty (using pam_autologin and adding the '--skip-login' flag to 'ExecStart' in '/etc/systemd/system/getty.target.wants/getty@tty1.service'), and to automatically launch into Hyprland in tty1. With this combination, my system launches fine without issues.

However, if I do any of the following:

  1. Remove the getty '--skip-login' flag

  2. Disable pam_autologin

  3. Switch to another tty after successfully booting into WM on tty1

then my system freezes. In the first two cases, it freezes on boot and is just stuck showing the boot logo, however the system is still working and I can ssh into it from a different machine.

In the third case, the system just freezes until I switch back to tty1. If I were to make Hyprland auto start on every tty, then it would be able to switch without issues. So the problems seem to specifically be launching the getty login prompt, or logging in directly to a console instead of a graphical WM.

I couldn't find anything from the system log, but the link to it is here in case it has anything useful. I boot into Hyprland on tty1 without issues, then switch to tty2 which is when the freeze occurs.


Thanks in advance, any help is much appreciated

Last edited by waddyhussain (2024-11-15 22:15:44)

Offline

#2 2024-11-12 20:58:29

seth
Member
Registered: 2012-09-03
Posts: 58,974

Re: [SOLVED] Issues with getty and freezing when switching to tty console

The journal ha two autologins ont tty1 and tty2 but no "hanging" tty start?

Afaiu the autologin doesn't cut it, you /have/ to start hyprland to get output updates?
Try to add "nvidia_drm.fbdev=0" to the kernel parameters.

Offline

#3 2024-11-15 22:15:17

waddyhussain
Member
Registered: 2024-11-12
Posts: 2

Re: [SOLVED] Issues with getty and freezing when switching to tty console

No clue how but that fixed it, thank you for your help!


Do you know if there could there be any issues with disabling this parameter? The Hyprland wiki recommends nvidia users enable it, and the Arch wiki page for nvidia says it's a "hard requirement" for kernel version 6.11 and above (am running v6.11.6 with version 565.57.01 of the nvidia driver)

Offline

Board footer

Powered by FluxBB