LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Redshift broken in Mint 18 (https://www.linuxquestions.org/questions/linux-software-2/redshift-broken-in-mint-18-a-4175585818/)

louierev07 07-29-2016 12:44 PM

Redshift broken in Mint 18
 
Just messed up my whole install trying to fix this.

Did a clean install. After first boot I let update manager to its thing, installed nvidia driver and intel. Thats it.

After that I tired
sudo apt-get install redshift gtk-redshift

Program installs with no problem. If I try to run the program I get:

Failed to run Redshift
Trying location provider `geoclue2'...
Unable to connect to GeoClue.
Unable to get location from provider.

Anyone have any idea? Flux worked on my last install at first and then refused to start up. My eyes are about to fall out.

Thanks.

hydrurga 07-29-2016 12:55 PM

Searching for "Failed to run Redshift Trying location provider" on Google returns the first hit https://bugzilla.redhat.com/show_bug.cgi?id=1207917 which suggests a fix that entails adding some lines to /etc/geoclue/geoclue.conf. Have you tried that or any other fixes mentioned on the internet yet?

More info here: https://github.com/jonls/redshift/is...mment-71329118

louierev07 07-29-2016 01:24 PM

Quote:

Originally Posted by hydrurga (Post 5583014)
Searching for "Failed to run Redshift Trying location provider" on Google returns the first hit https://bugzilla.redhat.com/show_bug.cgi?id=1207917 which suggests a fix that entails adding some lines to /etc/geoclue/geoclue.conf. Have you tried that or any other fixes mentioned on the internet yet?

More info here: https://github.com/jonls/redshift/is...mment-71329118

Tried it, and then messed around a little too much with geoclue before completely breaking my system. Did a fresh install and now here I am.

Hopefully someone smarter than me will have the same problem in the same situation. Like I said, pretty much fresh install of mint 18, redshift does not work and gives me that error, so im guessing its a problem with mint.

EDIT: didnt try editing config yet. How do I get to geoclue config?

hydrurga 07-29-2016 01:33 PM

Quote:

Originally Posted by louierev07 (Post 5583026)
Tried it, and then messed around a little too much with geoclue before completely breaking my system. Did a fresh install and now here I am.

Hopefully someone smarter than me will have the same problem in the same situation. Like I said, pretty much fresh install of mint 18, redshift does not work and gives me that error, so im guessing its a problem with mint.

EDIT: didnt try editing config yet. How do I get to geoclue config?

I'm sorry, I'm confused here. You said that you "tried it", but the primary fix I was suggesting you try is the editing of the geoclue config file (whose filepath is in my post above). What exactly was the "it" that you tried?

I suspect, given the content of the two threads I referred to, that this isn't a problem with Mint, it's a problem with geoclue. A pretty annoying one, given that it affects redshift straight from the off, but apparently a fixable one.

louierev07 07-29-2016 11:43 PM

Quote:

Originally Posted by hydrurga (Post 5583028)
I'm sorry, I'm confused here. You said that you "tried it", but the primary fix I was suggesting you try is the editing of the geoclue config file (whose filepath is in my post above). What exactly was the "it" that you tried?

I suspect, given the content of the two threads I referred to, that this isn't a problem with Mint, it's a problem with geoclue. A pretty annoying one, given that it affects redshift straight from the off, but apparently a fixable one.

Pretty bad with linux, I know the basics I guess. Anyways, I tried uninstalling geoclue and reinstalling from synaptic, but that first removed the mint software center, and then it completely killed my system, and had to to a fresh install. I tried some other things, but couldnt really tell you all of them, just stuff I read online. I coukdnt figure out how to get to redshift or geoclue config.

How do I get to, and then open geoclue config? by either the terminal or using the file explorer.

EDIT: Tried looking where they said in the post, under etc/geoclue/geoclue.conf but no such file.

Even just searhed for geoclue.conf in my whole filesystem and found nothing. Searching geoclue finds other files, but no config files.

louierev07 07-29-2016 11:53 PM

Gonna try this persons sugestion:
On Linux Mint 18 64x I ran sudo apt-get install geoclue-2.0 and this worked for me now RedShift and RedShift-gtk work for me. I tried the other fixes but none of them worked. Thanks to bigon's suggestion of different versions of Geoclue in Ubuntu / Debian for the idea that led me to the fi

Hopefully it doesnt break my install again. Probably gonna cry.

EDIT: WORKED this time! I might have messed with too many settings at once last time. Can confirm that:
sudo apt-get install geoclue-2.0
works on linux mint 18.

hydrurga 07-30-2016 05:14 AM

Great to hear that it worked! You may want to mark the thread as "Solved" using Thread Tools.

Just as an aside, I guess if the conf file didn't exist then the idea was to create it yourself. Being located under /etc, this would have required you to create the file as a superuser i.e. using sudo. Normally to do this, I would have popped sudo kate /etc/geoclue/geoclue.conf into the command line (kate is the name of the text editor I use, you may have a different one such as nano or gedit).

Anyway, all is good. Enjoy using redshift, and well done on sticking in there and solving the problem.


All times are GMT -5. The time now is 05:22 PM.