I edited the file /etc/X11/xorg.conf.d/90-keyboard-layout.conf:
Section "InputClass"
Identifier "keyboard-all"
MatchIsKeyboard "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Option "XkbLayout" "us,ru"
#Option "XkbVariant" ""
Option "XKbOptions" "grp:alt_shift_toggle,grp_led:scroll"
Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection
When the layout is "US", scroll lock diode is turned on. When the layout is "RU", it's turned off.
Everything works correctly, but when I turn off the PC, scroll lock stays turned on. Is it possible to turn it off, when the PC is shut-down?