From: Kaya S. <kay...@gm...> - 2011-10-15 04:20:30
|
Hi Michael, thanks for the response! I have managed to get as far as this: ---------------------------- Variables { tick 500 tack 100 } Widget TimerW { class 'Timer' expression n=LCD::GPI(1);nkey=n!=0?n:nkey active 1 update 100 } Widget Eth0 { class 'Text' expression (netdev('eth0', 'Rx_bytes', 500)+netdev('eth0', 'Tx_bytes', 500))/1024 prefix 'eth0' postfix 'B' width 9 precision 0 align 'R' update tick } Widget Eth0Bar { class 'Bar' expression netdev('eth0', 'Rx_bytes', 500) expression2 netdev('eth0', 'Tx_bytes', 500) length 9 direction 'E' update tack } Widget CPU { class 'Text' expression uname('machine') prefix 'CPU ' width 9 align 'L' update tick } Widget Busy { class 'Text' expression proc_stat::cpu('busy', 500) prefix 'CPU' postfix '%' width 10 precision 1 align 'R' update tick } Widget BusyBar { class 'Bar' expression proc_stat::cpu('busy', 500) expression2 proc_stat::cpu('system', 500) length 9 direction 'E' update tack } Widget GPO_kf1 { class 'GPO' expression button_text=nkey==3?uptime('%d days %H:%M:%S'):button_text;nkey==3?1:0 update 300 } Widget GPO_kf2 { class 'GPO' expression button_text=nkey==4?strftime('%a,%d/%m %H:%M:%S',time()):button_text;nkey==4?1:0 update 300 } Display picoLCD20x2 { Driver 'picoLCD' Size '20x2' Contrast 0 Backlight 1 Icons 6 } Layout L20x2 { Row1 { Col1 'Eth0' Col11 'Busy' } Row2 { Col1 'Eth0Bar' Col11 'BusyBar' } Layer1 { Timer1 'TimerW' GPO2 'GPO_kf1' GPO3 'GPO_kf2' } } Display 'picoLCD20x2' Layout 'L20x2' ------------------------------------------------- I have now upgraded to the SVN version off the site: lcd4linux-0.11.0-SVN as I compiled it myself. I now can display the desired content on the LCD but the software seems to SEGFAULT if I don't use the 'Layers'??? Additionally with the content provided I can't read anything from the F1-F4 keys either :-( Regards, Kaya On 10/15/2011 05:22 AM, Michael Reinelt wrote: > Hi Kaya, > > Could you provide a copy of your lcd4linux.conf? > > signal 2 is SIGINT, did you stop it with Ctrl-C or something? > > > regards, Michael > > Am 2011-10-12 21:01, schrieb Kaya Saman: >> Ok managed to get the display recognized as it was on the wrong USB >> header! >> >> However, when running: lcd4linux -Fvv >> >> I get: >> >> # cat lcd >> Version 0.10.1-RC1-768 starting >> plugin_cfg.c: Variable n = '0' (0) >> plugin_cfg.c: Variable nkey = '0' (0) >> [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 picoLCD >> picoLCD: $Rev: 759 $ >> picoLCD: scanning for picoLCD... >> picoLCD: found picoLCD on bus 004 device 002 >> picoLCD: Manufacturer='ITUNER INC' Product='USB-LCD-20x2' >> SerialNumber='1.57rel.' >> Setting contrast to 0 >> Setting backlight to 1 >> picoLCD: reserving 6 of 8 user-defined characters for icons >> picoLCD: using 0 GPI's and 8 GPO's >> initializing layout 'L20x2' >> lcd4linux.c: starting main loop >> lcd4linux.c: got signal 2 >> lcd4linux.c: leaving main loop >> picoLCD: shutting down. >> >> >> with a whole bunch of these errors: >> >> picoLCD::GPI(1): GPI out of range (1..0) >> picoLCD::GPI(1): GPI out of range (1..0) >> picoLCD::GPI(1): GPI out of range (1..0) >> picoLCD::GPI(1): GPI out of range (1..0) >> picoLCD::GPI(1): GPI out of range (1..0) >> picoLCD::GPI(1): GPI out of range (1..0) >> picoLCD::GPI(1): GPI out of range (1..0) >> picoLCD::GPI(1): GPI out of range (1..0) >> picoLCD::GPI(1): GPI out of range (1..0) >> picoLCD::GPI(1): GPI out of range (1..0) >> picoLCD::GPI(1): GPI out of range (1..0) >> picoLCD::GPI(1): GPI out of range (1..0) >> picoLCD::GPI(1): GPI out of range (1..0) >> >> >> and additionally this error too: >> >> Starting lcd4linux: error evaluating variable 'button_text' from >> /etc/lcd4linux.conf >> >> >> Can anyone help me with that? >> >> >> Thanks, >> >> >> Kaya >> >> >> >> -------- Original Message -------- >> Subject: PicoLCD from Mini-Box M300 not detecting? >> Date: Wed, 12 Oct 2011 21:17:31 +0300 >> From: Kaya Saman <kay...@gm...> >> To: lcd...@li... >> >> >> >> Hi, >> >> I'm totally new to working with LCD's and linux. I purchased a Mini-Box >> Mini-ITX case with 20x2 PicoLCD module embedded to run on a Trixbox >> based Asterisk server. >> >> The display lights up and information is displayed on the panel and the >> keyboard works at least for the power key. >> >> I hooked it up via the on-board USB connector to the internal USB header >> on the system board. >> >> >> I have the wiring diagram for it at hand even though came pre-wired but >> still I think all that was needed was to attach the USB cable to the >> system board..... >> >> >> Anyway, when I run the lcd4linux command I get this output: >> >> # lcd4linux -Fvv >> Version 0.10.1-RC1-768 starting >> error evaluating variable 'button_text' from /etc/lcd4linux.conf >> plugin_cfg.c: Variable n = '0' (0) >> plugin_cfg.c: Variable nkey = '0' (0) >> [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 picoLCD >> picoLCD: $Rev: 759 $ >> picoLCD: scanning for picoLCD... >> picoLCD: could not find a picoLCD >> >> How come that it isn't finding the picoLCD device? >> >> >> I took the sample configuration from here: >> >> http://ssl.bulix.org/projects/lcd4linux/wiki/picoLCD >> >> >> and also checked out this as well: >> >> http://ssl.bulix.org/projects/lcd4linux/ticket/265 >> >> but am a bit confused? >> >> >> Can anyone give me a hand as to what is going on? >> >> >> >> >> This is the output of uname -a: >> >> 2.6.18-128.1.10.el5 #1 SMP Thu May 7 10:39:21 EDT 2009 i686 i686 i386 >> GNU/Linux >> >> >> >> lsusb doesn't actually show anything either? >> >> >> # lsusb >> Bus 005 Device 001: ID 0000:0000 >> Bus 001 Device 001: ID 0000:0000 >> Bus 002 Device 001: ID 0000:0000 >> Bus 002 Device 002: ID 0b38:0003 Gear Head Keyboard >> Bus 003 Device 001: ID 0000:0000 >> Bus 004 Device 001: ID 0000:0000 >> >> >> >> Many thanks!! >> >> >> Kaya >> >> >> >> ------------------------------------------------------------------------------ >> >> All the data continuously generated in your IT infrastructure contains a >> definitive record of customers, application performance, security >> threats, fraudulent activity and more. Splunk takes this data and makes >> sense of it. Business sense. IT sense. Common sense. >> http://p.sf.net/sfu/splunk-d2d-oct >> >> >> >> _______________________________________________ >> Lcd4linux-users mailing list >> Lcd...@li... >> https://lists.sourceforge.net/lists/listinfo/lcd4linux-users > |