Redshift not working

Message
Author
Stuart_M
Posts: 699
Joined: Wed Aug 07, 2019 7:10 pm

Re: Redshift not working

#11 Post by Stuart_M »

Yea, the problem is redshift is not getting your location from geoclue.

I just saw the redshift GitHub page (Issues tab) https://github.com/jonls/redshift/issues/805 with a couple posts only a couple days old saying that they are have having problems with geoclue being unable to determine their location using a wired or wireless network connection. I don't know if this has anything to do with your problem. That issue seems to be relevant to this https://bugs.debian.org/cgi-bin/bugrepo ... bug=978437 Debian Bug report which is about the geoclue-2.0 upgrade from 2.5.6-1 to 2.5.7-1. Since we are using v2.5.2-1 in MX Linux, maybe this has nothing to do with us...

Aside from the above, as a test try running

Code: Select all

redshift -l [LAT:LON]
where LAT is your latitude and LON is you longtitude. Using the coordinates for Copenhagen, Denmark as an example, it would look like this:

Code: Select all

redshift -l 55.7:12.6
There are many sites to find your latitude/longtitude. This https://www.whatsmygps.com/ is one.

Remember, a manual configuration file would probably eliminate the problem.

EDIT: Please note that longitudes west of Greenwich, England are negative numbers. So using Texas, U.S. as an example, 31.8:-98.8 would be used.

Stuart_M
Posts: 699
Joined: Wed Aug 07, 2019 7:10 pm

Re: Redshift not working

#12 Post by Stuart_M »

Quoting myself:
Stuart_M wrote: Thu Feb 11, 2021 3:31 pm I just saw the redshift GitHub page (Issues tab) https://github.com/jonls/redshift/issues/805 with a couple posts only a couple days old saying that they are have having problems with geoclue being unable to determine their location using a wired or wireless network connection. I don't know if this has anything to do with your problem. That issue seems to be relevant to this https://bugs.debian.org/cgi-bin/bugrepo ... bug=978437 Debian Bug report which is about the geoclue-2.0 upgrade from 2.5.6-1 to 2.5.7-1. Since we are using v2.5.2-1 in MX Linux, maybe this has nothing to do with us...
I just noticed that geoclue-2.0 was upgraded on 6 February 2021 from 2.5.2-1 to 2.5.2-1+deb10u1.

If your problem with redshift getting its location began after that update, would that just be a coincidence ?

User avatar
vinoman
Posts: 61
Joined: Sun Dec 23, 2007 8:53 pm

Re: Redshift not working

#13 Post by vinoman »

Right now I resinstalled it and now its fluttering light and darker. I uninstalled it and until they can make Redshift work properly by just installing its not worth the trouble.
Xfce needs a night light app like Gnome uses. It's far better than Redshift.

User avatar
JayM
Posts: 6796
Joined: Tue Jan 08, 2019 3:47 am

Re: Redshift not working

#14 Post by JayM »

redshift-gtk (which is the package you want as it has a GUI, but if you've already installed the package named "redshift" you would have to uninstall it before installing redshift-gtk to avoid conflicts) works for me if I install it from MX Package Installer and also check the box to install recommends. One of its recommended packages is geoclue-2.0 which will find your latitude and longitude for redshift, otherwise you would have to find a default config file's contents on redshift's github page, copy it, create your own config file, paste the default contents then tweak it a lot. Doing this is "above my pay grade" so I always just used geoclue.

The package named fluxgui, which installs f.lux along with a GUI wrapper for it, also works and does the same thing that redshift does once you configure it by entering your latitude and longitude. However, f.lux only has a few color temperature presets you can choose from while I think redshift offers more flexibility in that regard but it's been awhile since I used it so I'm not sure. I'm currently using f.lux and it seems to work OK for me, though I've used redshift with geoclue in the past and that worked OK too. Give fluxgui a try.
Last edited by JayM on Fri Feb 12, 2021 10:04 pm, edited 5 times in total.
Please read the Forum Rules, How To Ask For Help, How to Break Your System and Don't Break Debian. Always include your full Quick System Info (QSI) with each and every new help request.

User avatar
junoluna
Posts: 522
Joined: Sun Sep 29, 2019 11:53 pm

Re: Redshift not working

#15 Post by junoluna »

redshift works well for me on all my machines

i did have that flicker on one of them at first ... i think it was caused by a second instance of redshift running at the same time .... maybe a gtk-redshift process that i had to kill
Last edited by junoluna on Fri Feb 12, 2021 8:19 am, edited 1 time in total.

User avatar
JayM
Posts: 6796
Joined: Tue Jan 08, 2019 3:47 am

Re: Redshift not working

#16 Post by JayM »

FYI I just disabled f.lux and also its Application Autostart entry, installed redshift-gtk with recommends and tested it. I got an error message that geoclue couldn't find my location and that redshift didn't have permission to use geoclue, but after I logged out and back in I no longer get the errors and geoclue can find my location. I'll have to wait about 5 hours or so to actually test it though, as it's still early afternoon here.
Please read the Forum Rules, How To Ask For Help, How to Break Your System and Don't Break Debian. Always include your full Quick System Info (QSI) with each and every new help request.

User avatar
JayM
Posts: 6796
Joined: Tue Jan 08, 2019 3:47 am

Re: Redshift not working

#17 Post by JayM »

Okay, it's night here and it appears that the problem may be with geoclue2. Redshift-gtk can find my lat/long during the day but for some reason it can't now. If I change its location-provider to manual instead of geoclue2 in redshift.conf and enter the correct lat & long it works.

Close redshift-gtk by right-clicking its icon in your notification area of the panel
Create a directory in ~/.config named redshift
Create a file inside that directory named redshift.conf
Paste the following in it:

Code: Select all

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

; Disable the smooth fade between temperatures when Redshift starts and stops.
; 0 will cause an immediate change between screen temperatures.
; 1 will gradually apply the new screen temperature over a couple of seconds.
fade=1

; Solar elevation thresholds.
; By default, Redshift will use the current elevation of the sun to determine
; whether it is daytime, night or in transition (dawn/dusk). When the sun is
; above the degrees specified with elevation-high it is considered daytime and
; below elevation-low it is considered night.
;elevation-high=3
;elevation-low=-6

; Custom dawn/dusk intervals.
; Instead of using the solar elevation, the time intervals of dawn and dusk
; can be specified manually. The times must be specified as HH:MM in 24-hour
; format.
;dawn-time=6:00-7:45
;dusk-time=18:35-20:15

; Set the screen brightness. Default is 1.0.
brightness=1.0
; 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: '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=10.327970
lon=123.941110

; 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 only screen 0.
; Note that the numbering starts from 0, so this is actually the first screen.
; If this option is not specified, Redshift will try to adjust _all_ screens.
[randr]
;screen=0
Change lines 60 and 61 to your own latitude and longitude as found from https://www.latlong.net/
Save your changes to the .conf file.
Start redshift from the menu, Accessories -> Redshift and it will work.

You can quit redshift then edit redshift.conf to change the "temp-night" value to a cooler or warmer temperature (more or less blue light) by entering a higher or lower number respectively. BTW the value of 6500 for temp-day is that of a normal computer monitor per https://iristech.co/what-is-the-best-color-temperature/. Also note that by default redshift slowly fades from one temperature to another over a short period of time. There's a setting in redshift.conf to make it change instantly if you prefer, so you can see changes right away. (The first attached image shows my latitude/longitude as found by geoclue2, the second shows my manual entries as per the website I linked to.)
You do not have the required permissions to view the files attached to this post.
Last edited by JayM on Fri Feb 12, 2021 8:43 pm, edited 2 times in total.
Please read the Forum Rules, How To Ask For Help, How to Break Your System and Don't Break Debian. Always include your full Quick System Info (QSI) with each and every new help request.

User avatar
junoluna
Posts: 522
Joined: Sun Sep 29, 2019 11:53 pm

Re: Redshift not working

#18 Post by junoluna »

^
@JayM

really great instructions for making it manual .... much better for me since i use a vpn a lot and geoclue puts me wherever that puts me

works well

thanks
Last edited by junoluna on Fri Feb 12, 2021 9:24 am, edited 1 time in total.

User avatar
junoluna
Posts: 522
Joined: Sun Sep 29, 2019 11:53 pm

Re: Redshift not working

#19 Post by junoluna »

sorry ... quoted instead of editing

User avatar
vinoman
Posts: 61
Joined: Sun Dec 23, 2007 8:53 pm

Re: Redshift not working

#20 Post by vinoman »

Thanks for all the advice, but Redshift still needs work. Are there other apps that dim the screen? Gnome's Night Light is the only good one at this point that I have seen.

Post Reply

Return to “XFCE Desktop Environment”