From ThorstensHome
Revision as of 08:03, 4 September 2012 by WikiSysop (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

I have a new fun project. Benny showed me an article from a geek who uses his digital picture frame as USB-connected monitor using LCD4Linux. Here I am trying to do the same with Ubuntu x86_32.


Build dpfhack

You will need dpfhack to change the picture frame's firmware

sudo apt-get install libtool automake autoconf zlib1g-dev libssl-dev python-dev libc6 libusb-dev libibus-1.0-dev subversion libgd2-noxpm-dev libgd2-noxpm
  • make the sdcc compiler work
sudo dpkg -i sdcc-libraries_2.9.0-5_all.deb
sudo dpkg -i sdcc_2.9.0-5_i386.deb 
  • download and build dpfhack
tar -xvzf dpfhack-0.1alpha.tgz
cd dpf/src

Build lcd4linux

  • get a special version of lcd4linux
cd ..
tar -xvzf dpf-lcd4linux.tgz
  • edit, change the line
./configure --with-drivers=DPF


./configure --with-drivers='DPF' --with-plugins='all,!dbus,!mpris_dbus'
  • build and install the special version of lcd4linux
./ ../src/dpflib/
cd lcd4linux
sudo make install

Replace firmware

Now it's time to overwrite the digital picture frame's firmware. First let's find out what device the picture frame is. In dmesg I find a line containing

Attached scsi generic sg5 type 5

So I do

cd ../src
sudo python /dev/sg5

Configure lcd4linux

Fill /etc/lcd4linux, e.g. with

Display dpf {
    Driver     'DPF'
    Port       'usb0'
    Font       '6x8'
    Foreground 'ffffff'
    Background '000000'
    Basecolor  '000066'
Widget FIRST {
    class 'Text'
    expression ''
    width 54
    align 'L'
    update 5000
    Background 'ffffff'
    Foreground  '000000'
Display 'DPF'
Layout Dockstar{
    Row01.Col01  'FIRST'
Layout 'Dockstar'

Display something

Now unplug and plug in again the display. Then call lcd4linux:

sudo lcd4linux

And you will see output on the digital picture frame :)