Score:0

Brightness resetting to 100% on every startup

cn flag

This question has been asked many times by many users, but there is no definate answer and it still remains an open bug even after all this time. This appears to be a problem with Ubuntu on some selected number of laptops. I'm using Ubuntu 20.04 for almost 2 years now, but this problem arose in last 1 or 2 months. Most solutions I have read online regarding this are to run an automated script to lower the brightness on every startup. But that is not a native solution. I would like a permanent fix to this because this bug didn't exist for me before 1-2 months ago. My other laptop which is also running 20.04 doesn't have this issue. I'm running the latest version of Ubuntu 20.04 on Dell 5559 laptop with an SSD.

ggorlen avatar
cn flag
See also [Brightness is reset to maximum on every restart](https://askubuntu.com/questions/151651/brightness-is-reset-to-maximum-on-every-restart)
David avatar
cn flag
Both have the same video card and same driver?
Vin Raghav avatar
cn flag
Both are Dell laptops, but have different hardwares. I have mentioned the one that is having the issue.
David avatar
cn flag
You pointed out the other one does not have this issue so yes the hardware differences especially the video card do matter.
heynnema avatar
ru flag
Please see my answer. If it's helpful, please remember to accept it by clicking on the checkmark icon that appears just to the left of my answer. Thanks!
heynnema avatar
ru flag
Does this answer your question? [Full brightness on startup after the recent update](https://askubuntu.com/questions/1390422/full-brightness-on-startup-after-the-recent-update)
heynnema avatar
ru flag
Status please...
Vin Raghav avatar
cn flag
@heynnema No fix so far.
Score:0
ru flag

The problem is that there's a process that runs at boot, and also at shutdown, that tries to restore/save backlight settings. One some configurations the restore happens incorrectly, and can cause the brightness problem that you see. Here we will add a minor kernel option so that this process doesn't restore an invalid brightness setting.

man systemd-backlight

Rather than using the script that you found, (that I probably wrote), do this:

Edit /etc/default/grub:

sudo -H gedit /etc/default/grub

Locate the line that looks like:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

And change it to:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash systemd.restore_state=0"

sudo update-grub

Set your brightness to the desired level.

reboot

Vin Raghav avatar
cn flag
Could you explain what this will do? Will this impact just the brightness state or everything?
heynnema avatar
ru flag
@VinRaghav I updated my answer. It's a harmless mod that only effects the brightness being restored to an incorrect value at boot time.
Vin Raghav avatar
cn flag
This change won't only affect the brightness, but everything.
heynnema avatar
ru flag
@VinRaghav How do you figure? It only effects the backlight restore at boot time. Did you try it?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.