Как Вы устанавливаете точное местоположение?

Я включил службы определения местоположения. Я использую Ubuntu 18.10 на рабочем столе, который не имеет GPS. В Windows 10 я смог установить местоположение вручную с адресом.

0
задан 12 February 2019 в 02:46

1 ответ

Необходимо будет вручную создать каталог конфигурации, когда он перемещен в эту версию, хотя отступив в случае, если каталог не существует:

mkdir ~/.config/redshift

Используйте свой любимый текстовый редактор, чтобы создать и отредактировать файл конфигурации, я буду использовать VS Code здесь:

code ~/.config/redshift/redshift.conf

Файл конфигурации в качестве примера в большой степени прокомментирован.

; Global settings
[redshift]

; 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

; this has changed since this version in favor of randr
; formerly vidmode has been mostly used from what I read
adjustment-method=randr

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

; 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


; The location provider and adjustment method settings
; are in their own sections.
; 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=00.8
lon=00.1

; 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

Это будет Работать на Местоположение. Обновите местоположение вручную

[manual]
lat=00.8
lon=00.1
0
ответ дан 26 October 2019 в 06:50

Другие вопросы по тегам:

Похожие вопросы: