Navigation

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

    LCDproc and HD44780 error

    pfSense Packages
    2
    3
    2720
    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
      ScanEarth last edited by

      Hi!

      I am trying to get an HD44780 based LCD to work with pfsense,
      when trying to activate the apropriate driver I just get errors in the system log,
      they are as follows:

      php: lcdproc: Stopping service: no com port selected
      LCDd: Server shutting down on SIGTERM
      lcdproc: Stopping service: no com port selected
      LCDd: Listening for queries on 127.0.0.1:13666
      LCDd: Using Configuration File: /usr/local/etc/LCDd.conf
      LCDd: LCDd version 0.5.2 starting
      php: /diag_logs.php: [DEBUG] Lock recursion detected.
      LCDd: Server shutting down on SIGTERM
      php: lcdproc: Restarting service lcdproc
      php: lcdproc: The chosen lcdproc driver is not a valid choice

      In the server settings tab I have the folowing settings:
      Enabled
      Paralell port
      4 rows 20 columns
      hd44780

      Please help!
      Thank you!

      //Filippe

      1 Reply Last reply Reply Quote 0
      • R
        Romaxx last edited by

        c'est logique.. c'est pas codé (il suffit de regarder le fichier lcdproc.inc)

        /* lcdproc default driver definitions */
        			switch($lcdproc_config[driver]) {
        				case "bayrad":
        					$config_text .= "[{$lcdproc_config['driver']}]\n";
        					$config_text .= "Device={$realport}\n";
        					$config_text .= "Speed=9600\n";
        					break;
        				case "CFontz":
        					$config_text .= "[{$lcdproc_config['driver']}]\n";
        					$config_text .= "Device={$realport}\n";
        					$config_text .= "Size={$lcdproc_config['size']}\n";
        					$config_text .= "Contrast=350\n";
        					$config_text .= "Brightness=1000\n";
        					$config_text .= "OffBrightness=50\n";
        					$config_text .= "Speed=9600\n";
        					$config_text .= "NewFirmware=no\n";
        					$config_text .= "Reboot=no\n";
        					break;
        				case "CFontz633":
        					$config_text .= "[{$lcdproc_config['driver']}]\n";
        					$config_text .= "Device={$realport}\n";
        					$config_text .= "Size={$lcdproc_config['size']}\n";
        					$config_text .= "Contrast=350\n";
        					$config_text .= "Brightness=1000\n";
        					$config_text .= "OffBrightness=50\n";
        					$config_text .= "Speed=19200\n";
        					$config_text .= "NewFirmware=yes\n";
        					$config_text .= "Reboot=yes\n";
        					break;
        				case "CFontzPacket":
        					$config_text .= "[{$lcdproc_config['driver']}]\n";
        					$config_text .= "Device={$realport}\n";
        					$config_text .= "Model=635\n";
        					$config_text .= "Size={$lcdproc_config['size']}\n";
        					$config_text .= "Contrast=350\n";
        					$config_text .= "Brightness=1000\n";
        					$config_text .= "OffBrightness=50\n";
        					$config_text .= "Speed=115200\n";
        					$config_text .= "NewFirmware=yes\n";
        					$config_text .= "Reboot=yes\n";
        					break;
        				case "curses":
        					$config_text .= "[{$lcdproc_config['driver']}]\n";
        					$config_text .= "Foreground=blue\n";
        					$config_text .= "Background=cyan\n";
        					$config_text .= "Backlight=red\n";
        					$config_text .= "Size={$lcdproc_config['size']}\n";
        					$config_text .= "TopLeftX=7\n";
        					$config_text .= "TopLeftY=7\n";
        					$config_text .= "UseACS=no\n";
        					break;
        				case "CwLynx":
        					$config_text .= "[{$lcdproc_config['driver']}]\n";
        					$config_text .= "Model=12232\n";
        					$config_text .= "Device={$realport}\n";
        					$config_text .= "Size={$lcdproc_config['size']}\n";
        					$config_text .= "Speed=19200\n";
        					$config_text .= "Reboot=no\n";
        					break;
        				case "pyramid":
        					$config_text .= "[{$lcdproc_config['driver']}]\n";
        					$config_text .= "Device={$realport}\n";
        					$config_text .= "Size={$lcdproc_config['size']}\n";
        					break;
        				case "ea65":
        					$config_text .= "[{$lcdproc_config['driver']}]\n";
        					$config_text .= "Device={$realport}\n";
        					$config_text .= "OffBrightness=0\n";
        					$config_text .= "Brightness=500\n";
        					break;
        				default:
        					lcdproc_warn("The chosen lcdproc driver is not a valid choice");
        					unset($lcdproc_config[driver]);
        			}
        

        Jvai essayer de coder un truc, je posterai le fichier si ça marche
        @+

        by Romaxx - Association Sigmateck

        1 Reply Last reply Reply Quote 0
        • S
          ScanEarth last edited by

          Sorry, this problem is old, I've fixed it but arrived with a new problem wich is abit more complicated…
          The problem is that pfSense can not control the service proberly since it is basically a php-script run as a service...

          I think I will try to use the original client instead, with modified screens

          But thanks for trying!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post