]> git.ipfire.org Git - thirdparty/systemd.git/commit
logind: fix abnormal switching causing the screen to go black
authorxinpeng wang <wangxinpeng@uniontech.com>
Wed, 25 Oct 2023 03:19:58 +0000 (11:19 +0800)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 27 Oct 2023 09:19:58 +0000 (10:19 +0100)
commit2f1d1140101268e69204ec62dd9abb8ead4b48c8
tree23a271e64e29375fd385668e881100a4aedd4aa7
parent2b4cdac91af875aba98d55901c344daf13d8c23a
logind: fix abnormal switching causing the screen to go black

After logind receives the SIGRTMIN signal from the kernel, it will execute
manager_vt_switch---session_leave_vt---session_device_pause_all,The device
permissions of the session are removed here;under normal circumstances, the
tty value read from /sys/class/tty/tty0/active changes and switchesto a new
session,give the new session resume device permissions.
But under abnormal circumstances (such as switching quickly on a device using
wayland; and sometimes the kernel will suddenly send a SIGRTMIN signal, but
nothing changes),In these cases, logind does not give session resume device
permission, causing the device to have a black screen and suspended animation.
src/login/logind-seat.c