Is there a way to have Night Light active on the GDM login screen, prior to any user logging in, using start and end times configured by an admin or root account?

Contents of /etc/gdm3/greeter.dconf-defaults...

# These are the options for the greeter session that can be set 
# through GSettings. Any GSettings setting that is used by the 
# greeter session can be set here.

# Note that you must configure the path used by dconf to store the 
# configuration, not the GSettings path.

# Theming options
# ===============
#  - Change the GTK+ theme
# gtk-theme='Adwaita'
#  - Use another background
# picture-uri='file:///usr/share/themes/Adwaita/backgrounds/stripes.jpg'
# picture-options='zoom'
#  - Or no background at all
# picture-options='none'
# primary-color='#000000'

# Login manager options
# =====================

# - Disable user list
# disable-user-list=true
# - Disable restart buttons
# disable-restart-buttons=true
# - Show a login welcome message
# banner-message-enable=true
# banner-message-text='Welcome'

# Automatic suspend
# =================
# - Time inactive in seconds before suspending with AC power
#   1200=20 minutes, 0=never
# sleep-inactive-ac-timeout=1200
# - What to do after sleep-inactive-ac-timeout
#   'blank', 'suspend', 'shutdown', 'hibernate', 'interactive' or 'nothing'
# sleep-inactive-ac-type='suspend'
# - As above but when on battery
# sleep-inactive-battery-timeout=1200
# sleep-inactive-battery-type='suspend'


This file is a self explanatory


So add the below content at the end of the above file, Change the values from and to, to your wish..


enter image description here

| improve this answer | |
  • I tired this, but it doesn't seem to work... I set night-light-schedule-from=23.0 (11 PM), and night-light-schedule-to=6.0 (6 AM). I tested at 8PM. My user account's night-light is set for sun-down to sun-up. In my test, I expected GDM to ~not~ have night light active. However, night-light was ~on~ in GDM. It seems as if GDM just follows the default settings (sun-down to sun-up), ignoring the greeter.dconf-defaults file? – PJ Singh Oct 3 '19 at 0:08
  • I added the contents of /etc/gdm3/greeter.dconf-defaults in the original question. – PJ Singh Oct 3 '19 at 0:27
  • can you uncomment banner message and put any message and reboot for testing purpose? – UnKNOWn Oct 3 '19 at 0:31
  • askubuntu.com/a/1123747/739431 – UnKNOWn Oct 3 '19 at 0:32
  • I un-commented the banner-message-enable=true and banner-message-text='Welcome'. Then I rebooted. When I click on my user in GDM, the word "Welcome" is displayed at the top. (Note, I only have one user on my system). – PJ Singh Oct 3 '19 at 1:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.