I solved this problem by disabling "Slightly dim the display while on battery power" option in the Settings > Battery
Topic:
App & System Services
SubTopic:
Core OS
Tags: