Redshift couldn’t be initialized after upgrading from 17.04 to 17.10
After upgrading from 17.04 to Ubuntu 17.10 “artful”, redshift didn’t autostart. Then I tried to initialize redshift but it produced this:
zhiwei@zhiwei-Lenovo-Rescuer-15ISK:~$ sudo redshift 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?