<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>34958</bug_id>
          
          <creation_ts>2018-05-28 20:15:35 +0300</creation_ts>
          <short_desc>При запуске redshift возникает ошибка</short_desc>
          <delta_ts>2023-08-24 15:49:16 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>redshift</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="obirvalger@altlinux.org">obirvalger</reporter>
          <assigned_to name="Yuri N. Sedunov">aris</assigned_to>
          <cc>aris</cc>
    
    <cc>cas</cc>
    
    <cc>evg</cc>
    
    <cc>grenka</cc>
    
    <cc>igor.bz</cc>
    
    <cc>vseleznv</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>171366</commentid>
    <comment_count>0</comment_count>
    <who name="obirvalger@altlinux.org">obirvalger</who>
    <bug_when>2018-05-28 20:15:35 +0300</bug_when>
    <thetext>При запуске redshift возникает ошибка

Trying location provider `geoclue2&apos;...
Using provider `geoclue2&apos;.
Unable to start GeoClue client: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: &apos;redshift&apos; disallowed, no agent for UID 500.
Unable to connect to GeoClue.
Unable to get location from provider.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>171367</commentid>
    <comment_count>1</comment_count>
    <who name="Grigory Ustinov">grenka</who>
    <bug_when>2018-05-28 20:17:31 +0300</bug_when>
    <thetext>У меня тоже самое. Прошу исправить.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>171370</commentid>
    <comment_count>2</comment_count>
    <who name="Yuri N. Sedunov">aris</who>
    <bug_when>2018-05-28 20:42:25 +0300</bug_when>
    <thetext>systemctl status geoclue
?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>171373</commentid>
    <comment_count>3</comment_count>
    <who name="Grigory Ustinov">grenka</who>
    <bug_when>2018-05-28 21:06:49 +0300</bug_when>
    <thetext>Был выключен. Включил и результат не изменился.

● geoclue.service - Location Lookup Service
   Loaded: loaded (/lib/systemd/system/geoclue.service; static; vendor preset: disabled)
   Active: active (running) since Mon 2018-05-28 21:05:14 MSK; 4s ago
 Main PID: 29134 (geoclue)
    Tasks: 4 (limit: 4915)
   Memory: 5.9M
   CGroup: /system.slice/geoclue.service
           └─29134 /usr/libexec/geoclue

May 28 21:05:13 Mr-frog.localdomain systemd[1]: Starting Location Lookup Service...
May 28 21:05:14 Mr-frog.localdomain systemd[1]: Started Location Lookup Service.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>171377</commentid>
    <comment_count>4</comment_count>
    <who name="Yuri N. Sedunov">aris</who>
    <bug_when>2018-05-29 00:02:26 +0300</bug_when>
    <thetext>Проблемы у мозильного сервиса
https://location.services.mozilla.com/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>171382</commentid>
    <comment_count>5</comment_count>
    <who name="Yuri N. Sedunov">aris</who>
    <bug_when>2018-05-29 12:12:46 +0300</bug_when>
    <thetext>(В ответ на комментарий №4)
&gt; Проблемы у мозильного сервиса
&gt; https://location.services.mozilla.com/

$ curl https://location.services.mozilla.com/v1/geolocate?key=geoclue
curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to location.services.mozilla.com:443

Иногда пробивается
$ curl https://location.services.mozilla.com/v1/geolocate?key=geoclue
{&quot;location&quot;: {&quot;lat&quot;: 59.8944, &quot;lng&quot;: 30.2642}, &quot;accuracy&quot;: 5000.0}

Но geoclue, если не может достучаться, падает, и это действительно ошибка.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>207051</commentid>
    <comment_count>6</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2022-01-24 12:42:59 +0300</bug_when>
    <thetext>user@c253 ~ $ redshift -l 27.23:33.83 -t 5700:3600 -g 0.8 -m randr -v
Solar elevations: day above 3.0, night below -6.0
Температуры: 5700K днём, 3600K ночью
Яркость: 1.00:1.00
Гамма (День): 0.800, 0.800, 0.800
Гамма (Ночь): 0.800, 0.800, 0.800
Waiting for initial location to become available...
Местоположение: 27.23 С, 33.83 В
Температура цвета: 6500K
Яркость: 1.00
Статус: Включено
Время: День
Температура цвета: 5700K
^CСтатус: Выключено
Время: Неизвестно
Температура цвета: 6500K
^Cuser@c253 ~ $ rpm -q redshift
redshift-1.12-alt1.x86_64
user@c253 ~ $

Вроде работает. Закрываем?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>231852</commentid>
    <comment_count>7</comment_count>
    <who name="igor">igor.bz</who>
    <bug_when>2023-08-24 15:49:16 +0300</bug_when>
    <thetext>Проблема актуальна:
redshift-1.12-alt1.x86_64

Причина та же, что в изначальном сообщении. Обходные пути для нормального запуска, перечисленные в issue, не помогли:
https://github.com/jonls/redshift/issues/158


Работает только ручное создание конфига и собственноручное указание широты и долготы:
~/.config/redshift.conf
[redshift]
location-provider=manual

[manual]
lat=53.17
lon=50.12


Примечательно, что по указанному Юрием методу значение возвращается:
curl https://location.services.mozilla.com/v1/geolocate?key=geoclue

{&quot;location&quot;: {&quot;lat&quot;: 53.1785, &quot;lng&quot;: 50.1267}, &quot;accuracy&quot;: 20000.0}</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>