Redshift 1.7

I finally had some time to throw a new release of Redshift together. The most important change, for most of you, is probably the Geoclue location provider by Mathieu Trudel-Lapierre. The old GNOME clock location provider has stopped working for many, as Ubuntu no longer includes a clock applet in the unity desktop. This is fixed now with this new location provider, which should work right out-of-the-box on Ubuntu Natty systems.

Other news are:

  • Allow brightness to be adjusted (-b).
  • Provide option to set color temperature directly (Joe Hillenbrand).
  • Add option to show program version (-V).
  • Add configure.ac option to install ubuntu icons. They will no longer be installed by default (Francesco Marella).
  • config: Look in %userprofile%/.config/redshift.conf on windows platform.
  • Fix: w32gdi: Obtain a new DC handle on every adjustment. This fixes a bug where redshift stops updating the screen.
  • http://babbagefiles.blogspot.com BeSlayed

    Could you let us know when the Ubuntu repository has been updated?

  • Jon Lund Steffensen

    @BeSlayed: Sure. I find it to be such a pain to produce those Ubuntu packages, though. Anybody want to volunteer?

  • Zaki Manian

    I get the following message on my Natty install using the new location provider.

    ** (process:4725): WARNING **: Metadata for error domain “geoclue-error-quark” already registered

    Started Geoclue provider `Geoclue Master’.
    Using provider `geoclue’.
    Could not get location: Geoclue master client has no usable Position providers.
    Unable to get location from provider.

    Any ideas?

  • Jon Lund Steffensen

    @Zaki Manian: Install a position provider for Geoclue?

  • Zaki Manian

    @Jon

    I have the Ubuntu GeoIP provider installed.

    Using the GeoClue test gui, Master gives a position NAN but Ubuntu GeoIp gives the correct position.

    There are some bugs in the Geoclue tracker about how Master cannot detect Network Manager and there ignores all network based location providers. Not sure if this is problem.

    Looking at the redshift code it looks as if there is a way to override the Master position provider and force it to use Ubuntu GeoIP. Haven’t figured out the syntax.

  • Zaki Manian

    @Jon I reinstalled the geoclue-ubuntu-geoip package and now redshift is working as expected.

    Not at all clear why this worked.

  • Jon Lund Steffensen

    @Zaki Manian: Glad to hear that it works for you now.
    Ubuntu packages of 1.7 should be in the PPA now, btw.

  • Roger

    I get the same error as Zaki. Reinstalled packages geoclue and geoclue-ubuntu-geoip which didn’t fix it.

    Based on your message I installed the non-Ubuntu supported geoclue-skyhook and geoclue-hostip but the error message is still present and redshift fails to start.

    I use classic desktop on Natty and do have my location set in the clock.

    Went back to the Ubuntu repositories version of (gtk)-redshift 1.6 and it all works fine again.

  • Anonymous

    I was also having the GeoClue error others report. I tried installing the skyhook and hostip packages to no effect, but by simply ‘killall -9 geoclue-master’, redshift began working just fine. GG

  • Nigel Hixson

    I tried the steps taken by drbrontosaurus including installation of those extra packages and killall, to no avail.

  • Andreas

    Redshift 1.7 does not start on my Ubuntu! It just crashes without any warning! I also tried to run the code for the panel in a python-interpreter, but it also crashes the interpreter (!):
    $ python
    Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53)
    [GCC 4.5.2] on linux2
    Type “help”, “copyright”, “credits” or “license” for more information.
    >>> from gtk_redshift.statusicon import run
    >>> run()
    (process:19183): GLib-GObject-CRITICAL **: g_type_instance_get_private: assertion `instance != NULL && instance->g_class != NULL’ failed
    $
    I am now back to Redshift 1.6

  • http://jonls.dk/ Jon Lund Steffensen

    Hi Andreas. It’s a know bug: https://bugs.launchpad.net/redshift/+bug/806364 . You have to install a geoclue position provider to avoid the crash.

  • Torstein Fiskvik

    Are you planning to restore the ability to use redshift with only one monitor in a multimonitor setup?

  • http://jonls.dk/ Jon Lund Steffensen

    Not sure I understand… Is it broken?