Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information