# Auto brightness at GDM login screen

**URL:** https://discourse.nixos.org/t/auto-brightness-at-gdm-login-screen/49605
**Category:** Help
**Created:** [July 24, 2024, 11:52pm UTC](https://discourse.nixos.org/t/auto-brightness-at-gdm-login-screen/49605 "2024-07-24T23:52:03Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![arunoruto](https://discourse.nixos.org/user_avatar/discourse.nixos.org/arunoruto/32/27432_2.png) [@arunoruto](https://discourse.nixos.org/u/arunoruto)
#### Post date: [July 24, 2024, 11:52pm UTC](https://discourse.nixos.org/t/auto-brightness-at-gdm-login-screen/49605/1 "2024-07-24T23:52:03Z")

</div>

I am not sure when it started, but probably when I moved my NixOS config to flakes, I started noticing brightness changes on my login screen. It seems like it uses the built in ambient sensor, and I was able to disable it in my user settings just fine, but it drives me crazy on the login screen, especially since I have to change the brightness when I log into my account!

It would be amazing if I could somehow change the dconf option `[org/gnome/settings-daemon/plugins/power]` to `ambient-enabled=false` for the gdm user, but I am not sure how…

---

<div class="post-metadata">

### Author: ![jtojnar](https://discourse.nixos.org/user_avatar/discourse.nixos.org/jtojnar/32/70_2.png) [@jtojnar](https://discourse.nixos.org/u/jtojnar)
#### Post date: [July 25, 2024, 4:38am UTC](https://discourse.nixos.org/t/auto-brightness-at-gdm-login-screen/49605/2 "2024-07-25T04:38:39Z")

</div>

See [Changing GDM `gsettings` decoratively](https://discourse.nixos.org/t/changing-gdm-gsettings-decoratively/49579)

---

<div class="post-metadata">

### Author: ![arunoruto](https://discourse.nixos.org/user_avatar/discourse.nixos.org/arunoruto/32/27432_2.png) [@arunoruto](https://discourse.nixos.org/u/arunoruto)
#### Post date: [July 25, 2024, 10:53am UTC](https://discourse.nixos.org/t/auto-brightness-at-gdm-login-screen/49605/3 "2024-07-25T10:53:59Z")

</div>

Thanks a lot!  
I finally found a solution to this problem:

```auto
programs.dconf.profiles.gdm.databases = [
        {
          settings."org/gnome/settings-daemon/plugins/power" = {
            ambient-enabled = false;
          };
        }
];

```

By adding this config snippet, the brightness doesn’t change anymore!
