How do I enable night mode in display of Xubuntu?

14,054

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
Share:
14,054
Sonevol
Author by

Sonevol

Sexually I am transsexual lesbian. Please consider me to be female and address me by "she" and "her" and be compassionate to my feelings. Pets are my love and my pet Bhutu (female balck and white tuxedo cat) means everything to me. Also I love my mom, my grand-mom and the girl named Puja. I also love the two children which Puja has. We six are almost family. I like UNIX and UNIX based operating systems. I love to play around with Linux and learn newer things. Professionally I am front end web developer working independently. Also I am a weed addict.

Updated on September 18, 2022

Comments

  • Sonevol
    Sonevol over 1 year

    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?

  • Sonevol
    Sonevol over 6 years
    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?
  • J. Starnes
    J. Starnes over 6 years
    South or west would be denoted by a negative latitude or longitude. For instance Lima, Peru would be lat=-12.0 lon=-77.0
  • thomas.mc.work
    thomas.mc.work about 6 years
    Do I really need to setup GeoClue if I define the location in the redshift.conf manually?
  • J. Starnes
    J. Starnes about 6 years
    One method or the other will do. For a laptop geoclue may be advantageous as it would adjust for different locations
  • Neal Barsch
    Neal Barsch over 4 years
    Solid this works for xubuntu where I was having issues before. Thanks.