본문 바로가기
리눅스

Redshift (software)

by 다움위키 2024. 2. 5.

Redshift는 하루 중 시간에 따라 컴퓨터 디스플레이색온도를 조정하는 응용 프로그램입니다. 이 프로그램은 자유 소프트웨어이고, 눈의 피로와 불면증을 줄이기 위한 것입니다 (Sleep#Circadian clockPhase response curve#Light 참조).

Redshift는 컴퓨터 디스플레이의 색온도를 낮과 밤 온도 사이에서 균등하게 전환하여 사용자의 눈이 천천히 적응할 수 있도록 합니다. 밤에는 색온도가 낮고 일반적으로 3000~4000K로 실내 조명 온도와 일치하는 것이 좋습니다. 주간의 일반적인 색온도는 5500~6500K입니다.

Features

Redshift는 주로 리눅스 운영 시스템에 배포되고 사용됩니다.

Redshift를 사용하여 단일 색온도 및 밝기 ("원샷 모드")를 설정하거나 태양의 고도에 따라 온도와 밝기를 지속적으로 조정할 수 있습니다. 이 경우 황혼 근처의 야간 색온도 설정으로 전환됩니다. 주간 및 야간의 온도와 밝기 설정을 사용자가 구성할 수 있습니다.

태양의 고도를 결정하려면 소프트웨어에 위도와 경도 형태의 사용자 위치가 필요합니다.

리눅스와 BSD 운영 시스템에서 Redshift는 X 확장 RandR (선호) 또는 VidMode를 통해 또는 Direct Rendering Manager를 통해 다중 모니터를 지원합니다. Redshift는 제어하는 모든 모니터에서 동일한 감마 보정을 사용하도록만 구성할 수 있으므로 일반적으로 모니터당 하나의 프로그램 인스턴스를 실행하는 것이 바람직합니다.

Installation

데비안 저장소에서 설치할 수 있습니다.

  • sudo apt install redshift redshift-gtk

Configurations

아래 내용을 ~/.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.9:0.8:0.9
gamma-night=0.9

; 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]
lon=126.59
lat=37.34

; 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=0

다른 서버에서 위치 정보를 읽어오는 것이 어떨지 몰라서 서울의 위치를 사용해서 설정했습니다.

여기서 감마 값을 설정하는 것이 쉽지 않습니다. 잘 조절할 필요가 있습니다.

External links