So this is not a bug, it's Intel's Display Power Saving Technology that dims the display based on brightness of dispalyed content. This feature is enabled by default when the laptop is on battery.
To disable it you need to install Intel's graphics media control panel and go to Power tab, select...