OPNsense Forum

Archive => 23.1 Legacy Series => Topic started by: Chris7L on July 09, 2023, 05:15:21 PM

Title: LCD screen on Sophos SG310 rev.2 LCDProc
Post by: Chris7L on July 09, 2023, 05:15:21 PM
Hello,

I bought a Sophos SG310 rev.2 unit (built in 2020) and installed OPNsense (version OPNsense 23.1.11-amd64) successfully.

I installed the plugin os-lcdproc-sdeclcd (version 1.1_1),
edited the conf-file
/usr/local/etc/LCDd-sdeclcd.conf

The display is initialized without errors in CLI and can be read out in principle, but there seems something wrong with the protocol or my configuration.

The Text output is scrambled/ not shown correctly (see attached images).

This is the configuration I use:


[server]
DriverPath=/usr/local/lib/lcdproc/
Driver=hd44780
Bind=127.0.0.1
Port=13666
ReportToSyslog=yes
User=nobody
Foreground=no
Hello="  Welcome to"
Hello="   OPNsense!"
GoodBye="Thanks for using"
GoodBye="   OPNsense!"
WaitTime=5
TitleSpeed=5
ServerScreen=on
Backlight=open
ToggleRotateKey=Enter
PrevScreenKey=Left
NextScreenKey=Right
ScrollUpKey=Up
ScrollDownKey=Down

[menu]
MenuKey=Escape
EnterKey=Enter
UpKey=Up
DownKey=Down

[hd44780]
driverpath=/usr/local/lib/lcdproc/
ConnectionType=ezio
Device=/dev/cuau1
Keypad=yes
Size=16x2
KeyMatrix_4_1=Enter
KeyMatrix_4_2=Up
KeyMatrix_4_3=Down
KeyMatrix_4_4=Escape


I will be glad to receive any assistance. Thanks!

Regards,
Chris
Title: Re: LCD screen on Sophos SG310 rev.2 LCDProc
Post by: Wolfspyre on August 02, 2023, 01:46:35 AM
I've been trying to figure out how to get lcdproc working properly myself.

I think there's a nontrivial amount of issues and assumptions in its current implementation. I'm currently trying to figure out how to make a debug kernel where I can run dtrace, once I've got that going, this, and getting the kernel module for an infinitenoise RNG device working are two things on my list of try-to-get-working... :)