jonls / redshift

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.
http://jonls.dk/redshift
GNU General Public License v3.0
5.82k stars 424 forks source link

[bug] Could not connect to wayland display, exiting. Failed to start adjustment method wayland. #888

Closed xj75q closed 3 months ago

xj75q commented 9 months ago

Describe the bug Could not connect to wayland display, exiting. Failed to start adjustment method wayland.

To Reproduce Steps to reproduce the behavior: redshift -c redshift.config ,there is a error redshift -g / -l /-t . the err is same :

Expected behavior when i use redshift -c , there is a err : fopen: Permission denied, Unable to load config file.but when i use root ,the err still appearing。 when i use redshift -v in root ,something bring to init conf: eg:

Error output/logs/screenshots

Trying location provider geoclue2'... Using providergeoclue2'. Solar elevations: day above 3.0, night below -6.0 Temperatures: 6500K at day, 4500K at night Brightness: 1.00:1.00 Gamma (Daytime): 1.000, 1.000, 1.000 Gamma (Night): 1.000, 1.000, 1.000 Could not connect to wayland display, exiting. Failed to start adjustment method wayland. Trying next method... Using method `randr'. Waiting for initial location to become available...

Software versions (please complete the following information):

anaximeno commented 5 months ago

seems related to https://github.com/jonls/redshift/issues/794