我对Redshift有很多问题。
第一个问题与两个Redshift实例同时运行有关。在GNOME系统监视器中有五个进程,如这幅图像中所示,但我认为有两个实例,因为我在系统托盘中看到了两个图标,如这里所示,它们都类似于两个实例。例如,如果我把我的redshift.conf文件放在~/.config中,然后重新启动,两个人就会互相争斗,在白天不断地从红色变成没有红色。
但是,如果我重新安装Redshift,那么只有一个实例。当我重新启动时,问题就出现了。
下一个问题与我的redshift.conf文件有关。我正确地设置了它,正确的lat和lon,都是阴性的,因为我住在美洲。但是,无论白天,红度效应都是适用的。这发生在一个Redshift实例中。我已经在上面描述过两种情况下的情况。
最后,红移回来后,我关闭它,即使是在自动启动禁用。例如,如果我点击“退出”,红色效果消失(如果有的话),系统托盘中的图标消失,然后出现一个新的图标,如果适用的话,红色效果也会消失。当有两个实例和只有一个实例时,就会发生这种情况。
一些值得注意的事情是,我在Lubuntu21.04上,我安装了状态图标程序,通过发现控制Redshift和Redshift本身。
另外,下面是redshift.conf文件的内容:
[redshift]
; Set the day and night screen temperatures
temp-day=5800
temp-night=4800
; 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.9
;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=-35
lon=-55
; 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=0有什么想法吗?
发布于 2021-06-27 14:58:36
在从20.10升级到21.04之后,我也遇到了同样的问题。
似乎有一个由systemd启动的实例(该实例多次崩溃并重新启动)和一个通过应用程序本身启动的实例(它创建了一个条目~/.config/autostart/redshift-gtk.desktop)。
通过删除redshift-gtk.desktop,闪烁停止,但redshift-gtk仍然崩溃。我假设它不是很早就开始了,就是缺少了一个DISPLAY变量。
我很难从系统中删除红移。禁用或掩蔽redshift-gtk.service无效。还在启动时坠毁了。我发现您必须通过以下方法禁用该服务:
sudo systemctl --global disable redshift-gtk
sudo systemctl --global disable redshift如果您然后通过~/.config/autostart/redshift-gtk.desktop启用了自动启动,它就会像预期的那样工作。
https://askubuntu.com/questions/1342548
复制相似问题