This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Hack: LCD4Linux w/ Network Graphs

I have gotten LCD4Linux working on ASL 3 & 5 with CPU and Network Graphs.

LCD4Linux Home Page 

Notes:
You should put your LCD on COM2. Some versions of ASL seems to have their own uses for COM1.
COM2 is /dev/ttyS1

ASL has it's own /dev/lcd.
I recommend leaving it alone and using
/dev/ttyS1

I compiled from the CVS version of LCD4Linux as the last release is very old and lacking in features I needed.

I have it configured for CrystalFontz 634 v2.0, but you can change the config file for any supported LCD. All the LCD drivers are compiled in.

It will take about 5 secs to startup on the CF634 because I had to add a delay due to a bug in my display version.

Different versions of the 634 use different baud rates. Try 9600 if you have trouble.

1st config file shows:
CPU load in Percent. Upper graph is total, lower half is system.
Eth0 traffic
Eth1 traffic
Eth2 traffic

(Numbers are in kiloBytes)

Wireless config file replaces CPU with WLAN0 traffic.
(I couldn't get the signal quality, etc., working with ASL/HostAP driver, so it just shows traffic.)


Instructions:
Put the files somewhere on your ASL box.
chown root.root lcd4linux*
chmod 755 lcd4linux.conf
chmod 600 lcd4linux.conf    # IT WON'T RUN IF YOU DON'T DO THIS
as root, run
./lcd4linux -f lcd4linux.conf

Once you're happy with it, you can add it to startup in somewhere like /etc/init.d/beeps


Downloads: 
Program 

Conf File

Conf File w/ Wireless Nic  

Enjoy!

Barry


This thread was automatically locked due to age.
Parents
  • anyone know where to get crystalfontz displays in the UK or Europe even?
  • Hi looks great but i get the following error:
    [i2c_sensors] Impossible to open /sys/bus/i2c/devices/! Is /sys mounted?
    [i2c_sensors] Impossible to open /proc/sys/dev/sensors/! Is i2c_proc loaded ?
    [i2c_sensors] No i2c sensors found via the i2c interface !
    [i2c_sensors] Try to specify the path to the sensors !

    running 5.15

    any idea ?
  • I am facing the same problem on 5.015
    although im trying to work on some sort of a hack for it. if i do ill post it here.

    Regards
    Hassun
  • [ QUOTE ]
    I am facing the same problem on 5.015
    although im trying to work on some sort of a hack for it. if i do ill post it here.

    Regards
    Hassun 

    [/ QUOTE ]

    I have it working !
    im using crystalfontz 634 USB LCD display on astaro v5.015.
    apparently you have to do a few more things to get the LCD working . Barry's configuration file and the statically compiled CVS binary were of great help though.

    here are the steps that i followed
    1. modprobe -v ftdi_sio
    2. modprobe -v usb-uhci

    you could do "tail /var/log/kernel.log" to check if it picked up your USB LCD display and which device file was it mapped to.

    3. sleep 2 (if you put it in a script; make sure to give it a little time)
    4. lcd4linux -f lcd4linux.conf (barry)

    although you would still get the same error message but it works. if it doesnt work, check the device file specified in the configuration , and at the bottom of the configuration file, also check
    Display 'CF634' is actually pointing to your lcd display device
    and also make sure that your Layout variable corresponds to the lines you have in your lcd display.

    my lcd display was "/dev/ttyUSB0" ( make appropriate changes in the configuration file). im using astaro v5.015.
  •  [ QUOTE ]
     Hi looks great but i get the following error:
    [i2c_sensors] Impossible to open /sys/bus/i2c/devices/! Is /sys mounted?
    [i2c_sensors] Impossible to open /proc/sys/dev/sensors/! Is i2c_proc loaded ?
    [i2c_sensors] No i2c sensors found via the i2c interface !
    [i2c_sensors] Try to specify the path to the sensors !
     

    [/ QUOTE ] 

    Those are warnings, not fatal errors... it's looking for the motherboard sensor drivers for temperature, voltage, etc.
    They are not needed for the network graphs.

    Barry
Reply
  •  [ QUOTE ]
     Hi looks great but i get the following error:
    [i2c_sensors] Impossible to open /sys/bus/i2c/devices/! Is /sys mounted?
    [i2c_sensors] Impossible to open /proc/sys/dev/sensors/! Is i2c_proc loaded ?
    [i2c_sensors] No i2c sensors found via the i2c interface !
    [i2c_sensors] Try to specify the path to the sensors !
     

    [/ QUOTE ] 

    Those are warnings, not fatal errors... it's looking for the motherboard sensor drivers for temperature, voltage, etc.
    They are not needed for the network graphs.

    Barry
Children
  • Someone asked for a link to my more recent version:

    I've put what I have at
    (link deleted)

    It's Version 0.10.1-RC2-796, statically compiled, and it should run on any version of Astaro (it definitely works on 7.x).

    The config file is for my cf634 v2.0 but, this version of LCD4Linux has issues with my LCD. (it doesn't initialize the display correctly, so the contrast is way off, making the screen impossible to read except at a sharp angle)

    I don't remember for sure, but it's probably compiled only with the CF634 driver.

    If you have a linux machine, it's not hard to compile. Make sure you do it with the STATIC option.

    Barry