After upgrading from Ubuntu 17.04 to Ubuntu 17.10 Artful Aardvark, Redshift didn't autostart. Then I tried to initialize Redshift by running sudo redshift
but it produced this:
Trying location provider `geoclue2'...
Using provider `geoclue2'.
Invalid MIT-MAGIC-COOKIE-1 key`RANDR Query Version' returned error -1
Initialization of randr failed.
Trying next method...
Invalid MIT-MAGIC-COOKIE-1 keyX request failed: XOpenDisplay
Initialization of vidmode failed.
Trying next method...
No more methods to try.
I've searched this error on Google but no results were found. Does anyone know how to fix this problem?