Welcome! Log In Create A New Profile

Advanced

LCD screen for your dockstar (cheap! <$5)

Posted by petergunn 
imayoda
Re: LCD screen for your dockstar (cheap! <$5)
March 02, 2011 04:28PM
Hi there everybody.
Can somebody give a link for a very cheap usb frame that works for sure with lcd4linux (maybe on ebay..) cause I can't find any.

Thanks a lot for any answer :)
Re: LCD screen for your dockstar (cheap! <$5)
March 02, 2011 05:18PM
Can you expound on "very cheap"?

You should be able to find something here: http://tinyurl.com/45p9jtp

HTH, Jim
rat
Re: LCD screen for your dockstar (cheap! <$5)
March 05, 2011 12:06AM
imayoda Wrote:
-------------------------------------------------------
> Hi there everybody.
> Can somebody give a link for a very cheap usb
> frame that works for sure with lcd4linux (maybe on
> ebay..) cause I can't find any.
>
> Thanks a lot for any answer :)


As I said a few posts ago, I have a Coby DP151 I'm not using that is already hacked and ready to use. $10 shipped.
imayoda
Re: LCD screen for your dockstar (cheap! <$5)
March 09, 2011 12:03PM
Thanks a lot everybody :D
imayoda
Re: LCD screen for your dockstar (cheap! <$5)
March 09, 2011 07:40PM
@rat
i'm in EU.. how much for italy? accept paypal? :)
Re: LCD screen for your dockstar (cheap! <$5)
March 12, 2011 05:29PM
Hi hackfin and all,

I just would like to say thanks for your work.

With the help of the READMEs in http://tech.section5.ch/files/dpfhack-0.1alpha.tgz and http://tech.section5.ch/files/dpf-lcd4linux.tgz and some helpful tips from this forum I was able to get my Pearl ultra-cheap AX206 DPF working without any problems on Ubuntu 10.04 first and than on my Dockstar as well.

Regards,
Heinz
Attachments:
open | download - dpf-pearl-ax206-dockstar.jpg (120.1 KB)
KF_ND
Re: LCD screen for your dockstar (cheap! <$5)
March 12, 2011 08:29PM
@hkramski could you share the widget code fore the log output you are using?
Re: LCD screen for your dockstar (cheap! <$5)
March 13, 2011 05:19AM
Nothing elegant, simply:
Widget WHO0 {
    class 'Text'
    expression '/var/log/syslog'
    width linesize
    align 'C'
    Background 'cccccc'
    Foreground '191919'
}

Widget WHO1 {
    class 'Text'
    expression substr(exec('tail -n 1 /var/log/syslog', 1000), 0 * linesize, linesize)
    width linesize
    align 'L'
    Background '333333'
    Foreground 'ffffff'
}

Widget WHO2 {
    class 'Text'
    expression substr(exec('tail -n 1 /var/log/syslog', 1000), 1 * linesize, linesize)
    width linesize
    align 'L'
    Background '333333'
    Foreground 'ffffff'
}

Widget WHO3 {
    class 'Text'
    expression substr(exec('tail -n 1 /var/log/syslog', 1000), 2 * linesize, linesize)
     width linesize
    align 'L'
    Background '333333'
    Foreground 'ffffff'
}

Widget WHO4 {
    class 'Text'
    expression substr(exec('tail -n 1 /var/log/syslog', 1000), 3 * linesize, linesize)
    width linesize
    align 'L'
    Background '333333'
    Foreground 'ffffff'
}

Widget WHO5 {
    class 'Text'
    expression substr(exec('tail -n 1 /var/log/syslog', 1000), 4 * linesize, linesize)
    width linesize
    align 'L'
    Background '333333'
    Foreground 'ffffff'
}

# [...]

Layout mylayout {
    # [...]
    Row14.Col02 'WHO0'
    Row15.Col02 'WHO1'
    Row16.Col02 'WHO2'
    Row17.Col02 'WHO3'
    Row18.Col02 'WHO4'
    Row19.Col02 'WHO5'
    # [...]
}

Layout 'mylayout'

Variables {
    tick 500
    tack 200
    minute 60000
    linesize 51
}

If someone knows how to pull the line from syslog only once and use that value in multiple widget definitions, please let me know.

I also need help in configuring lcd4linux to support images on an AX206. Right now, the image class is not supported. (After all it's a *picture* frame!).

Heinz

Edit: fixed off by one leftover from "cut".



Edited 1 time(s). Last edit at 03/13/2011 12:21PM by hkramski.
Re: LCD screen for your dockstar (cheap! <$5)
March 13, 2011 05:56AM
Hi Heinz,

I think you should have libgd (Ubuntu: libgd2-noxpm-dev) installed to make configure add the image widget code to the Makefile.
For displaying multiple lines from a file, I guess it would be more elegant to write an extra plugin, but I haven't gotten to that yet, still fiddling with AX206 firmware in that little free time left.
Re: LCD screen for your dockstar (cheap! <$5)
March 20, 2011 05:25PM
I'm quite happy now with my grown lcd4linux.conf (which I use on Ubuntu and on my Dockstar with only to comments changed). I think I share it here again, just for inspirations. Thanks again for pointing me towards these nice little DPF's and lcd4linux.

Regards
Heinz

Edit: Updated lcd4linux.conf



Edited 1 time(s). Last edit at 03/21/2011 04:57PM by hkramski.
Attachments:
open | download - lcd4l-dockstar.png (8.8 KB)
open | download - lcd4l-ubuntu.png (8.6 KB)
open | download - lcd4linux.conf (14.4 KB)
bastel
Re: LCD screen for your dockstar (cheap! <$5)
March 21, 2011 03:22PM
I am working on the syslog thing. exec is not desirable, as it spwans child processes. What is nedded is a tail and head plugin with line/byte limits as well as a multiline widget, or a string plugin extension that can cut a string with a virtual line width in mind so one can use a number of single line plugins but still get proper line wrapping. I plan on working on that.

I did compile lcd4linux with the libgd2-noxpm-dev and lo and behold, image backgrounds do work :)

Also, for you heinz: diskstats works with a regular expression (hence the sd.), but the diskstats cover partitions as well as the main hdd, leading to double counting. the correct term to avoid this is 'sda$', or 'sd[a-z]$' to count over all hdds. the example provided by lcd4linux is incorrect.

Unrelated:
Anyone also getting stuff like "Mar 21 21:08:57 little user.warn kernel: [6204009.646723] usb 1-1.3: usbfs: process 16970 (lcd4linux.2) did not claim interface 0 before use" when starting lcd4linux?
Re: LCD screen for your dockstar (cheap! <$5)
March 21, 2011 04:04PM
I also get this warning every time lcd4linux starts.

For a preliminary exec optimization: Can't we use the timer widget to only read a long line once and put it in a (global) variable? The manual says "Timer widgets are special widgets that do nothing except being called at a regular basis. [...] the result is discarded. But you can set variables in this expression" but I can't find any examples for using variables like this.

Edit: Never mind, got it. See updated lcd4linux.conf above.



Edited 1 time(s). Last edit at 03/21/2011 05:02PM by hkramski.
Re: LCD screen for your dockstar (cheap! <$5)
March 22, 2011 03:38AM
Hi there,

the message about the lack of "claim interface" is nothing to worry about. It just means that I've forgotten to do a usb_claim_interface(). There will be a next release of the libdpf with fixes and more functionality. If more people would second a public SVN repository, I'll set up one at google code.
dpffan
Re: LCD screen for your dockstar (cheap! <$5)
March 22, 2011 09:01AM
Yes please svn at code google
Hi,

I've just ordered the Pearl AX206 DPF.
Has anyone made some progress in displaying images on it via lcd4linux yet? Where is the main problem?
lou
Re: LCD screen for your dockstar (cheap! <$5)
March 28, 2011 06:03AM
"bastel" provides a dockstar compiled lcd4linux with image support here:
http://www.hardwareluxx.de/community/16519271-post1264.html
i did'nt test so far.

lou
Re: LCD screen for your dockstar (cheap! <$5)
March 28, 2011 01:40PM
@EPG: No problem with images anymore. Simply install libgd2-noxpm-dev first to enable image support, like hackfin said.

It's also handy to have the XWindow driver included so you can test your layout on a desktop machine running X. Just install libx1-dev for that purpose.

I now build lcd4linux
./configure --with-drivers='DPF,X11' --with-plugins='all,!dbus,!mpris_dbus'
which also avoids the dbus related warnings at startup.
Thanks lou and hkramski :)
I'll try it when my picframe arrives.
Keith
Re: LCD screen for your dockstar (cheap! <$5)
April 02, 2011 05:28AM
Any clues? I've been searching around for hours. I've got it to say "baks r ok"

1.1" LCD Screen "up to 56 pictures"
Made by ROYAL

root@ubuntu:~/Downloads/output/st2205tool# dmesg | tail -12
[  408.850765] sd 4:0:0:0: [sdb] 4096 512-byte logical blocks: (2.09 MB/2.00 MiB)
[  408.855653] sd 4:0:0:0: [sdb] Write Protect is off
[  408.855730] sd 4:0:0:0: [sdb] Mode Sense: 0b 00 00 08
[  408.855779] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[  408.872497] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[  408.872611]  sdb: unknown partition table
[  408.918547] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[  408.918616] sd 4:0:0:0: [sdb] Attached SCSI removable disk
[  412.520565] usb 2-1: reset full speed USB device using uhci_hcd and address 4
[ 7073.889007] usb 2-1: usbfs: USBDEVFS_CONTROL failed cmd lsusb rqt 128 rq 6 len 255 ret -84
[ 7073.889857] usb 2-1: usbfs: USBDEVFS_CONTROL failed cmd lsusb rqt 128 rq 6 len 255 ret -71
[ 7074.120486] usb 2-1: reset full speed USB device using uhci_hcd and address 4


root@ubuntu:~/Downloads/output/st2205tool# lsusb -v

Bus 002 Device 004: ID 1403:0001 Sitronix Digital Photo Frame
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         8
  idVendor           0x1403 Sitronix
  idProduct          0x0001 Digital Photo Frame
  bcdDevice            1.10
  iManufacturer           1 
  iProduct                2 
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xc0
      Self Powered
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk (Zip)
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
Device Status:     0x0000
  (Bus Powered)

generate-hack.pl script
root@ubuntu:~/Downloads/output/st2205tool# sudo perl generate-hack.pl /dev/sdb hack/m_royal_silver
Creating hack/m_royal_silver...
using DA65=/home/xizor/Downloads/output/st2205tool/cc65/src/da65/da65
using PHACK=/home/xizor/Downloads/output/st2205tool/phack
Dumping firmware: /home/xizor/Downloads/output/st2205tool/phack -df fwimage.bin /dev/sdb
..
Firmware dumped.
Splitting firmware into 16k segments...
1+0 records in
1+0 records out
16384 bytes (16 kB) copied, 0.000123026 s, 133 MB/s
1+0 records in
1+0 records out
16384 bytes (16 kB) copied, 9.0353e-05 s, 181 MB/s
1+0 records in
1+0 records out
16384 bytes (16 kB) copied, 9.6213e-05 s, 170 MB/s
1+0 records in
1+0 records out
16384 bytes (16 kB) copied, 8.765e-05 s, 187 MB/s
Locating CMP_VAR1 & CMP_VAR2...
0397->0398
L7267:  lda     $0397
        cmp     #$31
        bne     L7277
        lda     $0398
        cmp     #$00
        bne     L7277

Locating PATCH_AT...
L72A5:  lda     #$FF
        ldx     #$FF
L72A9:  sta     $0397
        stx     $0398
        rts

Creating lookforme.bin...
12+0 records in
12+0 records out
12 bytes (12 B) copied, 0.000145019 s, 82.7 kB/s

Locating free space ..
Empty space: found 561 0xff bytes starting at 0x3da9
FYI - you can verify with: hexdump -s 0x3da9 -n 561 -v fwimage-seg0.bin | less

Locating SEND_CSW...
L716D:  pha
        lda     #$55
        sta     $0240
        lda     #$53
        sta     $0241
        lda     #$42
        sta     $0242
        lda     #$53

Locating LEN0 LEN1 LEN2 LEN3...
        stz     $038B
        stz     $038C
        lda     $0216
        stz     $038B
        lda     $0217
        sta     $038A
        asl     $038A
        rol     $038B
        rol     $038C

        stz     $038F
        stz     $0390
        lda     $0216
        stz     $038F
        lda     $0217
        sta     $038E
        asl     $038E
        rol     $038F
        rol     $0390

Warning! multiple matches (2) - will use the first one after SEND_CSW location

Guessing CTRTYPE...
----
        lda     #$2A
        sta     $8000
        lda     #$00
        sta     $C000
        lda     #$00
        sta     $C000
        lda     #$00
        sta     $C000
        lda     #$5F
        sta     $C000
        lda     #$2B
        sta     $8000
        lda     #$00
        sta     $C000
        lda     #$00
        sta     $C000
        lda     #$00
        sta     $C000
        lda     #$3F
        sta     $C000

----
        lda     #$2A
        sta     $8000
        lda     #$00
        sta     $C000
        lda     #$04
        sta     $C000
        lda     #$00
        sta     $C000
        lda     #$83
        sta     $C000
        lda     #$2B
        sta     $8000
        lda     #$00
        sta     $C000
        lda     #$04
        sta     $C000
        lda     #$00
        sta     $C000
        lda     #$83
        sta     $C000

Eeek! expected single match but found 2 - dont know what to do!
Re: LCD screen for your dockstar (cheap! <$5)
April 02, 2011 08:40AM
@Keith, modifying the following line in generate-hack.pl should allow the script to get further...

change:
die "Eeek! expected single match but found $count - dont know what to do!\n" if $count!=1;
to
print "Eeek! expected single match but found $count - dont know what to do!\n" if $count!=1;
-PG
dpffan
Re: LCD screen for your dockstar (cheap! <$5)
April 04, 2011 07:55AM
This is slightly off topic but may be of interest to UK users. http://sites.google.com/site/repurposelinux/df3120 - a cheap Linux enabled photo frame that is hackable. A good companion for the dockstar indeed
Re: LCD screen for your dockstar (cheap! <$5)
April 04, 2011 11:50AM
need LCD display, but I'm not able to find the right one...
Re: LCD screen for your dockstar (cheap! <$5)
April 04, 2011 02:52PM
rat Wrote:
-------------------------------------------------------
> imayoda Wrote:
> --------------------------------------------------
> -----
> > Hi there everybody.
> > Can somebody give a link for a very cheap usb
> > frame that works for sure with lcd4linux (maybe
> on
> > ebay..) cause I can't find any.
> >
> > Thanks a lot for any answer :)
>
>
> As I said a few posts ago, I have a Coby DP151 I'm
> not using that is already hacked and ready to use.
> $10 shipped.


Do you still have it? Rat. I want one.
Re: LCD screen for your dockstar (cheap! <$5)
April 07, 2011 02:39PM
Don't know if this was already posted here. I only have limited time ATM, so I'm sorry if this is a repost. Just found this through google and it looked interesting:

http://hansdegoede.livejournal.com/9183.html
dpffan
Re: LCD screen for your dockstar (cheap! <$5)
April 07, 2011 06:39PM
@inkmar_k the link points to efforts to use the ax206 dpf as a dpf under Linux not as a LCD display
Re: LCD screen for your dockstar (cheap! <$5)
April 08, 2011 03:29AM
dpffan Wrote:
-------------------------------------------------------
> @inkmar_k the link points to efforts to use the
> ax206 dpf as a dpf under Linux not as a LCD
> display

Well some people might want to display something else than just some status messages. Ever thought about that?
I just thought that it was worth mentioning that now libgphoto supports the "new" frames, too. Could be useful.
Re: LCD screen for your dockstar (cheap! <$5)
April 10, 2011 10:42AM
Now that I have ISC DHCP, BIND9, lighttpd/PmWiki, IWatch, LLTD, Postfix, Samba, OpenSSH, MiniDLNA, Webmin, Motion and some small stuff running on my poor Dockstar, there a times when system load goes up to 5 or 6 and above.

Looks like this crashes/hangs lcd4linux 0.11.0-svn with hackfin's AX206 driver. (Maybe it's USB bus related?) Anyone else experiencing this? Any ideas?

Regards,
Heinz
Re: LCD screen for your dockstar (cheap! <$5)
April 13, 2011 11:26AM
Hi,

we've been doing a bit of 'work' again. Well, more playing around, but anyhow: there is now a bit more elaborating HOWTO and improved scripts on getting code into yet unsupported frames, and also a new experimental release of experimental firmware (under development). It is fully functional with lcd4linux though, including new features as orientation and backlight control.

Check this out: http://tech.section5.ch/news/?p=77, download link on the bottom.

Cheers,

- hackfin
Re: LCD screen for your dockstar (cheap! <$5)
April 13, 2011 04:52PM
hackfin Wrote:
-------------------------------------------------------
> Hi,
>
> we've been doing a bit of 'work' again. Well, more
> playing around, but anyhow: there is now a bit
> more elaborating HOWTO and improved scripts on
> getting code into yet unsupported frames, and also
> a new experimental release of experimental
> firmware (under development). It is fully
> functional with lcd4linux though, including new
> features as orientation and backlight control.
>
> Check this out:
> http://tech.section5.ch/news/?p=77, download link
> on the bottom.
>
> Cheers,
>
> - hackfin

Good to see you back. I personally didn't have any time to play with my DPF and/or my dockstar for the last few weeks, so it's great timing on your part. That is, because I will have some time in about a week or two. I really look forward to trying out your new, updated hack. Looks like fun.

Thank you very much so far. Keep up the good work. ;-)
Re: LCD screen for your dockstar (cheap! <$5)
April 15, 2011 05:22PM
rat Wrote:
-------------------------------------------------------
> Well, Peter, I tried to update the Picframe wiki (
> http://picframe.spritesserver.nl/wiki/index.php/Ma
> in_Page ) as much as I could. From what I can see
> of available models and what both of us have been
> able to do... Looks like only the DP152 and Shift3
> Fats are the easily available hackable LCD models.
> Updated the device list to say those two are
> probably the best bet at this point. Also uploaded
> my m_shift3 files to a filehost and put it on the
> Wiki. Hopefully we'll see some people checking
> back and trying to hack their 'unsupported' LCDs
> again with the information now up.
>
> The keychain LCDs are too cheap and useful for a
> project like that wiki to go unmaintained and
> forgotten. I threw in references, where
> applicable, to generate-hack.pl, this forum and
> requests to get the information back up to date
> cause of the attention the Dockstar is getting
> lately.
>
> Now, if you wanna grab the m_shift3.zip files,
> maybe there's a way to get rid of that blasted
> battery icon. ;-) (Attaching here as well in case
> the filehost I used for linking to the wiki
> dies...)
>
> Now for st2205term...
>
> Sheeeeit. You've been busy.
>
> Okay, keyboard plugged in. (heh)
> Doing everything as su. (double heh, I guess I
> learned a bit with my LCD issues)
> Following directions as-is on your page there.
> Rote installed.
>
> Your directions say to run as root, but nothing
> about compiling st2205term inside /root as before.
> Gonna try it in /home/rat/lcd as I have everything
> else stored there.
>
> Hrmmm. Interesting.
>
> http://i.imgur.com/caBg8.jpg
>
> ;-)
>
> (Man, my cellphone camera SUCKS.)
>
> Something interesting of note. Every time I typed,
> the battery icon disappeared from screen. If I hit
> one key and wait, it's approximately 2 seconds
> before the icon shows up again. I wonder if it can
> be removed... your method differs from lcd4linux
> because the icon never disappeared from the screen
> when the status info refreshed on there.
>
> Very nice, though. Very, very nice.

Rat (and peter) - Thank you for all your information. I made a rookie move with my shift3 and didn't backup the fwimage.bak file. Could you please post a copy of yours? I didn't make the pixel offset change and need to restore to the original firmware to flash back the updated spec file firmware.

Thank you,
HW



Edited 2 time(s). Last edit at 04/15/2011 05:35PM by hard_where.
Author:

Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: