|
List Info
Thread: Crystalfontz 631 with lcd4linux rc2 ... button problems
|
|
| Crystalfontz 631 with lcd4linux rc2 ...
button problems |
  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:
[root asterisk1 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' | |