From: Nikos M. <nm...@gn...> - 2006-10-08 14:43:26
|
On 10/5/06, Michael Reinelt <re...@eu...> wrote: > Hi Nikos, > > in lcd4linux.conf and screens were switching every ten seconds. > I think we should make these 10 seconds configurable in any way.... Indeed. I was thinking this as a preliminary patch. I am not familiar with the code base and probably some things might be done better too (like the clear command below). > > ps. moreover this patch includes some changes in the crystalfontz > > driver for the 632 model to work nicely (without displaying the cursor > > all the time etc). The patch (hand edited so may not apply): --- lcd4linux-0.10.0/drv_Crystalfontz.c 2005-05-08 07:32:44.000000000 +0300 +++ lcd4linux-0.10.0-new/drv_Crystalfontz.c 2006-10-02 11:12:48.000000000 +0300 @@ -744,7 +743,10 @@ { switch (Protocol) { case 1: - drv_generic_serial_write("\014", 1); + /* it was 014 but on 632 is 012. + */ + drv_generic_serial_write("\012", 1); + drv_generic_serial_write("\004", 1); /* also disable the cursor */ break; case 2: case 3: @@ -757,10 +759,11 @@ /* init sequences for 626, 632, 634, 636 */ static void drv_CF_start_1(void) { - drv_generic_serial_write("\014", 1); /* Form Feed (Clear Display) */ - drv_generic_serial_write("\004", 1); /* hide cursor */ + drv_generic_serial_write("\012", 1); /* Form Feed (Clear Display) */ drv_generic_serial_write("\024", 1); /* scroll off */ drv_generic_serial_write("\030", 1); /* wrap off */ + drv_generic_serial_write("\004", 1); /* cursor off... doesn't seem to work here */ + } These changes were because the \004 command on init didn't disable the cursor for me thus I included it on every screen cleanup. Also the 014 command although seemed to work, it is something else on my CZ632 (014=backlight control). Thus I changed it with 012 which is the form feed. regards, Nikos |