Installation

Generic installation steps, to check if there are distribution-specific changes check distro-specific instructions.

Dependencies
First of all you need these python2 modules: xdg, dbus, gobject2, pyephem (rhodesmill.org/pyephem).

Optional Dependencies
If you want to try and/or use the GUI (non-service version only) you'll need also pyQt.

Make Dependencies
To build and install you need: python distutils, python distutils extra (launchpad.net/python-distutils-extra), gcc and everything needed to build C programs, libx11 developement libraries, python developement libraries, your kernel headers and intltool.

These requirements can be safely removed after calise compiled and installed successfully.

Obtain Calise
To get latest stable release: $ wget http://sourceforge.net/projects/calise/files/latest/download $ tar -xzf calise-*.tar.gz to get latest developement release (master): $ git clone git://calise.git.sourceforge.net/gitroot/calise/calise

Install
Now you're ready for building/installing the program, move to the folder where you extracted calise and run: $ env python2 setup.py build
 * 1) env python2 setup.py install --prefix=/usr

Post-install
Refresh icon-cache:
 * 1) gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor

Calise works through sysfs backlight controls so you'll need to grant write permission to sysfs backlight interfaces. The best way to achieve that is to create Udev rules for these interfaces granting write permission for certain group (suggested "video", if you choose different group check install notes).

Here you can find a simple script to do that automatically: interfaces="" for path in /sys/class/backlight/* do    interfaces="`echo $path | awk -F ['/'] '{print $5}'` $interfaces" done for interface in $interfaces do    udevrule="99-backlight-$interface.rules" echo "KERNEL==\"$interface\", RUN+=\"/bin/chmod 664 /sys/class/backlight/$interface/brightness\"" > $udevrule echo "KERNEL==\"$interface\", RUN+=\"/bin/chgrp video /sys/class/backlight/$interface/brightness\"" >> $udevrule done Then you have to copy every rule created into udev's rules directory (usually /lib/udev/rules.d/): If you have pm-utils installed on your machine you'd also (from where you extracted calise): If everything went fine you've successfully installed calise. Now you're ready to start first usage Configuration
 * 1) !/bin/sh
 * 1) mv 99-backlight-*.rules /lib/udev/rules.d/
 * 1) cp other/pm-utils_scripts/53calised /usr/lib/pm-utils/sleep.d/



Distro-specific instructions
There you can find every (additional) informations concerning specific distributions.

Ubuntu
Tested on relases 11.10 and 12.04 but also previous should work fine.

Get all these packages needed to correctly resolve dependencies (after building and installing correctly refer to Make Dependencies to know what packages can be optionally removed): If you want to try the GUI you'll need also: Get calise as explained in "obtain calise", move to the folder where you extracted calise and run: $ env python setup.py build Proceed from "post-install" with generic installation steps.
 * 1) apt-get install python-setuptools python-distutils-extra python-xdg build-essential python-dev libx11-dev python-pip python-dbus linux-headers-`uname -r`
 * 2) pip install pyephem
 * 1) apt-get install python-qt4
 * 1) env python setup.py install --install-layout=deb

Fedora
Tested on release 17 GNOME-LiveCD-x86_64 and release 16.

Get all these packages needed to correctly resolve dependencies (after building and installing correctly refer to Make Dependencies to know what packages can be optionally removed): If you want to try the GUI you'll need also: Proceed from "obtain calise" with generic installation steps.
 * 1) yum install pyxdg dbus-python pygobject2 pyephem python-setuptools python-distutils-extra gcc libX11-devel python-devel kernel-headers intltool
 * 1) yum install PyQt4

OpenSUSE
Updated instruction (for OpenSUSE 42.1 and higher)

Tested on openSUSE 12.1 KDE-LiveCD-x86_64

Get all these packages needed to correctly resolve dependencies (after building and installing correctly refer to Make Dependencies to know what packages can be optionally removed): gcc xorg-x11-libX11-devel python-devel kernel-devel intltool python-pip If you want to try the GUI you'll need also: Proceed from "obtain calise" with generic installation steps
 * 1) zypper install python-xdg dbus-1-python python-gobject2 python-Distutils2 python-distutils-extra \
 * 1) pip install pyephem
 * 1) zypper install python-qt4

OpenSUSE 42.1
New instructions for 42.1 and (hopefully) higher, thanks to Enno Nagel who pointed that out. gcc xorg-x11-libX11-devel python-devel kernel-devel intltool python-devel python-pyephem If you want to try the GUI you'll need also: Then the actual program installation (from http://download.opensuse.org/repositories/home:/lemmy04/openSUSE_Leap_42.1)
 * 1) zypper install python-xdg dbus-1-python python-gobject2 python-Distutils2 python-distutils-extra \
 * 1) zypper install python-qt4
 * 1) zypper install calise

Archlinux
Archlinux users can skip every installation step and install either release version or git developement version from AUR with the two packages I maintain: calise and calise-git.