红移未按预期工作

红移未按预期工作

我正在使用 Kali Linux 并过滤蓝光,我使用以下命令:

redshift -O 3500

但大约一分钟后,屏幕再次恢复默认状态(不再过滤蓝光)。是因为redshift白天不工作(如果是这样,我怎样才能让它在白天工作)还是其他原因?

答案1

用户配置文件应位于:

~/.config/redshift/redshift.conf

如果不存在,请创建它,或者根据您的喜好进行编辑。


我的 GPS 已编辑的示例,包括我的更多注释:

[redshift]

; Global settings file for Redshift application.

; Location provider for solar elevation.
; ------------------------------------------------------------------------------
; Set the location-provider: 'geoclue2' or 'manual'.
; The actual provider settings are in a separate section.
location-provider=manual


; Smooth fade between temperatures when Redshift starts and stops.
; ------------------------------------------------------------------------------
; 0 causes an immediate change between screen temperatures.
; 1 gradually applies the new screen temperature over a couple of seconds.
fade=0


; 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


; Day and night screen temperatures.
; ------------------------------------------------------------------------------
; Default temperatures in K (Kelvin):
; Day time   : 6500
; Night time : 4500
temp-day=7500
temp-night=5500


; Custom dawn / dusk times.
; ------------------------------------------------------------------------------
; 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=05:00
;dusk-time=16:00


; The adjustment method: 'randr', 'vidmode'.
; ------------------------------------------------------------------------------
; This has changed since the 1.12 version in favor of randr,
; formerly vidmode has mostly been used from what I read.
adjustment-method=randr


; Manual GPS of the location for solar elevation.
; ------------------------------------------------------------------------------
; Standard longitude and latitude coordinates.
[manual]
lat=xx.8111306
lon=yy.1414300


; Adjustment method settings.
; ------------------------------------------------------------------------------
; Note that the numbering starts from 0, so 1 is actually the second screen.
; This actually works for all monitors, needs clarification!
[randr]
screen=0

之后,我建议从 shell 中以详细模式 ( -v) 运行它以可能调试问题。

答案2

  1. 使用以下命令安装所需的软件包:

    sudo apt install redshift geoclue-2.0

  2. 使用以下 URL 查找您所在位置的纬度/经度:

    https://geotargetly.com/my-ip-geolocation

  3. Redshift 用法: redshift-gtk -l 纬度:经度 -t 白天温度:夜间温度

  4. 打开终端并输入以下命令,根据您的要求更改纬度:经度和温度。前任:

    须藤 redshift-gtk -l 266.727101:108.395286 -t 4000:3400

  5. 关闭终端

相关内容