Re: LCD screen for your dockstar (cheap! <$5) December 17, 2010 11:00PM |
Registered: 13 years ago Posts: 261 |
//Allocate buffer and send a command. Check the result as an extra caution //against non-photoframe devices. buff=malloc_aligned(0x10000); sendcmd(f,1,0,0,0); read_data(f,buff,0x200); if (buff[0]!=8) { printf("Expected response 8 on cmd 1, got 0x%hhx!\n",buff[0]); exit(1); }
Re: LCD screen for your dockstar (cheap! <$5) December 19, 2010 05:47PM |
Registered: 13 years ago Posts: 128 |
Re: LCD screen for your dockstar (cheap! <$5) December 20, 2010 09:50PM |
Registered: 13 years ago Posts: 18 |
Re: LCD screen for your dockstar (cheap! <$5) December 20, 2010 10:07PM |
Registered: 13 years ago Posts: 261 |
apt-get install dstat dstatConfig would be a single file "template" that would define the layout on the picframe:
TIM: $time--------- NTP: $date/time---- MEM: used $used- cache $cach- NET: $recv--/$send-- CPU: usr $usr-- sys $sys-- PAG: in $in- out $out--Would give output like:
TIM: 20-12 23:04:57 NTP: 20-12 23:04:57 MEM: used 22.4M cache 94.0M NET: 5797B/677B CPU: usr 2 sys 0 PAG: in 0 out 0Then I could add "built-in" non-dstat statistics if I wanted.
Re: LCD screen for your dockstar (cheap! <$5) December 20, 2010 11:14PM |
Registered: 13 years ago Posts: 18 |
psk
Re: LCD screen for your dockstar (cheap! <$5) December 22, 2010 01:57AM |
Re: LCD screen for your dockstar (cheap! <$5) December 22, 2010 02:28AM |
Registered: 13 years ago Posts: 4 |
Re: LCD screen for your dockstar (cheap! <$5) December 22, 2010 04:28PM |
Registered: 13 years ago Posts: 261 |
case 16: if (getenv("ROTATE")==NULL) c = getpixel(h, pixinfo, x, y); else c = getpixel(h, pixinfo, y, h->width-1-x);also change...
if (h->proto == PROTO_PCF8833) {
if (h->oldpix == NULL) {
pcf8833_send_partial(h, pixinfo, 0, 0, h->width - 1, h->height);
to
if (h->proto == PROTO_PCF8833) {
if (1) {
pcf8833_send_partial(h, pixinfo, 0, 0, h->width - 1, h->height);
Sorry I don't have time to test right now :-/
Re: LCD screen for your dockstar (cheap! <$5) December 22, 2010 06:06PM |
Registered: 13 years ago Posts: 28 |
Re: LCD screen for your dockstar (cheap! <$5) December 22, 2010 06:16PM |
Registered: 14 years ago Posts: 92 |
Re: LCD screen for your dockstar (cheap! <$5) December 22, 2010 06:30PM |
Registered: 13 years ago Posts: 28 |
Re: LCD screen for your dockstar (cheap! <$5) December 23, 2010 06:44AM |
Registered: 13 years ago Posts: 128 |
Re: LCD screen for your dockstar (cheap! <$5) December 23, 2010 10:05AM |
Registered: 13 years ago Posts: 261 |
Re: LCD screen for your dockstar (cheap! <$5) December 23, 2010 11:01AM |
Registered: 13 years ago Posts: 28 |
Re: LCD screen for your dockstar (cheap! <$5) December 23, 2010 12:52PM |
Registered: 13 years ago Posts: 261 |
Re: LCD screen for your dockstar (cheap! <$5) December 23, 2010 02:58PM |
Registered: 13 years ago Posts: 128 |
Re: LCD screen for your dockstar (cheap! <$5) December 23, 2010 03:15PM |
Registered: 13 years ago Posts: 28 |
Re: LCD screen for your dockstar (cheap! <$5) December 24, 2010 05:10PM |
Registered: 13 years ago Posts: 4 |
Re: LCD screen for your dockstar (cheap! <$5) December 25, 2010 08:04AM |
Registered: 13 years ago Posts: 261 |
# start terminal on picframe... st2205term ... -c "start_lcd4linux.sh"
# start_lcd4linux.sh - script to add windows to GNU screen screen -S test -X screen lcd4linux ... screen -S test -X screen ssh box2 lcd4linux ... screen -S test -X screen ssh box3 lcd4linux ...The start_lcd4linux.sh script would have to be a little more complex
Re: LCD screen for your dockstar (cheap! <$5) December 25, 2010 03:48PM |
Registered: 13 years ago Posts: 261 |
ST2205TERMDIR=/local/dockstar/lcd/st2205term
$ST2205TERMDIR/st2205term \
--font=small \
--keyboard=/dev/input/by-id/usb-060b_USB_Keyboard-event-kbd \
--picframe=/dev/disk/by-id/usb-SITRONIX_MULTIMEDIA-0\:0 \
--fontdata=$ST2205TERMDIR/fonts.txt \
--command="$ST2205TERMDIR/stats -t=$ST2205TERMDIR/template.txt" \
--keymap=$ST2205TERMDIR/us.kmap < /dev/null > /dev/null 2>&1 &
You'll need to fix the ST2205TERMDIR path and make sure the picframe device matches yours. The keyboard device doesn't matter in this example as the stats utility ignores keyboard input.
Re: LCD screen for your dockstar (cheap! <$5) December 25, 2010 09:46PM |
Registered: 14 years ago Posts: 92 |
Re: LCD screen for your dockstar (cheap! <$5) December 27, 2010 04:13PM |
Registered: 13 years ago Posts: 128 |
Re: LCD screen for your dockstar (cheap! <$5) December 27, 2010 04:39PM |
Registered: 13 years ago Posts: 128 |
Re: LCD screen for your dockstar (cheap! <$5) December 28, 2010 09:38AM |
Registered: 13 years ago Posts: 261 |
cd st2205term export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH # to find librote ./st2205termI have included a program to reformat dstat output that can act as a screen saver:
apt-get install dstat cd st2205term export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH # to find librote ./st2205term --font=small --screensaver="./stats -t=./template.txt"Here are some example /etc/rc.local commands to start it up:
ST2205TERMDIR=/local/dockstar/lcd/st2205term export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH # to find librote $ST2205TERMDIR/st2205term --font=small \ --screensaver="$ST2205TERMDIR/stats -t=$ST2205TERMDIR/template.txt" < /dev/null > /dev/null 2>&1 &
Re: LCD screen for your dockstar (cheap! <$5) December 29, 2010 12:21AM |
Registered: 13 years ago Posts: 128 |
Re: LCD screen for your dockstar (cheap! <$5) December 30, 2010 11:14AM |
Registered: 13 years ago Posts: 128 |
Re: LCD screen for your dockstar (cheap! <$5) December 30, 2010 06:14PM |
Registered: 13 years ago Posts: 4 |
Re: LCD screen for your dockstar (cheap! <$5) December 30, 2010 07:37PM |
Registered: 13 years ago Posts: 261 |
Re: LCD screen for your dockstar (cheap! <$5) December 30, 2010 11:34PM |
Registered: 13 years ago Posts: 128 |
Re: LCD screen for your dockstar (cheap! <$5) December 31, 2010 03:48PM |
Registered: 13 years ago Posts: 4 |