首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >红移不按预期工作

红移不按预期工作
EN

Unix & Linux用户
提问于 2021-05-06 12:58:50
回答 2查看 403关注 0票数 1

我使用的是Kali Linux,为了过滤蓝光,我使用以下命令:

代码语言:javascript
运行
复制
redshift -O 3500

但大约一分钟后,屏幕又回到默认状态(不再过滤蓝光)。是因为redshift在白天不工作(如果是的话,我怎样才能让它在白天工作)或者别的什么?

EN

回答 2

Unix & Linux用户

回答已采纳

发布于 2021-05-06 14:25:04

用户配置文件应位于:

代码语言:javascript
运行
复制
~/.config/redshift/redshift.conf

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

例如,我的GPS被编辑了,包括更多我的笔记:

代码语言:javascript
运行
复制
[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

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

票数 1
EN

Unix & Linux用户

发布于 2022-08-13 03:05:26

  1. 使用以下命令安装所需的软件包: sudo apt安装redshift Geo线索-2.0
  2. 使用以下网址:https://geotargetly.com/my-ip-geolocation查找您的位置:纬度/经度
  3. 红移用法:红移-gtk -l纬度:经度-t Day_temperature:Night_temperature
  4. 打开终端并键入以下命令,根据需要更改纬度:经度和温度。例:数独红移-gtk -l 266.727101:108.395286 -t 4000:3400
  5. 关闭终端
票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/648416

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档