You are not logged in.

#1 2021-12-19 00:30:35

mersh
Member
Registered: 2021-12-18
Posts: 18

[SOLVED] Bizarre issues when switching between Xorg and TTY

Whenever I am in a running Xorg (or Wayland) session, switch to a different TTY, and attempt to switch back, my keyboard stops working and my screen freezes.

Kernel: linux-zen-5.15.10.zen1-1
GPU: NVIDIA GeForce GTX 1070
Drivers: nvidia-dkms-495.46-1

This did not happen on the past, and has never happened to me on Gentoo.

Last edited by mersh (2021-12-22 05:08:31)

Offline

#2 2021-12-19 00:37:26

loqs
Member
Registered: 2014-03-06
Posts: 17,499

Re: [SOLVED] Bizarre issues when switching between Xorg and TTY

Offline

#3 2021-12-19 07:48:54

mersh
Member
Registered: 2021-12-18
Posts: 18

Re: [SOLVED] Bizarre issues when switching between Xorg and TTY

Those issues seem similar but my issue isn't specific to X, it also happens on Wayland.

Offline

#4 2021-12-19 07:56:22

seth
Member
Registered: 2012-09-03
Posts: 51,940

Re: [SOLVED] Bizarre issues when switching between Xorg and TTY

Does it happen w/ nvidia-495.44?

Online

#5 2021-12-19 08:50:53

mersh
Member
Registered: 2021-12-18
Posts: 18

Re: [SOLVED] Bizarre issues when switching between Xorg and TTY

seth wrote:

Does it happen w/ nvidia-495.44?

Yes, the issue still persists.

Offline

#6 2021-12-19 09:17:04

seth
Member
Registered: 2012-09-03
Posts: 51,940

Re: [SOLVED] Bizarre issues when switching between Xorg and TTY

mersh wrote:

Those issues seem similar but my issue isn't specific to X, it also happens on Wayland.

Is there still and Xorg TTY around? Did you try / did this happen w/ xorg-server 1.20.x ?

Online

#7 2021-12-19 14:56:21

poweredbygamespy
Member
Registered: 2021-12-19
Posts: 7

Re: [SOLVED] Bizarre issues when switching between Xorg and TTY

i have a similar issue, i also noticed this only recently.

i am running 5.10.87-1-lts, i have an RTX 2060 with nvidia-lts 1:495.46-4.

there are no problems switching from Xorg to a TTY. when i try to switch back, my screen freezes and i have to hard reset my pc.

here's what i noticed: if i kill the Xorg session, rmmod nvidia_drm and start Xorg again i can freely switch between Xorg and the other TTYs. However, i experience similar issues as described by OP, my keyboard appears not to be working. i know it does because i can launch rofi as usual, type a command and have it be executed, even though the prompt remains empty until i hit enter. instead, what seems to be the case is that windows just dont get redrawn, as my terminal appears but doesnt print the command prompt.

i tried rebooting with the kernel parameter nvidia-drm.modeset=0 but the issue persists.

edit: it seems https://bugs.archlinux.org/task/73075  posted by loqs describes the issue perfectly

Last edited by poweredbygamespy (2021-12-19 15:03:04)

Offline

#8 2021-12-19 15:00:04

seth
Member
Registered: 2012-09-03
Posts: 51,940

Re: [SOLVED] Bizarre issues when switching between Xorg and TTY

seth wrote:

Did you try / did this happen w/ xorg-server 1.20.x ?

Online

#9 2021-12-19 15:05:05

poweredbygamespy
Member
Registered: 2021-12-19
Posts: 7

Re: [SOLVED] Bizarre issues when switching between Xorg and TTY

pacman reports 21.1.2-1 as my version for xorg-server

Offline

#10 2021-12-19 15:07:56

seth
Member
Registered: 2012-09-03
Posts: 51,940

Re: [SOLVED] Bizarre issues when switching between Xorg and TTY

Yeah, but the question was whether you expirienced that w/ 1.20 or can still reproduce it w/ that version - because of the bug loqs linked and there also https://bbs.archlinux.org/viewtopic.php?id=272232

Online

#11 2021-12-19 15:47:57

poweredbygamespy
Member
Registered: 2021-12-19
Posts: 7

Re: [SOLVED] Bizarre issues when switching between Xorg and TTY

i downgraded xorg-server and xorg-server-common to 1.20-13. i can get Xorg running but keyboard and mouse arent working so i can't try and switch to a TTY to check. it did ask me to remove packages when i downgraded so that might be the cause for that.

Last edited by poweredbygamespy (2021-12-19 15:51:55)

Offline

#12 2021-12-19 15:56:13

seth
Member
Registered: 2012-09-03
Posts: 51,940

Re: [SOLVED] Bizarre issues when switching between Xorg and TTY

the xf86-input-* packages all predate the 1.21 release, so that 's rather not the cause.

it did ask me to remove packages when i downgraded so that might be the cause for that.

Tail of your pacman log?

Online

#13 2021-12-19 16:01:18

poweredbygamespy
Member
Registered: 2021-12-19
Posts: 7

Re: [SOLVED] Bizarre issues when switching between Xorg and TTY

i set up my wm's autostart to switch to tty2 via chvt, where i could again use my keyboard. the freezing when switching back issue persists on xorg 1.20

edit: the section about the removed packages in the pacman log:

[2021-12-19T16:16:59+0100] [ALPM] transaction started
[2021-12-19T16:16:59+0100] [ALPM] removed xf86-video-vesa (2.5.0-2)
[2021-12-19T16:16:59+0100] [ALPM] removed xf86-input-evdev (2.10.6-3)
[2021-12-19T16:17:00+0100] [ALPM] downgraded xorg-server (21.1.2-1 -> 1.20.13-2)
[2021-12-19T16:17:00+0100] [ALPM] transaction completed

Last edited by poweredbygamespy (2021-12-19 16:03:23)

Offline

#14 2021-12-19 16:36:56

seth
Member
Registered: 2012-09-03
Posts: 51,940

Re: [SOLVED] Bizarre issues when switching between Xorg and TTY

If you had configured your input devices for the evdev driver, removing it has caused the input failure (but should™ not have been required at all - what command did you run?)
Also: why's xorg-server-common not in that list (for a downgrade)?

Online

#15 2021-12-19 16:55:33

poweredbygamespy
Member
Registered: 2021-12-19
Posts: 7

Re: [SOLVED] Bizarre issues when switching between Xorg and TTY

i had downgraded xorg-server-common separately before. once i checked to see if the issue had been resolved, i reinstalled the newest versions.

[2021-12-19T16:10:15+0100] [PACMAN] Running 'pacman -U /var/cache/pacman/pkg/xorg-server-common-1.20.13-2-x86_64.pkg.tar.zst'
[2021-12-19T16:10:29+0100] [ALPM] transaction started
[2021-12-19T16:10:29+0100] [ALPM] downgraded xorg-server-common (21.1.2-1 -> 1.20.13-2)
[2021-12-19T16:10:29+0100] [ALPM] transaction completed
[2021-12-19T16:10:29+0100] [ALPM] running '30-systemd-update.hook'...
[2021-12-19T16:16:56+0100] [PACMAN] Running 'pacman -U /var/cache/pacman/pkg/xorg-server-1.20.13-2-x86_64.pkg.tar.zst'
[2021-12-19T16:16:59+0100] [ALPM] transaction started
[2021-12-19T16:16:59+0100] [ALPM] removed xf86-video-vesa (2.5.0-2)
[2021-12-19T16:16:59+0100] [ALPM] removed xf86-input-evdev (2.10.6-3)
[2021-12-19T16:17:00+0100] [ALPM] downgraded xorg-server (21.1.2-1 -> 1.20.13-2)
[2021-12-19T16:17:00+0100] [ALPM] transaction completed
[2021-12-19T16:17:00+0100] [ALPM] running '30-systemd-update.hook'...
[2021-12-19T16:19:15+0100] [PACMAN] Running 'pacman -Syu'
[2021-12-19T16:19:15+0100] [PACMAN] synchronizing package lists
[2021-12-19T16:19:15+0100] [PACMAN] starting full system upgrade
[2021-12-19T16:19:19+0100] [ALPM] transaction started
[2021-12-19T16:19:19+0100] [ALPM] upgraded xorg-server-common (1.20.13-2 -> 21.1.2-1)
[2021-12-19T16:19:19+0100] [ALPM] upgraded xorg-server (1.20.13-2 -> 21.1.2-1)
[2021-12-19T16:19:19+0100] [ALPM] transaction completed
[2021-12-19T16:19:19+0100] [ALPM] running '30-systemd-update.hook'...

then i changed the autostart script, downgraded, tested and upgraded again. i wasnt prompted to remove evdev this time (in my xorg.conf my mouse is using evdev, my keyboard kbd)

[2021-12-19T16:55:50+0100] [PACMAN] Running 'pacman -U /var/cache/pacman/pkg/xorg-server-common-1.20.13-2-x86_64.pkg.tar.zst'
[2021-12-19T16:55:51+0100] [ALPM] transaction started
[2021-12-19T16:55:51+0100] [ALPM] downgraded xorg-server-common (21.1.2-1 -> 1.20.13-2)
[2021-12-19T16:55:51+0100] [ALPM] transaction completed
[2021-12-19T16:55:51+0100] [ALPM] running '30-systemd-update.hook'...
[2021-12-19T16:55:55+0100] [PACMAN] Running 'pacman -U /var/cache/pacman/pkg/xorg-server-1.20.13-2-x86_64.pkg.tar.zst'
[2021-12-19T16:55:58+0100] [PACMAN] Running 'pacman -U /var/cache/pacman/pkg/xorg-server-1.20.13-2-x86_64.pkg.tar.zst'
[2021-12-19T16:55:59+0100] [ALPM] transaction started
[2021-12-19T16:55:59+0100] [ALPM] downgraded xorg-server (21.1.2-1 -> 1.20.13-2)
[2021-12-19T16:55:59+0100] [ALPM] transaction completed
[2021-12-19T16:55:59+0100] [ALPM] running '30-systemd-update.hook'...
[2021-12-19T16:58:42+0100] [PACMAN] Running 'pacman -Syu'
[2021-12-19T16:58:42+0100] [PACMAN] synchronizing package lists
[2021-12-19T16:58:42+0100] [PACMAN] starting full system upgrade
[2021-12-19T16:58:44+0100] [ALPM] transaction started
[2021-12-19T16:58:44+0100] [ALPM] upgraded xorg-server-common (1.20.13-2 -> 21.1.2-1)
[2021-12-19T16:58:44+0100] [ALPM] upgraded xorg-server (1.20.13-2 -> 21.1.2-1)
[2021-12-19T16:58:44+0100] [ALPM] transaction completed
[2021-12-19T16:58:44+0100] [ALPM] running '30-systemd-update.hook'...

using the newest version of xorg, mouse and keyboard work fine. sorry btw for not posting the full log from the get go

Offline

#16 2021-12-19 20:38:09

mersh
Member
Registered: 2021-12-18
Posts: 18

Re: [SOLVED] Bizarre issues when switching between Xorg and TTY

poweredbygamespy wrote:

i have a similar issue, i also noticed this only recently.

i am running 5.10.87-1-lts, i have an RTX 2060 with nvidia-lts 1:495.46-4.

there are no problems switching from Xorg to a TTY. when i try to switch back, my screen freezes and i have to hard reset my pc.

here's what i noticed: if i kill the Xorg session, rmmod nvidia_drm and start Xorg again i can freely switch between Xorg and the other TTYs. However, i experience similar issues as described by OP, my keyboard appears not to be working. i know it does because i can launch rofi as usual, type a command and have it be executed, even though the prompt remains empty until i hit enter. instead, what seems to be the case is that windows just dont get redrawn, as my terminal appears but doesnt print the command prompt.

i tried rebooting with the kernel parameter nvidia-drm.modeset=0 but the issue persists.

edit: it seems https://bugs.archlinux.org/task/73075  posted by loqs describes the issue perfectly

This person perfectly describes the issue, although I use libinput, not evdev, and I have tried the solutions that seth suggested but have not found any success.

Last edited by mersh (2021-12-19 21:37:33)

Offline

#17 2021-12-19 21:33:06

seth
Member
Registered: 2012-09-03
Posts: 51,940

Re: [SOLVED] Bizarre issues when switching between Xorg and TTY

i wasnt prompted to remove evdev this time (in my xorg.conf my mouse is using evdev, my keyboard kbd)

Because you didn't re-install it.
It's actually ABI bound, so you'd have to downgrade it to 2.10.6-2

Since everyone (?) her is on nvidia and there're known issues w/ 495.46 I'd suggest to try 495.44 despite post #5

Online

#18 2021-12-19 23:57:09

poweredbygamespy
Member
Registered: 2021-12-19
Posts: 7

Re: [SOLVED] Bizarre issues when switching between Xorg and TTY

downgraded to nvidia 495.44 (pacman log, tested with the lts kernel, whose mkinitcpio had no errors), issue persists, which is quite weird. i am 60 percent certain switching between x session and tty worked on that version.

i guess i'll just wait for the fix to https://gitlab.freedesktop.org/xorg/xse … ssues/1271 is released and try again if it doesn't work for me.

Last edited by poweredbygamespy (2021-12-20 00:46:16)

Offline

#19 2021-12-21 13:44:39

nkolew
Member
From: Europe/Sofia
Registered: 2021-10-28
Posts: 2

Re: [SOLVED] Bizarre issues when switching between Xorg and TTY

VT switching and resume freeze on binary nvidia driver fixed in xorg-server and xorg-server-common 21.1.2-2.

Offline

#20 2021-12-21 17:24:02

poweredbygamespy
Member
Registered: 2021-12-19
Posts: 7

Re: [SOLVED] Bizarre issues when switching between Xorg and TTY

same here

Offline

#21 2021-12-22 05:08:13

mersh
Member
Registered: 2021-12-18
Posts: 18

Re: [SOLVED] Bizarre issues when switching between Xorg and TTY

nkolew wrote:

VT switching and resume freeze on binary nvidia driver fixed in xorg-server and xorg-server-common 21.1.2-2.

The xorg-server update solved the issue for me, although the issue remains with Wayland. I'll mark this as solved.

EDIT: Sorry, I tested this with other Wayland compositors and it turns out dwl is the only one with issues. Sorry for the confusion!

Last edited by mersh (2022-01-02 02:56:46)

Offline

Board footer

Powered by FluxBB