Troubleshooting guide
How to fix the problem
System Settings > Displays or Battery - View the auto-brightness and power-saving options, if available.
If the problem persists
Separate auto-brightness from battery-powered screen dimming. An external monitor can additionally be dimmed by its own power saving setting.
Request a repair