The keyboard led lights and the keyboard lock state are inconsistent
When the desktop environment and tty environment are switched, the keyboard indicator is inconsistent with the state of the keyboard lock.
xorg (assuming the tty1 bound by xorg) and the kernel tty control the keyboard independently. If other ttys are set with keyboard lights, the status of the keyboard lights may be incorrect when entering the desktop environment again. In order to ensure that the keyboard indicator status is normal when switching from other tty to the desktop environment, xorg needs to resend the previously saved keyboard indicator configuration to the input device at this time. !764