LINUX

Cómo instalar y usar Redshift Ubuntu 16.04

Redshift es una herramienta inspirada en flujo se utiliza para ajustar la temperatura de color de su pantalla de acuerdo con su entorno.

Hace que el color de la pantalla se adapte a la hora del día, como la luz del sol durante el día y el calor durante la noche. En este artículo cubrimos cómo instalar y usar redshift en Ubuntu 16.04.

Esto ayudará al usuario a reducir la fatiga y la fatiga visual. Puede imaginar que si está trabajando en un proyecto de noche con un brillo en la pantalla similar al de la luz solar, esto podría tener efectos adversos en el ojo. Cuando use Redshift, por la noche, establecerá la temperatura de color para que coincida con las lámparas de su habitación, lo que reducirá la radiación de luz azul de la pantalla durante la noche.

Redshift permite que sus ojos se adapten lentamente, por ejemplo, durante las primeras horas de la mañana, la temperatura del color cambia suavemente de la noche a la diurna para permitir que sus ojos se adapten lentamente. Por la noche, Redshift establece la temperatura del color en un valor predeterminado de 3700K y 5500K durante el día.

Lectura relacionada:

Puntos a tener en cuenta:

  1. Redshift no es compatible con Wayland, ya que no ofrece ninguna forma de ajustar la temperatura del color.
  2. GNOME proporciona funciones como Redshift listas para usar y tiene soporte para Wayland.

Instalación de Redshift en Ubuntu 16.04

Puede instalar Redshift en Ubuntu usando el upstream apto administrador de paquetes, usando ppao compilando la aplicación a partir de archivos fuente. Lo que prefieras funcionará bien. Veamos estas dos formas de instalar Redshift, a través de apt y compilando desde la fuente.

Instalación de Redshift usando el administrador de paquetes apt

La forma más fácil de poner en marcha el desplazamiento al rojo en Ubuntu 16.04 es mediante el método de instalación apto. El paquete a instalar es redshift o redshift-gtk. Si realiza una búsqueda de paquetes en Ubuntu 16.04 con el prefijo de nombre redshift, obtendrá:

# apt-cache search redshift
gnome-shell-extension-redshift - redshift extension for GNOME Shell
gtk-redshift - transitional dummy package
plasma-applet-redshift-control - Adjusts the color temperature of your screen
plasma-widget-redshift - Plasma widget for Redshift
plasma-widget-redshift-dbg - Plasma widget for Redshift - debugging symbols
redshift - Adjusts the color temperature of your screen
redshift-gtk - Adjusts the color temperature of your screen with GTK+ integration

El entorno de escritorio predeterminado en Ubuntu es la unidad, por lo que instalaremos los paquetes redshift y redshift-gtk para la interfaz de usuario.

$ sudo apt-get install redshift redshift-gtk

Si tiene un entorno de escritorio KDE, los paquetes adicionales que debería considerar instalar son plasma-applet-redshift-control y plasma-widget-redshift, simplemente por:

$ sudo apt-get install plasma-widget-redshift plasma-applet-redshift-control

Instalación de Redshift desde ppa

Otra forma de instalar Redshift, especialmente la última versión, es a través de ppa proporcionada por dobey

# sudo add-apt-repository ppa:dobey/redshift-daily
 
More info: https://launchpad.net/~dobey/+archive/ubuntu/redshift-daily
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring `/tmp/tmpe3wq4b1i/secring.gpg' created
gpg: keyring `/tmp/tmpe3wq4b1i/pubring.gpg' created
gpg: requesting key AD555F67 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpe3wq4b1i/trustdb.gpg: trustdb created
gpg: key AD555F67: public key "Launchpad PPA for Rodney Dawes" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK

Luego proceda a instalar redshift:

$ sudo apt-get update
$ sudo apt-get install redshift redshift-gtk

Instalación de Redshift construyéndolo desde la fuente

Si es un desarrollador y desea ejecutar la última versión de Redshift en su máquina, debería considerar la posibilidad de crear el paquete a partir del código fuente. Usa los comandos:

$ sudo apt-get install intltool
$ wget -c https://github.com/jonls/redshift/releases/download/v1.10/redshift-1.10.tar.xz
$  ./configure --prefix=$HOME/redshift/root --with-systemduserunitdir=$HOME/.config/systemd/user
$ make
$ sudo make install

Después de una instalación exitosa, veamos cómo ejecutar y configurar Redshift en Ubuntu 16.04.

Configuración de Redshift

Hay dos formas de iniciar Redshift en Ubuntu 16.04

  1. Usando el comando cli de corrimiento al rojo – corrimiento al rojo
  2. Usando la herramienta gráfica de corrimiento al rojo proporcionada por corrimiento al rojo-gtk

Para ponerlo en funcionamiento con una configuración básica, emita:

$ redshift -l LAT:LON

donde LAT es la latitud y LON es la longitud de su ubicación. También puedes usar gpsd para determinar automáticamente su ubicación GPS y utilizarla como entrada para Redshift. Ejemplo es,

$ redshift -l 45:-48

Cuando inicie el desplazamiento al rojo, de forma predeterminada leerá su archivo de configuración desde ~ / .config / redshift.conf. Primero cree este archivo.

$ vim ~/.config/redshift.conf

La entrada de muestra al archivo se ve así:

; Global settings for redshift
[redshift]
; Set the day and night screen temperatures
temp-day=5700
temp-night=3500

; Disable the smooth fade between temperatures when Redshift starts and stops.
; 0 will cause an immediate change between screen temperatures.
; 1 will gradually apply the new screen temperature over a couple of seconds.
fade=1

; 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

; Custom dawn/dusk intervals.
; 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=6:00-7:45
;dusk-time=18:35-20:15

; 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: '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 only screen 0.
; Note that the numbering starts from 0, so this is actually the first screen.
; If this option is not specified, Redshift will try to adjust _all_ screens.
[randr]
screen=0

Los parámetros a cambiar son:

lat = 48,1, lon = 11,6 – reemplácelo con su latitud y longitud correctas.

Dado que este archivo tiene muchos comentarios, tómese su tiempo para leerlo y ver qué puede cambiar para adaptarse a sus requisitos. Una vez hecho con los cambios, guarde el archivo y salga. Ahora tenemos configuraciones completas para comenzar a usar Redshift. Para iniciar la aplicación de IU, búsquela en su lanzador y haga clic en su nombre.

Eso es todo. Disfruta usando Redshift.

Publicaciones relacionadas

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

Botón volver arriba
Cerrar