This is not a bug in the kernel/config. The reason is in the xrandr. Adding --brightness=1.0 to xrandr arguments solves the problem. This reverts commit 94ac5e3703.
94ac5e3703