i had similar issue, it turned out that my screen had a light sensor that dimmed the screen wheter i wanted to or not
i was unable to adjust it with settings or anything
so i went to device manager, found the sensor and simply turned it off
now everything works fine.