Caffeine for Linux 0.2 released!

21/07/2009

After a few weeks of frantic coding by me and Brad Smith, the original author of the Caffeine Linux port, Caffeine 0.2 is now officially released! If you have somehow forgotten what Caffeine is, or if you never read my blog post on it at all, here’s a link to it.

In a nutshell, Caffeine is a coffee cup that sits in your system tray, waiting for you to click it. Once you do, it fills up with coffee and keeps your computer from going to sleep or activating the screensaver. This could be really useful for when you’re playing fullscreen games that don’t inhibit the screensaver, or when you’re watching a long flash video.

About Caffeine 0.2


Any new features for the 0.2?

There sure are!

  • New icons. Although I’m not so very happy with them. They might receive a makeover for the 0.3.
  • Full support for gnome-screensaver and Kscreensaver
  • Support for the old notification system as well as the new one.
  • The ability to choose a time interval from a list, and have Caffeine be active during that time.
  • The ability for the user to set the duration for the interval freely.
  • Mutiple bug fixes.
  • A new project page at Launchpad.

Sweet! Where do I get it?

We actually have a PPA now, so it’s easy as pie. Just follow these steps to add our PPA to your list of repositories, and then download and install Caffeine:

sudo bash -c "echo 'deb http://ppa.launchpad.net/bnsmith/ppa/ubuntu jaunty main' >> /etc/apt/sources.list"
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B7DEAC3C
sudo apt-get update && sudo apt-get install caffeine

Of course if you’re not running Ubuntu or another distribution that doesn’t make use of the Debian package format, you can get all the files you need by running this command:

bzr branch lp:caffeine

Depending on your distribution, the process for having Caffeine automatically start when you log in is different. But here are instructions for Ubuntu:

  1. Goto SystemPreferencesStartup Applications
  2. Click on Add
  3. Enter “Caffeine” in the Name entry and just type “caffeine” in the Command field (the command should be in all lower case letters).
  4. Log out and back in again, and Caffeine should be running in your system applet!

For instructions for other distributions, either consult your distribution’s support forum/IRC channel/Mailing list. Or shoot me or Brad an email. My email address can be found on the contact page, and Brad’s can be found at his blog.

What are the plans for 0.3?

The plans aren’t set in stone, but we’re hoping to rewrite the entire application and make it a bit more organized and  overall easier to work with. We’re also planning on making use of GtkBuilder to separate the graphical stuff from the logic. That will also allow us to use Glade, which will make creating the user interface a million times easier.

We also want to get proper support for Xscreensaver as well as stand-alone DPMS. Getting DPMS support is actually fairly trivial, but we have to create a preferences dialog first - as there’s no way to detect whether or not DPMS is running on its own or being managed by another program. Xscreensaver is a little bit trickier, so we’ll see how that goes.

As always, we’re interested in hearing your thoughts, ideas and your criticism. If you have tried Caffeine out and have something to say about it, you’re more than welcome to either leave a comment here or on the announcement post at Brad’s blog. I’m sure Brad would like to get some love as well. After all, it was he who started the development of this application!

Tagged: , , in Software
Show/hide

Written by Tommy Brunn

Tommy Brunn is the author of blastfromthepast.se. Currently he is living pretty much as close to the north pole as you can get (Luleå, Sweden). He devotes his spare time to learning about programming, developing a FOSS point-and-click adventure game, and is currently studying software engineering at Luleå University of Technology.

There are 9 comments on this article:

  1. 21/07/2009Gururaj said:

    I had used Mac for sometime and used to love the caffeine esp, when giving presentations etc.
    Great that you have brought it to Linux. The timing features are really awesome addition.
    Thanks a lot for such a nice application.

  2. 21/07/2009Tommy Brunn said:

    You are very welcome, my good man. It’s always nice for me and Brad to see that people are using our software. :D

  3. 21/07/2009Midnytpudding said:

    Congrats for the new release and thank you for this great app :D

  4. 21/07/2009Rickard Nilsson said:

    Great app! Can it be used from the command line?

  5. 21/07/2009Tommy Brunn said:

    Not at this time, no. But I’m sure we could add that for the next release.

  6. 21/07/2009DREMA said:

    Hi.
    What GTK engine/theme and font are you using on your screenshot?

  7. 21/07/2009Tommy Brunn said:

    That is the Dust theme, and I believe the font used is Myriad Pro SemiCondensed.

  8. 25/07/2009greyspace said:

    THANK YOU for this! No more full-screen games fouling on me because I forgot to turn off the screensaver. Great work!

  9. 27/08/2009Caffeine 0.3 is out! | Blast from the past said:

    [...] know you have all been waiting impatiently for this ever since we released Caffeine 0.2, but now it is finally here - Caffeine [...]

Write a comment