4

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?

8

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

[redshift]
allowed=true
system=false
users=

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

[redshift]
temp-day=6500
temp-night=3700
location-provider=manual

[manual]
lat=55.7
lon=12.6
  • 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 '17 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 '17 at 23:15
  • Do I really need to setup GeoClue if I define the location in the redshift.conf manually? – thomas.mc.work Apr 27 '18 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 '18 at 15:56

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.