• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Firebox LCD Driver for LCDProc

Hardware
97
398
412.4k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S
    Sifter
    last edited by May 29, 2009, 8:10 PM

    Just bumpin this up, anyone?

    1 Reply Last reply Reply Quote 0
    • X
      Xmicrosoftie
      last edited by Aug 10, 2009, 5:43 AM

      I've been looking for a firewall to replace an aging netgear fsv box.  Stumbled on pfSense, found it to be pretty amazing, got a decommisioned Firebox x700 and replaced the cf card with a 4g and lcdproc on the 1.2.3rc1 embedded image.  Works like a champ.  Had some troulble getting lcdproc to work but after finding this thread and adding symlinks, all is good.  Was there any ever progress with controlling the lcd with the buttons on the firebox and a charmap that was discussed in this thread?  Sorry to resurrect an old thread but thought those that originally started it might have more insight.

      Thanks,
      Eric

      1 Reply Last reply Reply Quote 0
      • R
        ridnhard19
        last edited by Sep 23, 2009, 8:06 PM

        I've not done any work with mine at all. I started troubleshooting a problem with no connectivity and turned out the old firebox bit the dust  :(

        So I won't have a test system any more to work with this specific LCD.  BUT I did build a kick-ass system with a power efficient mini-itx board, 6 GIG E ports, 2 GIG of memory, fan less and quite all in a nice small metal case. Now I wonder how  I can squeeze an LCD in there  ::)

        I did have fun writing the driver for this. I've never written one before but sounds like a lot of you were able to make some use of it.

        1 Reply Last reply Reply Quote 0
        • J
          jjgoessens
          last edited by Oct 26, 2009, 9:28 PM

          Hello,

          I found where is the keyboard,  :) i just wrote a scanning program which tracks changes on all ports… ;D

          and if found the 4 pushbuttons are at address 0x379 !!

          for the moment, i am not able to reach the front panel lights...

          if it was easy to write a small test program, when i tried to modify sdeclcd to add the key_read routine, unfortunately, i encounter a lot of difficulties to compile it ???

          If someone could support me for that, so all fireboxes X series could enable the keyboard !

          Jean Jacques

          1 Reply Last reply Reply Quote 0
          • R
            ridnhard19
            last edited by Oct 27, 2009, 5:44 PM

            You have to download the source for lcdproc and modify the autoconfig scripts to find your sources. The best advice I have is to look at the lcdproc documentation on how to integrate a new driver and use the already established name of the files that I've posted. They have a whole
            section on how to develop drivers and integrate the
            with the autoconfig and autobuild scripts. Once you do that you can just type make :) after you run the configure script of course setting the parameter to include your driver.

            1 Reply Last reply Reply Quote 0
            • J
              jjgoessens
              last edited by Oct 27, 2009, 7:40 PM

              While you were writing, i found the developer documentation.

              i was not able to ./configure –enable-driver=all ... there was an error in the documentation, the right switch is --enable-drivers...

              unfortunately, i do not know why, the new driver i called sdeclcd2 becomes sdeclcd2SO in the makefile !!
              i corrected that manually and i am able to compile it ! :)

              Now, i am proud  ;D to tell that my driver is working fine, the 4 buttons returns "Left","Right","Up" and "Down" and i can change the screens.

              For sure, the main part of the program is your, not mine !!

              I will put in online in a few days because i prefer to test it before.

              About the name, do you want to keep this name ?

              Jean Jacques

              1 Reply Last reply Reply Quote 0
              • R
                ridnhard19
                last edited by Oct 27, 2009, 9:35 PM

                I'd prefer it say the same as it references the name of the LCD module that is being used in the fireboxes.  I think we should also submit the source code to the project so people can just download it as part of the normal distribution of LCDProc.  Then again i'm not sure if there is such of a "demand" to warrant a driver that is for something so specific.

                1 Reply Last reply Reply Quote 0
                • J
                  jjgoessens
                  last edited by Oct 27, 2009, 11:26 PM

                  I agree, it's a so specific driver that it may not included in lcdproc.

                  Anyway, it can be added to pfsense, maybe in download area for those who got a nice red firebox box (i like the color!)

                  I have made some tests, it works fine, it's nice in addition with lcdexec.

                  I prefer to have more feedback before giving it. Additionnally, i need to understand my compilation troubles, i certainely did someting wrong in the *.am files, but i do not see what for the moment.

                  nota : I removed the #include "shared/str.h", because it was giving me a compile error (file not found). It compiles without. Have you some idea?

                  Jean Jacques

                  1 Reply Last reply Reply Quote 0
                  • J
                    jjgoessens
                    last edited by Oct 28, 2009, 8:58 PM

                    Hello all,

                    I solved all my compile problems!
                    It was a mistake in Makefile.am …

                    so i tested th driver yesterday and today, it works.

                    here is attached the file, jst change the name : remove the .txt

                    make a copy of previous sdeclcd.so file, in case of trouble, you can reinstall it
                    copy it instead of original sdeclcd.so
                    restart LCDd

                    Then the 4 keys send messages "Up","Down","Left","Right"

                    So the standard LCDd.conf will work.

                    if you want to use my kbd setup, here it is :

                    PrevScreenKey=Down
                    NextScreenKey=Up

                    [menu]

                    MenuKey=Left
                    EnterKey=Right
                    UpKey=Up
                    DownKey=Down

                    Enjoy  :D

                    Jean Jacques

                    sdeclcd.so.txt

                    1 Reply Last reply Reply Quote 0
                    • J
                      jjgoessens
                      last edited by Nov 4, 2009, 11:39 PM

                      Hi all Fireboxes users!

                      Good news, I improved a little bit sdeclcd.so driver, by adding now a backlight timer.

                      here are instructions:

                      • backup your old sdeclcd.so to sdeclcd.so.bak, just in case of trouble, you can reinstall the previous one
                      • donwload sdeclcd.so.txt, rename it sdeclcd.so
                      • copy the new sdeclcd.so instead of the old
                      • edit the /usr/local/etc/LCDd.conf file and add in [sdeclcd] section:
                        ================================
                        Backlight_Timer=60 if you want 60 seconds
                        ================================
                        notice: if no entry is written in LCDd.conf, or if value is set to 0, the timer is disabled.
                      • you need to restart your lcdproc driver :
                      • killall LCDd
                      • LCDd
                      • lcdproc
                      • lcdexec (if you use it)
                        or reboot your Firebox
                        => after 60 seconds (or the time you decided), the backlight will turn off. any key will turn it on.  ;D

                      keep me informed of your trials.

                      Enjoy it  :)

                      Jean Jacques

                      sdeclcd.so.txt

                      1 Reply Last reply Reply Quote 0
                      • P
                        pootl
                        last edited by Nov 6, 2009, 9:21 PM

                        the contents of the tarball and linking the libs works fine for me but the *.so.txts you've posted don't work for me and I keep having to revert to the original. Tried downloading with different browsers and scpin' over differently but to no avail.

                        I'm using the 1.2.3-RC3 , as I said it works from the tar contents. Just wondering if the forum software or something has mangled the files.

                        1 Reply Last reply Reply Quote 0
                        • J
                          jjgoessens
                          last edited by Nov 6, 2009, 9:32 PM

                          Mmm

                          I dont like this!

                          can you describe what appends ?

                          if you try to start LCDd from console, do you get a message ?

                          enter in console mode : option 8
                          type:

                          killall LCCd
                          /usr/local/sbin/LCDd

                          I will try the downlod, because i did not tried it.

                          I am also running 1.2.3-rc3, so it should be the same.

                          JJ

                          1 Reply Last reply Reply Quote 0
                          • J
                            jjgoessens
                            last edited by Nov 6, 2009, 10:17 PM

                            I downloaded the file, size is not ok : 12098 bytes instead of 12022.

                            Here is the original file :

                            http://www.goessens.dyndns.org/public/sdeclcd.so

                            JJ

                            1 Reply Last reply Reply Quote 0
                            • P
                              pootl
                              last edited by Nov 9, 2009, 8:58 AM

                              Thanks so much , I'll test it today for you.

                              For the record what was happening was that when you started the daemon it would eventually say there was a timeout listening on the supplied port. It appeared as if the driver was damaged. Which it appears it was! I'll test today :D.

                              1 Reply Last reply Reply Quote 0
                              • P
                                pootl
                                last edited by Nov 9, 2009, 9:43 AM

                                Can confirm that this .so works with menu buttons and backlight , which is EXACTLY what i needed .

                                Thanks so much for the excellent work! Now to go slay some more firebox firmwares muhahhahahar :D.

                                1 Reply Last reply Reply Quote 0
                                • J
                                  jjgoessens
                                  last edited by Nov 9, 2009, 1:11 PM

                                  I am very happy that it works!

                                  effectively, when i compared the file .so.txt with original, i discover that the web site replaced all 0x0a bytes by the sequence 0x0d 0x0a, this explains why it is longer, and why it did not work!

                                  Windows compatibilty killed my program!

                                  I think the backlight timer is a necessary option, because it can save some power…

                                  I am working on another (and last ?) release with horizontal bars corrected and Vertical bars added.

                                  unfortanetly, as there are only 8 user chars, heartbeat graphics will not work with this version, i need to replace by other standard chars.

                                  I have also made some hardware improvement regarding fan control, in order to reduce the noise. I will describe that on my web site later...

                                  JJ

                                  1 Reply Last reply Reply Quote 0
                                  • B
                                    boblmartens
                                    last edited by Nov 9, 2009, 3:37 PM

                                    Awesome work being done. I'm wondering if there is any way you could get a guide up on how to install everything you are writing.

                                    Thanks!

                                    1 Reply Last reply Reply Quote 0
                                    • J
                                      jjgoessens
                                      last edited by Nov 13, 2009, 7:21 AM Nov 11, 2009, 2:53 PM

                                      Here is the last release:

                                      • H bar correction : uses now the whole height of display, nicer.
                                      • V bar addition, now can display cpu load vs time
                                      • Big clock support, now you can use it as a clock !

                                      unfortunately, as the number of user chars is very limited, the two latest adds makes the heartbeat unavailable.

                                      this is the version 1.0.3

                                      the original author is ridnhard19, who made the main part of the work.

                                      here are the files : http://goessens.dyndns.org/public

                                      for firebox users, just need to replace sdeclcd.so

                                      I also included the sources, maybe to use them for converting a retired Firebox to a Freenas, or maybe also a linux box (web server, mail server, …)

                                      maybe it is possible to place the files on the pfsense server ?

                                      JJ  :)

                                      bigclock.jpg
                                      bigclock.jpg_thumb
                                      cpu.jpg
                                      cpu.jpg_thumb

                                      1 Reply Last reply Reply Quote 0
                                      • R
                                        razor
                                        last edited by Dec 2, 2009, 8:54 PM

                                        Can someone please post a complete copy of there  /usr/local/etc/LCDd.conf file as I think I may have badly damaged mine, and I was stupid enough not to make a backup.

                                        1 Reply Last reply Reply Quote 0
                                        • J
                                          jjgoessens
                                          last edited by Dec 2, 2009, 9:05 PM

                                          Here it is :

                                          This is specific for sdeclcd 1.0.3 with keyboard & backlight timer.

                                          # LCDd.conf -- configuration file for the LCDproc server daemon LCDd
                                          [server]
                                          Driver=sdeclcd
                                          
                                          Bind=127.0.0.1
                                          Port=13666
                                          #ReportLevel=3
                                          #ReportToSyslog=yes
                                          WaitTime=10
                                          User=nobody
                                          ServerScreen=no
                                          # The server will stay in the foreground if set to true.
                                          #Foreground=no
                                          
                                          DriverPath=/usr/local/lib/lcdproc/
                                          #      12345678901234567890
                                          Hello="  pfSense  booting  "
                                          Hello="    please wait     "
                                          
                                          # GoodBye message: each entry represents a display line; default: builtin
                                          #        12345678901234567890
                                          GoodBye="  Pfsense 1.2.3 rc3 "
                                          GoodBye="  is shutting down  "
                                          
                                          TitleSpeed=0
                                          
                                          HeartBeat=off
                                          
                                          PrevScreenKey=Down
                                          NextScreenKey=Up
                                          
                                          ##ToggleRotateKey=Enter
                                          ##PrevScreenKey=Left
                                          ##NextScreenKey=Right
                                          #ScrollUpKey=Up
                                          #ScrollDownKey=Down
                                          
                                          [menu]
                                          
                                          MenuKey=Left
                                          EnterKey=Right
                                          UpKey=Up
                                          DownKey=Down
                                          
                                          # The following works excellent with 4 keys or more.
                                          ##MenuKey=Escape
                                          ##EnterKey=Enter
                                          ##UpKey=Up
                                          ##DownKey=Down
                                          
                                          # If you have 6 keys you may define these as well
                                          #LeftKey=Left
                                          #RightKey=Right
                                          
                                          # If you have only 3 keys, you could use something like this:
                                          #MenuKey=Escape
                                          #EnterKey=Enter
                                          #DownKey=Down
                                          
                                          ## Firebox specific driver ##
                                          [sdeclcd]
                                          BackLight=yes
                                          Backlight_Timer=60
                                          
                                          # EOF
                                          
                                          

                                          Jean Jacques

                                          1 Reply Last reply Reply Quote 0
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.