From: Frank B. <fr...@ve...> - 2007-08-13 00:26:38
|
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 :-) =20 When I use the lcd4linux -Fvv command I get: =20 [root@asterisk1 bin]# lcd4linux -Fvv Version 0.10.1-RC2-796 starting plugin_cfg.c: Variable currline =3D '1' (1) plugin_cfg.c: Variable minute =3D '60000' (60000) plugin_cfg.c: Variable tack =3D '100' (100) plugin_cfg.c: Variable tick =3D '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 =20 =20 =20 My current lcd4linux.conf file is: =20 Variables { tick 500 tack 100 minute 60000 currline 1 } =20 Display CF631 { Driver 'Crystalfontz' Model '631' Port '/dev/ttyUSB0' Speed 115200 Contrast 95 Backlight 50 Icons 1 } =20 =20 Widget OS { class 'Text' expression '*** '.uname('sysname').' '.uname('release').' ***' width 20 align 'M' style 'bold' speed 200 =20 update tick } =20 Widget CPU { class 'Text' expression uname('machine') prefix 'CPU ' width 9 align 'L' style test::onoff(7)>0?'bold':'norm' update tick } =20 =20 Widget CPUinfo { class 'Text' expression cpuinfo('model name') prefix '' width 20 align 'M' speed 100 =20 update tick } =20 =20 Widget RAM { class 'Text' expression meminfo('MemTotal')/1024 postfix ' MB RAM' =20 width 11 precision 0 align 'R' update tick } =20 Widget Busy { class 'Text' expression proc_stat::cpu('busy', 500) prefix 'Busy' =20 postfix '%' =20 width 9 =20 precision 1 align 'R' =20 update tick =20 } =20 =20 Widget BusyBar { class 'Bar' expression proc_stat::cpu('busy', 500) expression2 proc_stat::cpu('system', 500) length 10 =20 direction 'E' update tack } =20 Widget Load { class 'Text' expression loadavg(1) prefix 'Load' postfix loadavg(1)>1.0?'!':' ' width 10 precision 1 align 'R' update tick } =20 Widget LoadBar { class 'Bar' expression loadavg(1) max 2.0 length 10 =20 direction 'E' update tack } =20 =20 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 =20 precision 0 align 'R' =20 update tick =20 } =20 =20 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 =20 direction 'E' update tack } =20 Widget Eth0 { class 'Text' expression (netdev('eth0', 'Rx_bytes', 500)+netdev('eth0', 'Tx_bytes', 500))/1024 prefix 'eth0' postfix ' ' width 10 =20 precision 0 align 'R' =20 update tick =20 } =20 =20 Widget Eth0Bar { class 'Bar' expression netdev('eth0', 'Rx_bytes', 500) expression2 netdev('eth0', 'Tx_bytes', 500) length 14 =20 direction 'E' update tack } =20 Widget PPP { class 'Text' expression (ppp('Rx:0', 500)+ppp('Tx:0', 500)) prefix 'PPP' width 9 precision 0 align 'R' update tick } =20 Widget RAMused { class 'Text' expression (meminfo('MemTotal')-meminfo('MemFree'))/1024 prefix 'RAM ' postfix '' width 8 precision 0 align 'R' update tick } =20 Widget Temp { class 'Text' expression i2c_sensors('temp_input3')*1.0324-67 prefix 'Temp' width 9 precision 1 align 'R' update tick } =20 Widget TempBar { class 'Bar' expression i2c_sensors('temp_input3')*1.0324-67 min 40 max 80 length 10 direction 'E' update tack } =20 Widget Uptime { class 'Text' expression uptime('%d days %H:%M:%S') width 20 align 'R' prefix 'Up ' update 1000 } =20 Widget keyup { class 'Keypad' position 'up' state 'pressed' expression currline =3D currline-1 } =20 Widget keydown { class 'Keypad' position 'down' state 'pressed' expression currline =3D currline+1 } =20 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' } =20 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' } } =20 Layout TestImage { Layer 2 { X1.Y1 'ImageTest' } } =20 Layout L24x8 { Row1 { Col1 'Load' Col11 'BusyBar' } Row2 { } } =20 Layout L8x2 { Row1 { Col1 'Busy' } Row2 { Col1 'BarTest' } } =20 Layout L16x1 { Row1 { Col1 'Busy' Col11 'BusyBar' } } =20 Layout L16x2 { Row1 { Col1 'Busy' Col11 'BusyBar' } Row2 { Col1 'Disk' #Col11 'DiskBar' Col11 'BarTest' } } =20 Layout L20x2 { Row1 { Col1 'CPUinfo' } Row2 { Col1 'Busy' Col11 'BusyBar' } } =20 Layout L40x2 { Row1 { Col1 'OS' Col21 'Busy' Col31 'BusyBar' } Row2 { Col1 'CPU' Col10 'RAM' Col21 'Load' Col31 'LoadBar' } } =20 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' } =20 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' } =20 Layout TestGPO { Row1.Col1 'GPO_Val1' Row1.Col10 'GPI_Val1' Row2.Col1 'GPO_Val4' GPO1 'GPO_Test255' GPO4 'GPO_Test1' } =20 Layout testMySQL { Row1 { Col1 'MySQLtest1' } Row2 { Col1 'MySQLtest2' } } =20 Layout Debug { #Row09.Col1 'Test' Row09.Col1 'Heartbeat' } =20 =20 =20 =20 Display 'CF631' =20 Layout 'Default' #Layout 'TestLayer' #Layout 'TestImage' #Layout 'L8x2' #Layout 'L16x1' #Layout 'L16x2' #Layout 'L20x2' #Layout 'L40x2' #Layout 'Test' #Layout 'Test2' #Layout 'TestGPO' #Layout 'Debug' =20 =20 =20 Thanks! Any assistance that can be provided would be greatly appreciated. =20 Velocita Technology, Inc. Frank Brandolino Jr. 50 Barney Drive Joliet, IL 60435 (815)744-9595 PH (815)744-4355 FX URL: www.vtjoliet.com <http://www.vtjoliet.com/> Emal: mailto:fr...@vt... =20 |