LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-01-2018, 03:31 PM   #1
Lysander666
Senior Member
 
Registered: Apr 2017
Location: The Underearth
Distribution: Ubuntu, Debian, Slackware
Posts: 2,178
Blog Entries: 6

Rep: Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470
Redshift transition from day-night extremely slow


This is one of the only issues I'm having with the new build - Redshift again. I have it set to 6500 in the day and 4500 at night. Both look great, but the transition period is the issue.

Presently it's 21.26 and dark here. About ten mins ago Redshift started an extremely slow transition from day to night, which will take it about 45 mins, as it did yesterday. Normally I'm used to the transition taking about 2-3 seconds. It's now at 88% of the transition.

I've tried to see what the issue is and why it can't do it quicker. I think the timing is not a problem so much as the speed.

Here is redshift.conf:

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

; 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 eand times arelevation 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=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.9[Return] [Catalog] [Top] 19 / 13 / 17 / 3 [Upd
;gamma=0.8:0.7:0.8
; This can also be set individually for day and night since
; version 1.10.trhink
;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=51.5
lon=-0.07

; 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
I'm also wondering if this is a timing issue. If it started the transition an hour earlier, that would make sense, but I've never seen it do it so slowly before either way.

Last edited by Lysander666; 08-01-2018 at 03:32 PM.
 
Old 08-01-2018, 03:44 PM   #2
jostber
Member
 
Registered: Jul 2001
Location: Skien, Norway
Distribution: Slackware Current 64-bit
Posts: 543

Rep: Reputation: 178Reputation: 178
Should this line be changed to "gamma 0.9" instead?

gamma=0.9[Return] [Catalog] [Top] 19 / 13 / 17 / 3 [Upd
 
Old 08-01-2018, 03:48 PM   #3
Lysander666
Senior Member
 
Registered: Apr 2017
Location: The Underearth
Distribution: Ubuntu, Debian, Slackware
Posts: 2,178

Original Poster
Blog Entries: 6

Rep: Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470
Quote:
Originally Posted by jostber View Post
Should this line be changed to "gamma 0.9" instead?

gamma=0.9[Return] [Catalog] [Top] 19 / 13 / 17 / 3 [Upd
I don't know how that happened but I've changed it, thanks. It doesn't affect the transition speed though, after restarting Redshift. It's now at 56% of the transition [starting to look a lot nicer now though].
 
Old 08-02-2018, 06:02 AM   #4
Lysander666
Senior Member
 
Registered: Apr 2017
Location: The Underearth
Distribution: Ubuntu, Debian, Slackware
Posts: 2,178

Original Poster
Blog Entries: 6

Rep: Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470
I'm starting to think this issue may be related to the hardware clock. This computer used to run Debian but I have trouble setting the timezone correctly in Slackware. I changed OSs only a few days ago.

e.g. Currently I have the timezone as GMT +2 which makes no sense, but it gives me the right time, even though the hw clock time is correct. Really in Slackware the timezone should be Europe/London in timeconfig, but that makes the time two hours behind what it should be.

I'm going to try syncing the hardware clock to the system time as local time or UTC and seeing if that makes any difference.

Last edited by Lysander666; 08-02-2018 at 06:03 AM.
 
Old 08-02-2018, 08:13 AM   #5
jostber
Member
 
Registered: Jul 2001
Location: Skien, Norway
Distribution: Slackware Current 64-bit
Posts: 543

Rep: Reputation: 178Reputation: 178
If you use KDE you can set it by right-click the clock in the panel and then select "Adjust date and time". There you can set the timezone by selecting this tab. When applying it you might get a KDE error, but it works anyway for me.
 
Old 08-02-2018, 03:19 PM   #6
Lysander666
Senior Member
 
Registered: Apr 2017
Location: The Underearth
Distribution: Ubuntu, Debian, Slackware
Posts: 2,178

Original Poster
Blog Entries: 6

Rep: Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470
This issue was mostly caused by the hardware clock being set to the wrong time. I had to sync it via

Code:
# ntpdate pool.ntp.org
from this page:

https://docs.slackware.com/howtos:ha...tem_local_time

I am guessing this 45 min transition is intentional. Now that the clock is set correctly [and the timezone to Europe/London] Redshift starts to darken the screen at about 8.30pm when it starts to get dark and now, at 9.15, there is 13% of the transition left to go and it looks great.

I notice a minimal change in the old config file from

Code:
; 1 will gradually apply the new screen temperature over a couple of seconds.
https://raw.githubusercontent.com/jo...ft.conf.sample

to

Code:
; 1 will gradually increase or decrease the screen temperature.
http://jonls.dk/redshift/

So I'm guessing this is something to do with a newer version of Redshift.

Last edited by Lysander666; 08-02-2018 at 03:20 PM.
 
Old 08-05-2018, 10:56 AM   #7
jostber
Member
 
Registered: Jul 2001
Location: Skien, Norway
Distribution: Slackware Current 64-bit
Posts: 543

Rep: Reputation: 178Reputation: 178
My redshift changes quite fast. Which redshift version do you use?

redshift -V

redshift 1.11
 
Old 08-05-2018, 10:58 AM   #8
Lysander666
Senior Member
 
Registered: Apr 2017
Location: The Underearth
Distribution: Ubuntu, Debian, Slackware
Posts: 2,178

Original Poster
Blog Entries: 6

Rep: Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470
Quote:
Originally Posted by jostber View Post
My redshift changes quite fast. Which redshift version do you use?

redshift -V

redshift 1.11
This is version 1.12, so I am thinking they changed the transition time.
 
Old 08-05-2018, 12:36 PM   #9
jostber
Member
 
Registered: Jul 2001
Location: Skien, Norway
Distribution: Slackware Current 64-bit
Posts: 543

Rep: Reputation: 178Reputation: 178
I have upgraded to v.1.12 now as well and will check if the transition time has changed.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Redshift – A Nifty Tool to Reduce Eye Strain at Night in Linux LXer Syndicated Linux News 0 05-05-2017 02:52 AM
Any command to Switch Day and night system themes? andrew.comly Linux - Laptop and Netbook 2 10-09-2015 08:03 AM
X server dying at night, freezing during the day roastedmnm SUSE / openSUSE 1 02-28-2007 09:58 AM
LXer: PCs By Day, Supercomputers By Night LXer Syndicated Linux News 0 06-19-2006 08:21 AM
National Makeout Day and Night on Friday smith847be General 2 10-19-2004 04:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration