I am using Xubuntu 16.04

In Ubuntu there is the option to enable night mode from Display in Gnome Control Center

In my Xubuntu I have installed Gnome Control Center

But over there the Display option shows

Could not get Screen Information

So how can I enable night mode in my Xubuntu?


1 Answer 1


The following instructions will not enable gnomes night mode. But will allow a nearly indistinguishable effect.

Install redshift

sudo apt-get install redshift redshift-gtk

Edit GeoClue's config

sudo nano /etc/geoclue/geoclue.conf

Append the following lines to /etc/geoclue/geoclue.conf


Configure redshift

Example of a manual config, for Copenhagen, Denmark. See Redshift homepage for an additional config example. Comment out or change the latitude and longitude for you location.
nano ~/.config/redshift.conf


  • 1
    In your answer you have not mention whether latitude is N or S and also whether longitude is E or W. How to mention so?
    – Sonevol
    Nov 16, 2017 at 23:01
  • 2
    South or west would be denoted by a negative latitude or longitude. For instance Lima, Peru would be lat=-12.0 lon=-77.0
    – J. Starnes
    Nov 16, 2017 at 23:15
  • Do I really need to setup GeoClue if I define the location in the redshift.conf manually? Apr 27, 2018 at 7:19
  • 1
    One method or the other will do. For a laptop geoclue may be advantageous as it would adjust for different locations
    – J. Starnes
    Apr 27, 2018 at 15:56
  • Solid this works for xubuntu where I was having issues before. Thanks. Dec 11, 2019 at 2:19

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.