From ST2205u wiki
Revision as of 21:41, 22 March 2010 by HansDeGoede (talk | contribs) (Using the picture frame as a picture frame)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Using your picture frame as a picture frame


Although this wiki was started for hacking st2205 picture frames firmware so that the picture frame can be used as a "second monitor", some people would like to actually use the picture frame as a picture frame, and be able to put pictures on it under Linux.

Recently (March 2010) a libgphoto2 "camlib" has been added to libghoto2, which allows downloading, uploading and deleting pictures from st2205 frames (and another camlib for ax203 based frames is in the works).

Installing the st2205 libgphoto2 driver from gphoto svn

These instructions will replace you existing libgphoto2 installation, and are valid only if your existing libgphoto2 installation is a 2.4.x version. You need to have the following software installed, note this listing contains Fedora package names, which can be installed under Fedora using "yum install <packagename>". The names may be different on other distributions:

  • svn, gcc, make, pkgconfig, sharutils
  • libusb-devel, gd-devel, lockdev-devel, libexif-devel
  • libjpeg-devel, libtool-ltdl-devel, popt-devel
  • autoconf, automake, libtool, gettext-devel
  • libgphoto2, gphoto2

Once you have these installed run the following commands:

svn co
cd libgphoto2
autoreconf -f -i
./configure --prefix=/usr --libdir=</usr/lib|/usr/lib64>
sudo make install

Now you should be able to use the gphoto2 commandline tool to communicate with your picture frame, for example, run: "gphoto2 -L" as root (see below) to list all the photos on the picture frame.

Configuring your system for user level access to the picture frame

Assuming your distribution comes with udev and libgphoto2 set up in such a way that a normal user can access libgphoto2 driven devices such as still cameras when locally logged in, you can configure your system to allow normal users access to the picture frame to by updating the libgphoto2 udev rules. First install the updated libgphoto2 as described above, then on Fedora you would do:

cd libgphoto2/packaging/generic/
sudo sh -c "./print-camera-list udev-rules version 136 > /lib/udev/rules.d/40-libgphoto2.rules"

On other distributions, this might work too, but may need some adjustment. On other distributions, first backup your existing gphoto2 udev rules, and after regenerating see if the part for regular cameras looks the same. if not adjust the parameters to print-camera-list to make them match.