So now the keyboard's backlight is always turned off when I resume from sleep. It was like this once earlier and after that it changed to the brightness = 1 mode, and so now it is again in brightness = 0 mode. I didn't do any changes specificly for the keyboard – it just did that by itself.