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

LCDProc 0.5.4-dev

pfSense Packages
68
587
595.7k
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
    stephenw10 Netgate Administrator
    last edited by Jun 6, 2014, 1:19 PM

    @kilthro
    The servce status only monitors LCDd, the server part, and not the client. So if the client dies you just see whatever the server is generating, possibly just the heartbeat. The php client is subject to maximum run time before pfSense automatically kills it, a feature that was introduced for all php processes. I'm not sure if that has been fixed yet, it is possible to call php in a way that prevent this.

    @nobita0313
    Ok, so I can see output from both just the server/driver and from the lcdproc client in your video and they all exhibit the same errors so it looks like a driver rpoblem of some sort.  :-\

    Steve

    1 Reply Last reply Reply Quote 0
    • N
      nobita0313
      last edited by Jun 6, 2014, 5:06 PM

      A clean install in a VM runs the package flawlessly, this is awkward. :(

      1 Reply Last reply Reply Quote 0
      • S
        stephenw10 Netgate Administrator
        last edited by Jun 6, 2014, 7:59 PM

        You mean using some sort of USB pass-through?

        What hardware are you using now? Perhaps it's some USB speed issue, maybe there's a bios setting to force it to usb 1 mode.  :-\

        Steve

        1 Reply Last reply Reply Quote 0
        • N
          nobita0313
          last edited by Jun 7, 2014, 7:38 AM

          The problem seems to be caused by packages conflicts. My clean installed pfsense suffered from the same problem only after I restored my setting. If I restore it without any other packages, lcdproc works fine. I had iperf, shellcmd, RRD Summary installed previously.

          1 Reply Last reply Reply Quote 0
          • S
            stephenw10 Netgate Administrator
            last edited by Jun 7, 2014, 11:01 AM

            Hmm, hard to see how any of those packages could have much effect on lcdproc or a USB device. Only if they're using most or all the CPU cycles for some reason.  :-\

            Steve

            1 Reply Last reply Reply Quote 0
            • D
              divsys
              last edited by Jun 7, 2014, 2:11 PM

              I'm no expert in this hardware area (hats off to Steve  8)), but I might add:

              The problem seems to be caused by packages conflicts. My clean installed pfsense suffered from the same problem only after I restored my setting. If I restore it without any other packages, lcdproc works fine. I had iperf, shellcmd, RRD Summary installed previously.

              Perhaps it would be worth a shot to restore without packages and then manually add the packages back one by one?  The manual rebuild will be a bit of a pain, but it removes the possibility of some leftover weirdness in the restore file.

              -jfp

              1 Reply Last reply Reply Quote 0
              • M
                matrix200
                last edited by Jun 30, 2014, 9:41 PM

                Hi, I have modified the original package a bit by disabling the LCDd execution and changing lcdproc.inc to connect to a different ip (vm host which actually has LCDd running and the hardware).
                Now my question is how can I make the status to detect it as running instead of using LCDd for status verification?
                I understand it does so by checking process list for LCDd?
                I suppose the easiest for now would be faking it by writing some binary named LCDd that does nothing and is retained in the process list?

                Also I would like to either make this configurable.
                That is add another gui page where it is possible to define ip/port of LCDd instead of configuring a local copy of LCDd daemon and make local LCDd settings optional if remote daemon is chosen.
                Is anybody interested in such feature?

                Current network "hardware" :
                Running 2.2RC in Virtualbox 4.2.16.

                Retired:
                ALIX2C2 , 4 gigabyte disk cf card running 2.0 (official release).

                1 Reply Last reply Reply Quote 0
                • S
                  stephenw10 Netgate Administrator
                  last edited by Jul 1, 2014, 2:58 AM Jul 1, 2014, 2:50 AM

                  It's been a while since I looked but I believe the service monitored is listed in the package config xml file.

                  Edit: Yep in the <service>section in lcdproc.xml

                  Steve</service>

                  1 Reply Last reply Reply Quote 0
                  • M
                    matrix200
                    last edited by Jul 1, 2014, 6:32 AM

                    Yeah, but I am not sure what I should write in there to make it work.
                    I can't obviously right php because thats what is actually running.
                    So I guess I need to write a custom is_running function instead?

                    Current network "hardware" :
                    Running 2.2RC in Virtualbox 4.2.16.

                    Retired:
                    ALIX2C2 , 4 gigabyte disk cf card running 2.0 (official release).

                    1 Reply Last reply Reply Quote 0
                    • S
                      stephenw10 Netgate Administrator
                      last edited by Jul 1, 2014, 2:03 PM

                      I believe that the Status: Services: page just greps for whatever is in the 'executable' field in the output of ps so you should be able to put the php client in there. Try it and see.

                      Steve

                      1 Reply Last reply Reply Quote 0
                      • M
                        matrix200
                        last edited by Jul 1, 2014, 3:09 PM

                        Tried to put both in lcdproc.xml and config.xml  the string lcdproc.php (that should have been enough right?) and nada.
                        Still shows as stopped.

                        Current network "hardware" :
                        Running 2.2RC in Virtualbox 4.2.16.

                        Retired:
                        ALIX2C2 , 4 gigabyte disk cf card running 2.0 (official release).

                        1 Reply Last reply Reply Quote 0
                        • S
                          stephenw10 Netgate Administrator
                          last edited by Jul 1, 2014, 4:29 PM

                          You re-installed lcdproc with the changed file?

                          Steve

                          1 Reply Last reply Reply Quote 0
                          • M
                            matrix200
                            last edited by Jul 1, 2014, 4:42 PM

                            No, but I ran some other tests which I think mean it doesn't just check ps output.
                            I wrote a shellscript that just sleeps for a while and called it LCDd.
                            Obviously if I do ps | grep LCDd it returns a non empty result.
                            Yet the service appears to be stopped while the script is running.
                            Does it have to literally match the executable string or can I just use a part of it?
                            So does it have to be "/usr/local/bin/php -f /usr/local/pkg/lcdproc_client.php"  as appears in lcdproc.inc where the client is launched?

                            Current network "hardware" :
                            Running 2.2RC in Virtualbox 4.2.16.

                            Retired:
                            ALIX2C2 , 4 gigabyte disk cf card running 2.0 (official release).

                            1 Reply Last reply Reply Quote 0
                            • S
                              stephenw10 Netgate Administrator
                              last edited by Jul 1, 2014, 5:08 PM

                              Hmm, more complex than I thought then. Perhaps it requires the correct rc file, clearly it needs that for the service restart button onn the Status: Services: page. I don't know, I'm just guessing now. ::)
                              You should probably ask this as a new question in the packages section.

                              Steve

                              1 Reply Last reply Reply Quote 0
                              • P
                                peekmessage
                                last edited by Apr 27, 2015, 2:38 AM

                                Would it be possible to add 38400 bps as an option for the port speed?
                                Take a look at: https://forum.pfsense.org/index.php?topic=90569.msg515874#msg515874 for the changes I had to make to get nMedia lcd working.

                                Thanks,
                                Ali

                                1 Reply Last reply Reply Quote 0
                                • T
                                  Topper727
                                  last edited by Apr 28, 2015, 12:14 AM Apr 27, 2015, 3:03 AM

                                  For my 64 bit 2.2.2 and the latest lcdproc I have to modify the lcdproc.inc file where is says "localhost' to "127.0.0.1" for mine to start up.  I fixed this package in past but no time to fix this time around.  I need to figure github out more.

                                  file for my system is in  /usr/local/pkg

                                  need file already fixed I can upload mine

                                  Dell 2950 g3 server
                                  Intel(R) Xeon(R) CPU E5430 @ 2.66GHz
                                  Current: 2000 MHz, Max: 2667 MHz
                                  8 CPUs: 2 package(s) x 4 core(s)
                                  8152 MiB and 600meg 10k drive
                                  Pfsense 2.4 .. Hoping to get the phpvirtualbox going again.

                                  1 Reply Last reply Reply Quote 0
                                  • T
                                    Topper727
                                    last edited by Aug 8, 2015, 6:21 AM

                                    https://github.com/pfsense/pfsense-packages/pull/945

                                    Dell 2950 g3 server
                                    Intel(R) Xeon(R) CPU E5430 @ 2.66GHz
                                    Current: 2000 MHz, Max: 2667 MHz
                                    8 CPUs: 2 package(s) x 4 core(s)
                                    8152 MiB and 600meg 10k drive
                                    Pfsense 2.4 .. Hoping to get the phpvirtualbox going again.

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      stephenw10 Netgate Administrator
                                      last edited by Aug 14, 2015, 10:51 AM

                                      Nice. Thanks for that Topper.  :)

                                      1 Reply Last reply Reply Quote 0
                                      • T
                                        Topper727
                                        last edited by Aug 15, 2015, 2:25 AM

                                        No problem. Docknotor if I spelled right also got the one going also with same patch I did. So he deserves some of thanks also :)

                                        Dell 2950 g3 server
                                        Intel(R) Xeon(R) CPU E5430 @ 2.66GHz
                                        Current: 2000 MHz, Max: 2667 MHz
                                        8 CPUs: 2 package(s) x 4 core(s)
                                        8152 MiB and 600meg 10k drive
                                        Pfsense 2.4 .. Hoping to get the phpvirtualbox going again.

                                        1 Reply Last reply Reply Quote 0
                                        • D
                                          doktornotor Banned
                                          last edited by Aug 15, 2015, 5:52 PM

                                          I'm actually seriously confused how the patch helps. The define is not used anywhere.

                                          https://github.com/pfsense/pfsense-packages/blob/master/config/lcdproc/lcdproc.inc#L187
                                          https://github.com/pfsense/pfsense-packages/blob/master/config/lcdproc-dev/lcdproc.inc#L188

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