canis_lupus l33t
Joined: 22 Dec 2005 Posts: 773 Location: Kraków
|
Posted: Thu Sep 13, 2007 2:18 pm Post subject: lcd4linux - problem ze startowaniem |
|
|
init podczas startu lcd4linux wywala mi takie coś:
Code: | * Service lcd4linux starting
Failed to start lcd4linux. Did you remember to set up /etc/lcd4linux.conf? [ !! ]
* ERROR: lcd4linux failed to start
|
Mój lcd4linux.con wygląda tak:
Code: | Display LCD-Linux {
Driver 'LCD-Linux'
Size '20x2'
UseBusy 0
}
# generic HD44780 display (LCD4Linux wiring)
Display HD44780-generic {
Driver 'HD44780'
Model 'generic'
Port '0x378'
Size '20x2'
asc255bug 0
Wire {
RW 'GND'
RS 'AUTOFD'
ENABLE 'STROBE'
ENABLE2 'GND'
GPO 'INIT'
}
}
# generic HD44780 display (WinAmp wiring)
Display HD44780-winamp {
Driver 'HD44780'
Model 'generic'
UseBusy 0
Port '/dev/parport0'
Size '20x4'
Icons 1
Wire {
RW 'AUTOFD'
RS 'INIT'
ENABLE 'STROBE'
# ENABLE2 'GND'
# GPO 'GND'
}
}
Plugin Seti {
Directory '/root/setiathome-3.08.i686-pc-linux-gnu'
}
Plugin MySQL {
server 'gsmlandia.com' # if none, localhost assumed
port 3306 # if none, MySQL default assumed
user 'lcd4linux' # if none, lcd4linux unix owner assumed
password 'lcd4linux' # if none, empty password assumed
database 'lcd4linux' # MUST be specified
}
Plugin Pop3 {
server1 'localhost'
port1 110
user1 'michael'
password1 'secret'
}
Widget OS {
class 'Text'
expression '*** '.uname('sysname').' '.uname('release').' ***'
width 20
align 'M'
speed 100
update tick
}
Widget CPU {
class 'Text'
expression cpuinfo('cpu MHz')*0.001325
#prefix 'Cpu'
postfix ' GHz'
width 8
precision 4
align 'L'
update 300
}
Widget RAM {
class 'Text'
expression (meminfo('MemTotal')-meminfo('MemFree'))/1024
prefix 'Ram '
postfix 'MB'
width 9
precision 0
align 'R'
update 500
}
Widget RamBar {
class 'Bar'
expression (meminfo('MemTotal')-meminfo('MemFree'))/1024
expression2 (meminfo('SwapTotal')-meminfo('SwapFree'))/2048
length 10
max 1024
style 'H'
direction 'E'
update 1000
}
Widget Busy {
class 'Text'
expression proc_stat::cpu('busy', 500)
prefix 'Cpu'
postfix '%'
width 9
precision 0
align 'R'
update 1000
}
Widget BusyBar {
class 'Bar'
expression proc_stat::cpu('busy', 250)
expression2 proc_stat::cpu('system', 250)
length 10
max 100
style 'H'
direction 'E'
update 200
}
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', 1500)/1024
prefix 'Net'
postfix 'KB'
width 9
precision 0
align 'R'
update 500
}
Widget Eth0Bar {
class 'Bar'
expression netdev('eth0', 'Rx_bytes', 1000)/1024
expression2 netdev('eth0', 'Tx_bytes', 1000)/135
length 10
style 'H'
min 0
max 512
direction 'E'
update 210
}
Widget PPP {
class 'Text'
expression (ppp('Rx:0', 500)+ppp('Tx:0', 500))
prefix 'PPP'
width 9
precision 0
align 'R'
update tick
}
Widget Temp {
class 'Text'
expression i2c_sensors('temp2_input')
prefix 'Temp'
# postfix 'C'
width 8
precision 0
align 'R'
update 3000
}
Widget TempBar {
class 'Bar'
expression i2c_sensors('temp_input1')*1.0324-67
min 40
max 80
length 10
direction 'E'
update tack
}
Widget Uptime {
class 'Text'
expression uptime('%d:%H:%M')
width 14
align 'R'
prefix 'Uptime '
update 30000
}
Widget BarTestVal {
class 'Text'
expression test::bar(0,100,50,0)
prefix 'Test '
width 9
update 200
}
Widget LightningTest {
class 'icon'
speed 500
visible test::onoff(0)
bitmap {
row1 '...***'
row2 '..***.'
row3 '.***..'
row4 '.****.'
row5 '..**..'
row6 '.**...'
row7 '**....'
row8 '*.....'
}
}
# Icons
Widget Cel {
class 'icon'
speed 500
# visible cpu('busy', 500)-50
bitmap {
row1 '**...|.....'
row2 '**...|.....'
row3 '..**.|..**.'
row4 '.*..*|.*..*'
row5 '.*...|.*...'
row6 '.*...|.*...'
row7 '.*..*|.*..*'
row8 '..**.|..**.'
}
}
Layout L20x4 {
Row1 {
Col1 'Busy'
Col11 'BusyBar'
}
Row3 {
Col1 'Eth0'
Col11 'Eth0Bar'
}
Row4 {
Col1 'Ram'
Col11 'RamBar'
}
Row2 {
Col1 'Temp'
Col13 'CPU'
Col9 'Cel'
}
}
Display 'HD44780-winamp'
Layout 'L20x4'
Variables {
tick 500
tack 100
minute 60000
}
|
Nie widze tutaj błędów.
Jak uruchamiam
lcd4linux -F to program sie ładnie uruchamia lecz wypisuje w konsoli:
Code: | udelay: The file 'include/asm/msr.h' was missing at compile time.
udelay: Even if your CPU supports TSC, it will not be used!
udelay: You *really* should install msr.h and recompile LCD4linux!
|
Ale później chodzi ładnie. Czego to może byc wina? co to jest to msr.h i TSC? _________________ "I love you cię" Różyczko... |
|