尝试运行/自动启动 redshift 时出现“配置文件中的部分之外的分配。”错误

尝试运行/自动启动 redshift 时出现“配置文件中的部分之外的分配。”错误

我已经创建了一个配置文件指示在页面底部,我创建了一个如下文件。

; Global settings for redshift
[redshift]
; Set the day and night screen temperatures
temp-day=6700
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

; Set the location-provider: 'geoclue', 'gnome-clock', '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
; e.g. 'redshift -l manual:help'
[manual]
lat=52.0
lon=1.4

; 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.
[randr]
screen=1

当我跑步时gtk redshift,我得到:Assignment outside section in config file. Unable to load config file.

做什么?

答案1

我将其保存在鼠标垫中,并将语音设置为 =0,因为我有 1 个显示器。我有一个用于红移的图形等离子体设置,它具有与配置文件不同的值(并且可以应用它们),但现在我已将它们更改为相同。

我重新启动了计算机,redshift 现在出现在任务栏上并且可以运行。

相关内容