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

Firebox LCD Driver for LCDProc

Scheduled Pinned Locked Moved Hardware
398 Posts 97 Posters 427.5k Views
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.
  • V
    vizi0n
    last edited by Oct 27, 2017, 12:18 AM May 27, 2017, 11:19 PM

    –EDITED POST--

    This might be the wrong way to disable the backlight off toggle because I am not a driver coder, but I have edited/compiled a sdeclcd.so that has "no timeout" on FreeBSD 10.3 (32 bit and 64 bit) and FreeBSD 11.1 (64 bit) virtual machines

    So far the 32 bit works great on my X750e and the 64 bit works on XTM5 according to networkBob

    Here's how I proceeded (from scratch on a new install of FreeBSD)

    
    pkg install automake autoconf gcc git nano
    cd ~
    git clone http://github.com/lcdproc/lcdproc
    cd lcdproc
    nano server/drivers/sdeclcd.c
    ----- change BACKLIGHT_OFF to BACKLIGHT_ON on lines 650 and 676 then save CTRL-X, Y, ENTER
    sh ./autogen.sh
    ./configure --enable-drivers=sdeclcd
    make server
    
    

    This will generate ~/lcdproc/server/drivers/sdeclcd.so which you can copy somewhere in order to download it to your pfSense box by FTP or whatever method you prefer.

    If you don't want to compile it yourself, you can grab the ones I have compiled at the following links or as an attachment to this post

    pfSense 2.3 (FreeBSD 10.3)

    • 32 bit version : http://www.vizi0n.com/watchguard/sdeclcd.so.32bit.zip
    • 64 bit version : http://www.vizi0n.com/watchguard/sdeclcd.so.64bit.zip

    pfSense 2.4 (FreeBSD 11.1)

    • 64 bit version : http://www.vizi0n.com/watchguard/sdeclcd.so.freebsd11.zip
    • 32 bit version : none, pfSense has no 32 bit release since 2.4

    You need to extract the zip file's content and move it it /usr/local/lib/lcdproc/
    Then make sure that you run "chmod +x sdeclcd.so" to make it executable

    Feel free to edit my post if the method I haved used is not the proper way to bypass that timeout in the driver.

    sdeclcd.so.64bit.zip
    sdeclcd.so.32bit.zip
    sdeclcd.so.64bit.freebsd11.zip

    1 Reply Last reply Reply Quote 0
    • D
      dhoffman98
      last edited by May 28, 2017, 10:38 PM

      @vizi0n:

      I am not a driver coder, this might be the wrong way, but I have compiled a sdeclcd.so that has "no timeout" on a i386 FreeBSD 10.3 virtual machine.

      So far it works great on my x750e.

      All I did was edit "sdeclcd.c" and replace "BACKLIGHT_OFF" to "BACKLIGHT_ON" on lines 650 and 676

      Hope this works for you

      You can grab it here : http://www.vizi0n.com/watchguard/sdeclcd.so or as an attachment to this post

      Feel free to edit my post if the method I haved used is not the proper way to remove that timeout.

      That made LCDProc fail on startup. If I went into the services status, it showed LCDproc not started, and when I tried to start, it just failed.

      Error in the system log: Could not open driver module /usr/local/lib/lcdproc/sdeclcd.so: /usr/local/lib/lcdproc/sdeclcd.so: unsupported file layout

      But I'm happy that you tried! Thank you for that.

      1 Reply Last reply Reply Quote 0
      • S
        stephenw10 Netgate Administrator
        last edited by May 29, 2017, 3:45 PM

        On 32bit?  ;)

        1 Reply Last reply Reply Quote 0
        • N
          networkBob
          last edited by May 30, 2017, 5:54 AM

          @vizi0n:

          I am not a driver coder, this might be the wrong way, but I have compiled a sdeclcd.so that has "no timeout" on a i386 FreeBSD 10.3 virtual machine.

          So far it works great on my x750e.

          All I did was edit "sdeclcd.c" and replace "BACKLIGHT_OFF" to "BACKLIGHT_ON" on lines 650 and 676

          Hope this works for you

          You can grab it here : http://www.vizi0n.com/watchguard/sdeclcd.so or as an attachment to this post

          Feel free to edit my post if the method I haved used is not the proper way to remove that timeout.

          Thank you so much for the effort, vizi0n. However, this did not work on my 64-bit XTM515 box.

          As noted by dhoffman98, LCDproc failed to start after replacing the release sdeclcd.so file with your modified version. Maybe it has to do with the 64-bit architecture vs 32-bit. I do not possess the required knowledge to know.

          I tried messing around with online C compilers but got super frustrated trying to find a way to compile to a .so file. It seems to me that eliminating the timeout would be more complicated than, say, increasing the timeout from 30 seconds to 300,000 seconds, although that would add a tiny amount of processor overhead.

          Watchguard XTM525 running pfSense 2.4.1

          1 Reply Last reply Reply Quote 0
          • S
            stephenw10 Netgate Administrator
            last edited by May 30, 2017, 12:30 PM

            Yes, you need a 64bit driver to run in 64bit. That error is what you see when you try to load a 32bit driver.

            Steve

            1 Reply Last reply Reply Quote 0
            • V
              vizi0n
              last edited by May 30, 2017, 10:18 PM

              Yes this driver is for 32 bit, I can recompile it for 64 bit later tonight for you fancy 64 bit folks  :P

              1 Reply Last reply Reply Quote 0
              • V
                vizi0n
                last edited by May 30, 2017, 10:40 PM

                I have updated my previous post with both drivers as separate attachments

                32 bit version : http://www.vizi0n.com/watchguard/sdeclcd.so.32bit.zip
                64 bit version : http://www.vizi0n.com/watchguard/sdeclcd.so.64bit.zip

                Please confirm if the 64 bit works as I have no way to test it. Also make sure that you run "chmod +x sdeclcd.so" to make it executable

                1 Reply Last reply Reply Quote 0
                • N
                  networkBob
                  last edited by May 30, 2017, 11:51 PM

                  Thank you, vizi0n. That worked on my XTM515 box (running 2.3.4 amd64)! Now the backlight stays on! I am happy and frankly kinda giddy. I appreciate your help.

                  Cheers

                  Watchguard XTM525 running pfSense 2.4.1

                  1 Reply Last reply Reply Quote 0
                  • V
                    vizi0n
                    last edited by May 30, 2017, 11:54 PM

                    @networkBob:

                    Thank you, vizi0n. That worked on my XTM515 box (running 2.3.4 amd64)! Now the backlight stays on! I am happy and frankly kinda giddy. I appreciate your help.

                    Cheers

                    You're welcome

                    1 Reply Last reply Reply Quote 0
                    • W
                      whitexp
                      last edited by May 31, 2017, 4:23 PM

                      hi guys ,
                      offtopic :

                      any lcd recomend for work with pfsense ?

                      thanks .

                      1 Reply Last reply Reply Quote 0
                      • StlCardsFanJRS
                        StlCardsFanJR
                        last edited by Aug 10, 2017, 8:53 PM

                        @vizi0n:

                        I have updated my previous post with both drivers as separate attachments

                        32 bit version : http://www.vizi0n.com/watchguard/sdeclcd.so.32bit.zip
                        64 bit version : http://www.vizi0n.com/watchguard/sdeclcd.so.64bit.zip

                        Please confirm if the 64 bit works as I have no way to test it. Also make sure that you run "chmod +x sdeclcd.so" to make it executable

                        I apologize in advance if this is a stupid question. I opened the file "sdeclcd.so.64bit.zip" and noticed the "__MACOSX" folder. I don't have a Mac.

                        1 Reply Last reply Reply Quote 0
                        • V
                          vizi0n
                          last edited by Aug 12, 2017, 1:51 PM Aug 11, 2017, 7:02 PM

                          I don't have a Mac.

                          I do haha. Sorry, I did not notice that it had added this folder. I thought I had zipped it on my VM. You only need the .so file inside the zip

                          EDIT: I have updated both zip files to remove the __MACOSX folder

                          1 Reply Last reply Reply Quote 0
                          • M
                            maksimred
                            last edited by Aug 15, 2017, 4:53 PM

                            @networkBob:

                            Thank you, vizi0n. That worked on my XTM515 box (running 2.3.4 amd64)! Now the backlight stays on! I am happy and frankly kinda giddy. I appreciate your help.

                            Cheers

                            Hi, How did you manage to get pfsense loaded on your XTM 515? I have a XTM 535 and want to load pfsense, but no write up is available. From what I understand 515 and 535 have the same internals, only software locked by watchguard.

                            1 Reply Last reply Reply Quote 0
                            • S
                              stephenw10 Netgate Administrator
                              last edited by Aug 15, 2017, 6:12 PM

                              Replied in the XTM 5 thread.

                              Please don't double post. This thread is specifically for questions about the LCD driver. And it's included upstream in LCDproc now anyway.

                              Steve

                              1 Reply Last reply Reply Quote 0
                              • N
                                networkBob
                                last edited by Oct 26, 2017, 10:10 PM

                                @vizi0n:

                                I have updated my previous post with both drivers as separate attachments

                                32 bit version : http://www.vizi0n.com/watchguard/sdeclcd.so.32bit.zip
                                64 bit version : http://www.vizi0n.com/watchguard/sdeclcd.so.64bit.zip

                                Please confirm if the 64 bit works as I have no way to test it. Also make sure that you run "chmod +x sdeclcd.so" to make it executable

                                Oh dang the backlight turns off now after pfSense 2.4.1 update. Any ideas? Could this be a file signing issue?

                                Cheers

                                Watchguard XTM525 running pfSense 2.4.1

                                1 Reply Last reply Reply Quote 0
                                • V
                                  vizi0n
                                  last edited by Oct 26, 2017, 10:13 PM

                                  @networkBob:

                                  @vizi0n:

                                  I have updated my previous post with both drivers as separate attachments

                                  32 bit version : http://www.vizi0n.com/watchguard/sdeclcd.so.32bit.zip
                                  64 bit version : http://www.vizi0n.com/watchguard/sdeclcd.so.64bit.zip

                                  Please confirm if the 64 bit works as I have no way to test it. Also make sure that you run "chmod +x sdeclcd.so" to make it executable

                                  Oh dang the backlight turns off now after pfSense 2.4.1 update. Any ideas? Could this be a file signing issue?

                                  Cheers

                                  Even after reuploading the file?

                                  32-bit support has been deprecated and removed – There are no images available for 32-bit (x86/i386) Intel architecture systems

                                  Awww its the end for the updates on my x750e :(

                                  1 Reply Last reply Reply Quote 0
                                  • N
                                    networkBob
                                    last edited by Oct 26, 2017, 10:31 PM

                                    Yes, I tried that. I also tried:
                                    1. deleting the sdeclcd.so file and replacing with fresh downloaded copy
                                    2. uninstalling LCDProc package and reinstalling
                                    3. rebooting

                                    Maybe I missed something, or maybe 2.4.1 added a file signing feature for security? I'll keep trying…

                                    Watchguard XTM525 running pfSense 2.4.1

                                    1 Reply Last reply Reply Quote 0
                                    • V
                                      vizi0n
                                      last edited by Oct 26, 2017, 10:37 PM

                                      Aaah 2.4 is using FreeBSD 11, mine were compiled on 10.3

                                      I will create new ones

                                      1 Reply Last reply Reply Quote 0
                                      • V
                                        vizi0n
                                        last edited by Oct 27, 2017, 12:14 AM Oct 26, 2017, 11:00 PM

                                        Can you try this one ?

                                        http://vizi0n.com/watchguard/sdeclcd.so.freebsd11.zip

                                        1 Reply Last reply Reply Quote 0
                                        • N
                                          networkBob
                                          last edited by Oct 26, 2017, 11:31 PM

                                          Thank you so much, Vizi0n. I can confirm that your new file works on pfSense 2.4.1. This new modified LCDproc sdecled.so file keeps the LCD backlight powered on forever. These are the steps I used:

                                          1)  stop the LCDproc service
                                          2)  open console shell
                                          3)  mv /usr/local/lib/lcdproc/sdeclcd.so /usr/local/lib/lcdproc/sdeclcd.so.bak
                                          4)  fetch http://vizi0n.com/watchguard/sdeclcd.so.freebsd11.zip
                                          5)  unzip sdeclcd.so.freebsd11.zip
                                          6)  cp sdeclcd.so /usr/local/lib/lcdproc
                                          7)  chmod +x sdeclcd.so

                                          Cheers

                                          Watchguard XTM525 running pfSense 2.4.1

                                          1 Reply Last reply Reply Quote 0
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received