Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redshift on ubuntu 17.10 #543

Closed
vertexLord opened this issue Oct 20, 2017 · 14 comments
Closed

redshift on ubuntu 17.10 #543

vertexLord opened this issue Oct 20, 2017 · 14 comments
Labels

Comments

@vertexLord
Copy link

vertexLord commented Oct 20, 2017

Switched to ubuntu 17.10 and installed redshift-gtk via

apt-get install redshift-gtk

After launch it just doesn't do anything. Am I being stupid here or is this
a gnome thing?

@jonls
Copy link
Owner

jonls commented Oct 20, 2017

This is probably because Ubuntu 17.10 defaults to Wayland which Redshift cannot support at the moment. If you're using GNOME you can try the built-in Night Light feature instead of using Redshift.

@jonls jonls added the question label Oct 20, 2017
@select
Copy link

select commented Nov 3, 2017

Hey thanks, but I really wish I had redshift back. The gamma and brighness settings made quite a difference :D

@stefanos82
Copy link

stefanos82 commented Nov 7, 2017

I had the same problem on my system (Debian). The issue is with geoclue-2.0 package and I resolved my issue by manually creating a redshift.conf file under $HOME/.config directory with my own settings.

UPDATE as of 30-04-2017: As @ciskeboekelo has kindly suggested to mention it here, to clarify one thing: please provide your country's latitude and longitude right below [manual], after you copy the config settings.

Now I can use it without depending on geoclue-2.0:

; Global settings for redshift
[redshift]
; Set the day and night screen temperatures
temp-day=5700
temp-night=3500

; Enable/Disable a smooth transition between day and night
; 0 will cause a direct change from day to night screen temperature.
; 1 will gradually increase or decrease the screen temperature.
transition=1

; Set the screen brightness. Default is 1.0.
;brightness=0.9
; It is also possible to use different settings for day and night
; since version 1.8.
;brightness-day=0.7
;brightness-night=0.4
; Set the screen gamma (for all colors, or each color channel
; individually)
gamma=0.8

;gamma=0.8:0.7:0.8
; This can also be set individually for day and night since
; version 1.10.
;gamma-day=0.8:0.7:0.8
;gamma-night=0.6

; Set the location-provider: 'geoclue', 'geoclue2', 'manual'
; type 'redshift -l list' to see possible values.
; The location provider settings are in a different section.
location-provider=manual

; Set the adjustment-method: 'randr', 'vidmode'
; type 'redshift -m list' to see all possible values.
; 'randr' is the preferred method, 'vidmode' is an older API.
; but works in some cases when 'randr' does not.
; The adjustment method settings are in a different section.
adjustment-method=randr

; Configuration of the location-provider:
; type 'redshift -l PROVIDER:help' to see the settings.
; ex: 'redshift -l manual:help'
; Keep in mind that longitudes west of Greenwich (e.g. the Americas)
; are negative numbers.
[manual]
lat=<your country's latitude>
lon=<your country's longitude>
; Find more about your country's / city's geolocation from http://www.geonames.org/
; Configuration of the adjustment-method
; type 'redshift -m METHOD:help' to see the settings.
; ex: 'redshift -m randr:help'
; In this example, randr is configured to adjust screen 1.
; Note that the numbering starts from 0, so this is actually the
; second screen. If this option is not specified, Redshift will try
; to adjust _all_ screens.
[randr]
screen=0

@Russell-Jones
Copy link

See also
Settings > Devices > Displays > Night Light

@MaxValue
Copy link

MaxValue commented Jan 15, 2018

I have the same problem. I couldn't even turn of the geoclue-2.0 provider, because redshift just takes the built-in default values (meaning it does not create a config file at ~/.config/redshift.conf), tries to start, fails and shows this error:

screenshot from 2018-01-15 17-57-19

Suggestion: Copy the default config file to the users dir if it does not exist, before even running. This way users can change the defaults if redshift should crash because of those.

Solution for Wayland Problems: If you can ditch Wayland permanently like me, see this answer.

@intrepidclass
Copy link

Thank you @stefanos82 ! your config worked for me :-)
Might be good to mention that you've left the latitude and longitude up to the user to insert /edit it. I blindly copied your config and it took me a while before I realized that that was causing it not to run.

@stefanos82
Copy link

No worries mate. Oh I have mentioned that right below [manual].

@intrepidclass
Copy link

Oh, yeah I meant mention it above or below of the config file paste, since people like me, looking for the quickest possible fix, won't read a whole config file like that until we're desperate. ;-)

@stefanos82
Copy link

@ciskeboekelo Done.

@intrepidclass
Copy link

@stefanos82 Awesome.

@rubo77
Copy link

rubo77 commented May 8, 2018

I used your script and now it starts. also the information page sais color temperature should be now at 3500 but it doesn't work!

the color is not changing!

Do I have to restart the computer for it to work?

@intrepidclass
Copy link

intrepidclass commented May 8, 2018 via email

@rubo77
Copy link

rubo77 commented May 9, 2018

It doesn't work at my laptop using Wayland.

If I log out and use xorg desktop, it works fine as expected.

@jonls
Copy link
Owner

jonls commented May 9, 2018

@rubo77 This is expected, Wayland doesn't support Redshift: https://github.com/jonls/redshift/blob/master/README.md#faq. Both the Wayland issue and then geoclue issue should be documented in the FAQ now.

@jonls jonls closed this as completed May 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants