AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 565963
Accepted
Richardplury
Richardplury
Asked: 2014-12-28 08:52:15 +0800 CST2014-12-28 08:52:15 +0800 CST 2014-12-28 08:52:15 +0800 CST

如何在 Redshift 上设置特定温度?

  • 772

我刚切换到 Ubuntu,在 Windows 上我使用的是 f.lux。我能够将温度设置为特定时间并保持不变,它根本不会改变。

现在我安装了 Redshift,我不能再这样做了。有人可以帮忙吗?

color-management
  • 5 5 个回答
  • 55629 Views

5 个回答

  • Voted
  1. Best Answer
    Jacob Vlijm
    2014-12-28T08:57:17+08:002014-12-28T08:57:17+08:00

    您可以从命令行永久设置色温:
    打开(gnome-)terminal,键入命令:

    redshift -O <temperature>
    

    并按下Return

    将其设置为(例如)3700:

    redshift -O 3700
    

    重置为“中性”:

    redshift -x
    

    查看更多(命令行)选项:

    man redshift
    

    (鉴于已安装 Redshift :))

    • 49
  2. Mahmudul Hasan Shohag
    2016-12-27T14:31:40+08:002016-12-27T14:31:40+08:00

    如果你使用redshift-gtk那么@Jacob 的方法将不起作用。

    您需要创建配置文件$HOME/.config/redshift.conf以更改其设置。其官方页面中描述的示例配置文件创建,引用如下:

    配置文件

    可以创建配置文件,但文档有点稀疏。您必须手动创建它并将其放入 ~/.config/redshift.conf。下面是一个配置文件的例子:

    ; Global settings for redshift
    [redshift]
    ; Set the day and night screen temperatures
    temp-day=5700
    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
    ; This can also be set individually for day and night since
    ; version 1.10.
    ;gamma-day=0.8:0.7:0.8
    ;gamma-night=0.6
    
    ; Set the location-provider: 'geoclue', '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=48.1
    lon=11.6
    
    ; 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. If this option is not specified, Redshift will try
    ; to adjust _all_ screens.
    [randr]
    screen=1
    

    另一个示例配置也可以在Ubuntu 文档中找到。

    • 29
  3. Puneet
    2017-05-21T22:19:46+08:002017-05-21T22:19:46+08:00

    对于那些正在寻找这个问题的答案的人“redshift -O例如,当我打字时,它工作了大约一秒钟,然后又回到正常状态……在这种情况下我应该怎么做?”

    尝试 - 转到屏幕顶部 -> redshift 图标 -> 单击启用以禁用它 -> 在终端上输入

    redshift -O <Temperature>
    

    为我工作

    • 4
  4. Wilf
    2017-05-23T09:09:03+08:002017-05-23T09:09:03+08:00

    Redshift GTK(和 normal redshift)可以使用指定运行方式的选项运行:

     redshift-gtk -l 52.6:1.6 -t 5700:3500 -g 0.82 -m randr -v
    

    在上面的命令中使用了这些命令:

    • -l指定您的位置粗略坐标,因此它可以与日出/日落同步。通常 redshift-gtk 会尝试查找您的位置,但这不会起作用,除非您的计算机具有 GPS,因此更容易手动设置,使用地图服务来提供您的位置的近似值(例如使用 OpenStreetMap)
    • -t分别设置屏幕的色温,白天和晚上。
    • -g设置伽玛校正应用
    • -m使用的方法。这可能取决于您的桌面合成器。
    • -b也可用于设置屏幕亮度(另外DAY:NIGHT,值介于.1&之间1。

    这在很大程度上与redshift(并且使用与 中几乎相同的选项man redshift)相同,只是它运行时带有一个图标,因此您可以通过切换到终端将其关闭。Alt您可以在终端、桌面命令启动器(通常是+ )中运行上述命令F2,甚至可以创建一个启动器。

    否则,最好使用 @Mahmudul Hasan Shohag 的回答中的配置文件。

    • 2
  5. Borjovsky
    2020-12-20T11:36:57+08:002020-12-20T11:36:57+08:00

    使用 Debian 10 (KDE),我解决了“1 秒问题”:

    系统设置 > 启动和关机 > 自动启动 > 双击 Redshift > 应用程序 > 将“命令:”行“redshift-gtk”更改为“redshift -O 3700”(不带引号)

    这永久地改变了温度。

    • 0

相关问题

  • 如何在 Ubuntu 系统上校准显示器?

  • 如何更改屏幕的色温?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve