List Info

Thread: Crystalfontz 631 with lcd4linux rc2 ... button problems




Crystalfontz 631 with lcd4linux rc2 ... button problems
country flaguser name
United States
2007-08-12 19:24:18

Hello,

Using lcd4linux RC2 - 796 with Crystalfontz 631 display and would like to get the buttons to work. ; I only need to use 2 buttons to simply scroll up and down through a series of widgets.  I have included my current lcd4linux.conf file that I have created to be able to scroll through a list of different widgets, does anyone see any problems??  What I get when using this lcd4linux.conf file with my 2 line Crystalfontz display is only the first 2 lines, buttons do not work …. Yet J

 

When I use the lcd4linux –Fvv command I get:

 

[rootasterisk1 bin]# lcd4linux -Fvv

Version 0.10.1-RC2-796 starting

plugin_cfg.c: Variable currline = '1' (1)

plugin_cfg.c: Variable minute = '60000' (60000)

plugin_cfg.c: Variable tack = '100' (100)

plugin_cfg.c: Variable tick = '500' (500)

[KVV] Using station 89

[KVV] Using default port 80

[KVV] Using default refresh interval of 60 seconds

[KVV] Default abbreviation setting: off

lcd4linux.c: initializing driver Crystalfontz

Crystalfontz: $Rev: 781 $

Crystalfontz: using model '631'

Crystalfontz: using port '/dev/ttyUSB0' at 115200 baud

Crystalfontz: port /dev/ttyUSB0 is locked by process 2568

 

 

 

My current lcd4linux.conf file is:

 

Variables {

   tick 500

   tack 100

   minute 60000

   currline 1

}

 

Display CF631 {

    Driver 'Crystalfontz'

    Model '631'

    Port '/dev/ttyUSB0'

    Speed 115200

    Contrast 95

    Backlight 50

    Icons 1

}

 

 

Widget OS {

    class 'Text'

    expression '*** '.uname('sysname').' '.uname('release').' ***'

    width 20

    align 'M'

    style 'bold'

    speed 200    

    update tick

}

 

Widget CPU {

    class ; 'Text'

    expression  uname('machine')

    prefix 'CPU '

    width ; 9

    align ; 'L'

    style test::onoff(7)>0?'bold':'norm'

    update tick

}

 

 

Widget CPUinfo {

    class ; 'Text'

    expression  cpuinfo('model name')

    prefix ''

    width ; 20

    align ; 'M'

    speed 100    

    update tick

}

 

 

Widget RAM {

    class ; 'Text'

    expression meminfo('MemTotal')/1024

    postfix ' MB RAM'   ;  

    width ; 11

    precision 0

    align ; 'R'

    update tick

}

 

Widget Busy {

    class 'Text'

    expression proc_stat::cpu('busy', 500)

    prefix 'Busy'  

    postfix '%'     ;

    width 9         ;

    precision 1

    align 'R'     ;   

    update tick   ;

}         

 

Widget BusyBar {

    class 'Bar'

    expression  proc_stat::cpu('busy',   500)

    expression2 proc_stat::cpu('system', 500)

    length 10      

    direction 'E'

    update tack

}

 

Widget Load {

    class 'Text'

    expression loadavg(1)

    prefix 'Load'

    postfix loadavg(1)>1.0?'!':' '

    width 10

    precision 1

    align 'R'

    update tick

}

 

Widget LoadBar {

    class 'Bar'

    expression  loadavg(1)

    max 2.0

    length 10      

    direction 'E'

    update tack

}

 

 

Widget Disk {

    class 'Text'

    # disk.[rw]blk return blocks, we assume a blocksize of 512

    # to get the number in kB/s we would do blk*512/1024, which is blk/2

    # expression (proc_stat::disk('.*', 'rblk', 500)+proc_stat::disk('.*', 'wblk', 500))/2

    # with kernel 2.6, disk_io disappeared from /proc/stat but moved to /proc/diskstat

    # therefore you have to use another function called 'diskstats':

    expression diskstats('hd.', 'read_sectors', 500) + diskstats('hd.', 'write_sectors', 500)

    prefix 'disk'

    postfix ' '

    width 10       ;

    precision 0

    align 'R'     ;   

    update tick   ;

}         

 

Widget DiskBar {

    class 'Bar'

    #expression  proc_stat::disk('.*', 'rblk', 500)

    #expression2 proc_stat::disk('.*', 'wblk', 500)

    # for kernel 2.6:

    expression  diskstats('hd.', 'read_sectors',  500)

    expression2 diskstats('hd.', 'write_sectors', 500)

    length 14      

    direction 'E'

    update tack

}

 

Widget Eth0 {

    class 'Text'

    expression (netdev('eth0', 'Rx_bytes', 500)+netdev('eth0', 'Tx_bytes', 500))/1024

    prefix 'eth0'

    postfix ' '

    width 10       ;

    precision 0

    align 'R'     ;   

    update tick   ;

}         

 

Widget Eth0Bar {

    class 'Bar'

    expression  netdev('eth0', 'Rx_bytes', 500)

    expression2 netdev('eth0', 'Tx_bytes', 500)

    length 14      

    direction 'E'

    update tack

}

 

Widget PPP {

    class 'Text'

    expression (ppp('Rx:0', 500)+ppp('Tx:0', 500))

    prefix 'PPP'

    width 9

    precision 0

    align 'R'

    update tick

}

 

Widget RAMused {

    class 'Text'

    expression (meminfo('MemTotal')-meminfo('MemFree'))/1024

    prefix 'RAM '

    postfix ''

    width 8

    precision 0

    align 'R'

    update tick

}

 

Widget Temp {

    class 'Text'

    expression i2c_sensors('temp_input3')*1.0324-67

    prefix 'Temp'

    width 9

    precision 1

    align 'R'

    update tick

}

 

Widget TempBar {

    class 'Bar'

    expression  i2c_sensors('temp_input3')*1.0324-67

    min 40

    max 80

    length 10

    direction 'E'

    update tack

}

 

Widget Uptime {

    class 'Text'

    expression uptime('%d days %H:%M:%S')

    width 20

    align 'R'

    prefix 'Up '

    update 1000

}

 

Widget keyup {

    class 'Keypad'

    position 'up'

    state 'pressed'

    expression currline = currline-1

}

 

Widget keydown {

    class 'Keypad'

    position 'down'

    state 'pressed'

    expression currline = currline+1

}

 

Layout Default {

    Row1 {

           ; Col1  'OS'

    }

    Row2 {

           ; Col1  'CPU'

           ; Col10 'RAM'

    }

    Row3 {

           ; Col1  'Busy'

           ; Col11 'BusyBar'

    }

    Row4 {

           ; Col1 'Load'

           ; Col11 'LoadBar'

    }

    Row5 {

           ; Col1  'Disk'

           ; Col11 'DiskBar'

    }

    Row6 {

           ; Col1  'Eth0'

           ; Col11 'Eth0Bar'

    }

    Keypad1 'keyup'

    Keypad2 'keydown'

}

 

Layout TestLayer {

    Row1 {

           ; Col1  'OS'

    }

    Row2 {

           ; Col1  'CPU'

           ; Col10 'RAM'

    }

    Row3 {

           ; Col1  'Busy'

           ; Col10 'Rain'

           ; Col11 'BusyBar'

    }

    Row4 {

           ; Col1 'Load'

           ; Col11 'LoadBar'

    }

    Row5 {

           ; Col1  'Disk'

           ; Col11 'DiskBar'

    }

    Row6 {

           ; Col1  'Eth0'

           ; Col11 'Eth0Bar'

    }

    Layer 2 {

           ; X1.Y1 'ImageTest'

    }

}

 

Layout TestImage {

    Layer 2 {

           ; X1.Y1 'ImageTest'

    }

}

 

Layout L24x8 {

    Row1 {

           ; Col1  'Load'

           ; Col11 'BusyBar'

    }

    Row2 {

    }

}

 

Layout L8x2 {

    Row1 {

           ; Col1  'Busy'

    }

    Row2 {

           ; Col1 'BarTest'

    }

}

 

Layout L16x1 {

    Row1 {

           ; Col1  'Busy'

           ; Col11 'BusyBar'

    }

}

 

Layout L16x2 {

    Row1 {

           ; Col1  'Busy'

           ; Col11 'BusyBar'

    }

    Row2 {

           ; Col1  'Disk'

           ; #Col11 'DiskBar'

           ; Col11 'BarTest'

    }

}

 

Layout L20x2 {

    Row1 {

        Col1  'CPUinfo'

    }

    Row2 {

           ; Col1  'Busy'

           ; Col11 'BusyBar'

    }

}

 

Layout L40x2 {

    Row1 {

           ; Col1  'OS'

           ; Col21 ; 'Busy'

           ; Col31 'BusyBar'

    }

    Row2 {

           ; Col1  'CPU'

           ; Col10 'RAM'

           ; Col21 'Load'

           ; Col31 'LoadBar'

    }

}

 

Layout Test {

    Row01.Col1 'Test1'

    Row02.Col1 'Test1'

    Row03.Col1 'Test1'

    Row04.Col1 'Test1'

    Row05.Col1 'Test1'

    Row06.Col1 'Test1'

    Row07.Col1 'Test1'

    Row08.Col1 'Test1'

    Row09.Col1 'Test1'

    Row10.Col1 'Test1'

    Row11.Col1 'Test1'

    Row12.Col1 'Test1'

    Row13.Col1 'Test1'

    Row14.Col1 'Test1'

    Row15.Col1 'Test1'

    Row16.Col1 'Test1'

    Row17.Col1 'Test1'

    Row18.Col1 'Test1'

    Row19.Col1 'Test1'

    Row20.Col1 'Test1'

    Row21.Col1 'Test1'

    Row22.Col1 'Test1'

    Row23.Col1 'Test1'

    Row24.Col1 'Test1'

}

 

Layout Test2 {

    Row01.Col1 'Test1'

    #Row02.Col1 'Rain'

    Row02.Col1 'Test2'

    Row03.Col1 'Test1'

    Row04.Col1 'Test2'

    Row05.Col1 'Test1'

    Row06.Col1 'Test2'

    Row07.Col1 'Test1'

    Row08.Col1 'Test2'

}

 

Layout TestGPO {

    Row1.Col1  'GPO_Val1'

    Row1.Col10 'GPI_Val1'

    Row2.Col1  'GPO_Val4'

    GPO1   ;    'GPO_Test255'

    GPO4   ;    'GPO_Test1'

}

 

Layout testMySQL {

           ; Row1 {

           ;           ;  Col1 'MySQLtest1'

           ; }

           ; Row2 {

           ;           ;  Col1 'MySQLtest2'

           ; }

}

 

Layout Debug {

    #Row09.Col1 'Test'

    Row09.Col1 'Heartbeat'

}

 

 

 

 

Display 'CF631'

 

Layout 'Default'

#Layout 'TestLayer'

#Layout 'TestImage'

#Layout 'L8x2'

#Layout 'L16x1'

#Layout 'L16x2'

#Layout 'L20x2'

#Layout 'L40x2'

#Layout 'Test'

#Layout 'Test2'

#Layout 'TestGPO'

#Layout 'Debug'

 

 

 

Thanks!  Any assistance that can be provided would be greatly appreciated.

 

Velocita Technology, Inc.

Frank Brandolino Jr.

50 Barney Drive

Joliet, IL  60435

(815)744-9595 PH

(815)744-4355 FX

URL:  www.vtjoliet.com   Emal:  frankbvtjoliet.com">mailto:frankbvtjoliet.com

 

Re: Crystalfontz 631 with lcd4linux rc2 ... button problems
user name
2007-08-14 04:03:20
Hi Frank,

> Using lcd4linux RC2 - 796 with Crystalfontz 631 display
and would like 
> to get the buttons to work.  I only need to use 2
buttons to simply 
> scroll up and down through a series of widgets.  I have
included my 
> current lcd4linux.conf file that I have created to be
able to scroll 
> through a list of different widgets, does anyone see
any problems??  
> What I get when using this lcd4linux.conf file with my
2 line 
> Crystalfontz display is only the first 2 lines, buttons
do not work …. Yet J

This will not work - you do initialize the variable
'currline', and 
increment/decrement it by a keypress, but you never use the
variable 


bye, michael

-- 
Michael Reinelt <reinelteunet.at>
http://home.pages.at/rei
nelt
GPG-Key 0xDF13BA50
ICQ #288386781

------------------------------------------------------------
-------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and
a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Lcd4linux-users mailing list
Lcd4linux-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcd4lin
ux-users

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )