Re: [parisc-linux] Re: J5000 LCD heartbeat

2005-03-20 Thread Stuart Brady
On Sun, Mar 20, 2005 at 09:03:57PM +0100, Thibaut VARENE wrote:
 it's not that simple.
 If you want to have it gone, add 
 @reboot echo   /proc/pdc/lcd
 in your root crontab :)

BTW, If anyone really wants scrolling, this script should do it.  It has
to use character 16 for spaces, which is a bit broken -- YMMV.


#!/bin/bash

STR=Linux $(uname -r)   
END=

# Prevent the PDC from stripping leading spaces by
# using character 16 (octal 20) as a space...

STR=$(echo $STR | tr ' ' '\20')

while(true); do
echo ${STR}${END}  /proc/pdc/lcd
END=${END}${STR:0:1}
STR=${STR:1}
if [ -z ${STR:-} ]; then
STR=${END}
END=
fi
sleep 0.25
done


The character set is interesting:

1-8 for the disk/network/heartbeat symbols
32-127 are the standard ascii characters, except that:
   92 is a yen symbol
  126 is a left arrow
  127 is a right arrow
128-159 are unused
160-254 seem to be a mix of japanese, greek and accented roman letters
240 is an empty box
255 is a filled in square

Hope that helps,
-- 
Stuart Brady


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: [parisc-linux] Re: J5000 LCD heartbeat

2005-03-19 Thread Grant Grundler
On Sat, Mar 19, 2005 at 04:19:11PM -0700, Grant Grundler wrote:
 I would think it's possible.
 You want to track down where the CC01 chassis_log is emitted then 
 propose a better place to initialize LED display?

sorry - meant LCD here

 Another idea is the chassis log code might want to clear the LED
 diplay when displaying a chassis log and then a few seconds later
 refresh the LED display with the original contents or something.

and here.

grant


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]