Hi,
You may want to check the Power Option of your laptop. Its where you can adjust the brightness of you're laptop depending if it's connected or not to it's charger.
- Go to Control Panel and look for Power Options
- Once in it click on Change plan settings depending on which power plan is selected
- From there you can adjust it depending on your preference.