Redshift linux что это

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Redshift adjusts the color temperature of your screen according to your surroundings. This may help your eyes hurt less if you are working in front of the screen at night.

License

jonls/redshift

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

Redshift adjusts the color temperature of your screen according to your surroundings. This may help your eyes hurt less if you are working in front of the screen at night.

Redshift logo

Run redshift -h for help on command line options. You can run the program as redshift-gtk instead of redshift for a graphical status icon.

Technical Details (Gamma Ramps)

Redshift applies a redness effect to the graphical display. The intensity of the redness can be customized and scheduled to only be applied at night or to be applied with more intensity at night.

Redshift uses the gamma correction ramps to apply this effect which has traditionally been the only way of applying a color effect to the display. Note that this is really a hack to work around the absense of a standardized way of applying color effects, and it is resulting in several issues some of which are explained in the FAQ section below. As long as Redshift is using gamma ramps, many of these issues are impossible to solve properly in Redshift.

Читайте также:  Проверить запущен ли сервис linux

Since Redshift was first created, many desktop environments have adopted similar functionality as an integrated component:

Using the features integrated into the desktop environments avoids many of the issues with gamma ramps which is why these implementations should generally be favored over Redshift. On the other hand, Redshift may offer some additional flexibility that is not available in the integrated features.

How do I install Redshift?

Use the packages provided by your distribution, e.g. for Ubuntu: apt-get install redshift or apt-get install redshift-gtk . For developers, please see Building from source and Latest builds from master branch below.

How do I setup a configuration file?

A configuration file is not required but is useful for saving custom configurations and manually defining the location in case of issues with the automatic location provider. An example configuration can be found in redshift.conf.sample.

The configuration file should be saved in the following location depending on the platform:

  • Linux/macOS: ~/.config/redshift/redshift.conf (if the environment variable XDG_CONFIG_HOME is undefined) or $/redshift/redshift.conf (if XDG_CONFIG_HOME is defined).
  • Windows: Put redshift.conf in %USERPROFILE%\AppData\Local\ (aka %localappdata% ).

Where can I find my coordinates to put in the configuration file?

There are multiple web sites that provide coordinates for map locations, for example clicking anywhere on Google Maps will bring up a box with the coordinates. Remember that longitudes in the western hemisphere (e.g. the Americas) must be provided to Redshift as negative numbers.

Why does GeoClue fail with access denied error?

It is possible that the location services have been disabled completely. The check for this case varies by desktop environment. For example, in GNOME the location services can be toggled in Settings > Privacy > Location Services.

If this is not the case, it is possible that Redshift has been improperly installed or not been given the required permissions to obtain location updates from a system administrator. See #318 for further discussion on this issue.

Why doesn’t Redshift work on my Chromebook/Raspberry Pi?

Certain video drivers do not support adjustable gamma ramps. In some cases Redshift will fail with an error message, but other drivers silently ignore adjustments to the gamma ramp.

Why doesn’t Redshift change the backlight when I use the brightness option?

Redshift has a brightness adjustment setting but it does not work the way most people might expect. In fact it is a fake brightness adjustment obtained by manipulating the gamma ramps which means that it does not reduce the backlight of the screen. Preferably only use it if your normal backlight adjustment is too coarse-grained.

Why doesn’t Redshift work on Wayland (e.g. Fedora 25)?

Читайте также:  Файл начальной загрузки linux

The Wayland protocol does not support Redshift. There is currently no way for Redshift to adjust the color temperature in Wayland.

  • In GNOME Shell: Settings → Display Settings → Night Light
  • In Plasma: System Settings → Display and Monitor → Night Color

Why doesn’t Redshift work on Ubuntu with Mir enabled?

Mir does not support Redshift.

When running as a systemd service, redshift fails to connect to the graphical environment

You need to export your environment variables when your window manager or compositor start up. Typically, you want to run this as part of its startup:

systemctl --user import-environment; systemctl --user start graphical-session.target 

See your compositor’s (or window manager’s) documentation for further details of setting up the systemd user session.

The redness effect is applied during the day instead of at night. Why?

This usually happens to users in America when the longitude has been set in the configuration file to a positive number. Longitudes in the western hemisphere should be provided as negative numbers (e.g. New York City is at approximately latitude/longitude 41, -74).

Why does the redness effect occasionally switch off for a few seconds?

Redshift uses the gamma ramps of the graphics driver to apply the redness effect but Redshift cannot block other applications from also changing the gamma ramps. Some applications (particularly games and video players) will reset the gamma ramps. After a few seconds Redshift will kick in again. There is no way for Redshift to prevent this from happening.

Why does the redness effect continuously flicker?

You may have multiple instances of Redshift running simultaneously. Make sure that only one instance is running for the display where you are seeing the flicker.

Why doesn’t Redshift change the color of the mouse cursor?

Mouse cursors are usually handled separately by the graphics hardware and is not affected by gamma ramps. Some graphics drivers can be configured to use software cursors instead.

I have an issue with Redshift but it was not mentioned in this FAQ. What do I do?

Please go to the issue tracker and check if your issue has already been reported. If not, please open a new issue describing you problem.

Latest builds from master branch

Contributing / Building from source

See the file CONTRIBUTING for more details.

About

Redshift adjusts the color temperature of your screen according to your surroundings. This may help your eyes hurt less if you are working in front of the screen at night.

Источник

RedShift — утилита изменения цветового профиля экрана

RedShift — свободное программное обеспечение, которое изменяет цветовой профиль экрана в зависимости от времени суток и местоположения, снижая утомляемость глаз при продолжительной работе у монитора.

Читайте также:  Terminal emulator linux best

Для того чтобы начать работать с программой, необходимо установить пакет из репозитория командой:

— для РЕД ОС версии 7.2 и младше:

yum install redshift redshift-gtk
dnf install redshift redshift-gtk

На нашем Youtube-канале вы можете подробнее ознакомиться с работой утилиты RedShift, просмотрев видео КАК СБЕРЕЧЬ ЗРЕНИЕ? RedShift — утилита изменения цветового профиля экрана, а также найти много другой полезной информации.

Основные настройки программы

RedShift равномерно переводит цветовую температуру дисплея компьютера между дневной и ночной температурами, чтобы глаза пользователя могли медленно адаптироваться.

Ночью цветовая температура низкая и обычно составляет 3000–4000 К, что предпочтительно соответствует температуре освещения в комнате.

Типичная цветовая температура в дневное время составляет 5500–6500 К. Чтобы задать температуру в формате День:Ночь, используется команда:

Установка значения более 6500 приводит температуру к более холодному синему цвету, а установка значения менее 6500 приводит температуру к более теплому красному цвету.

Регулировка уровня яркости подсветки монитора осуществляется изменением уровня освещенности экрана от светлого до тёмного. Низкая освещённость преимущественно используется в вечернее и ночное время. Высокая интенсивность свечения полезна для работы днём. Благодаря регулировке яркости монитора можно снять лишнее напряжение с глаз.

Чтобы задать яркость, используется команда:

Значение яркости можно установить в диапазоне от 0.1 до 1.0.

Гамма показывает соотношение между уровнями трех основных цветов цветового пространства RGB и силу излучаемого монитором светового потока.

Чтобы задать значение гаммы, используется команда:

Значение гаммы можно установить в диапазоне от 0.1 до 1.0.

Сохранение настроек

Для того чтобы настройки работали постоянно, необходимо создать файл настроек в /home/user, где user — имя пользователя.

nano /home/user/.config/redshift.conf

Записываем в файл конфигурации параметры в следующем виде:

[redshift] temp-day=6500 temp-night=3500 transition=1 brightness-day=0.8 brightness-night=0.6 gamma=0.8

где temp-day — температура цвета днем;
temp-night — температура цвета ночью;
transition — определяет плавный переход между температурой (при значении 0 сразу устанавливает значение температуры, при значении 1 осуществляется плавный переход);
brightness-day — яркость днем;
brightness-night — яркость ночью;
gamma — установка гаммы для всех цветов.

Сохраняем и закрываем файл.

Далее запускаем программу RedShift через терминал командой:

или через «Главное меню — Стандартные — Redshift».

На панели задач должен появиться значок RedShift, при этом применятся все настройки, выставленные в файле конфигурации.

Автозагрузка

Для добавления RedShift в автозагрузку можно воспользоваться функцией «Автозапуск» в меню RedShift.

Также можно воспользоваться средствами операционной системы, для этого заходим в параметры системы и открываем раздел «Автозагрузка». Далее нажимаем кнопку «Добавить» — «Команда пользователя». В поле «Команда» вписываем redshift-gtk и нажимаем «Добавить».

После перезагрузки RedShift запустится автоматически.

Дата последнего изменения: 09.06.2023

Если вы нашли ошибку, пожалуйста, выделите текст и нажмите Ctrl+Enter.

Источник

Оцените статью
Adblock
detector