Unraid on QNAP NAS: My Experience (TS-853A)


Guns McWar

Recommended Posts

6 minutes ago, SimonF said:

Thanks for all the help so far, So for QNAP lcdproc will just need to have serial support, I will continue to research the driver/kernal modules required to support once I have the basis of a plugin ready.

 

If you need any further information or testing i would be happy to assist. 

  • Thanks 1
Link to comment
1 hour ago, [email protected] said:

Yeah it says "System booting" in line1 and an endless cycle of filling chevrons in line2. 

I cannot think why your are not seeing S1 unless default s0 is no longer connected and S1 would become S0.

 

 

Did or could you try these commands to see if they have an effect?

 

stty -F /dev/ttyS0 1200

And then execute these commands to control the LCD (Switch on, Switch off, Set text in line 1, Set text in line 2):

 

echo -e "M^\x1" > /dev/ttyS0

echo -e "M^\x0" > /dev/ttyS0

echo -e "M\f\x0 HELLO WORLD 1234" > /dev/ttyS0

echo -e "M\f\x1 HELLO WORLD 1234" > /dev/ttyS0

Edited by SimonF
Link to comment

looks like LCDproc has support for the screens used in QNAP devices.

 

/** \file server/drivers/icp_a106.c

* LCDd \c icp_a106 for ICP Peripheral Communication Protocol devices

*/

/*

* This is the LCDproc driver for the ICP Peripheral Communication Protocol

* used by the ICP A106 and A125 LCD boards. The A125 is used in QNAP devices

*

* Both LCD and alarm functions are accessed via one serial port, using

* separate commands. Unfortunately, the device runs at slow 1200bps and the

* LCD does not allow user-defined characters, so the bargraphs do not look

* very nice.

*

* Copyright (C) 2002 Michael Schwingen <[email protected]>

*

* This program is free software; you can redistribute it and/or modify it

* under the terms of the GNU General Public License as published by the Free

* Software Foundation; either version 2 of the License, or any later version.

*

* This program is distributed in the hope that it will be useful, but WITHOUT

* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or

* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for

* more details.

*

* You should have received a copy of the GNU General Public License along

* with this program; if not, write to the Free Software Foundation, Inc., 51

* Franklin Street, Fifth Floor, Boston, MA 02110-1301

*

* This driver is mostly based on the HD44780 and the LCDM001 driver.

* (Hopefully I have NOT forgotten any file I have stolen code from. If so

* send me an e-mail or add your copyright here!)

*

* - changes to support A125 and buttons made by Sam Bingner <[email protected]>

*

*/

Link to comment
16 hours ago, SimonF said:

I cannot think why your are not seeing S1 unless default s0 is no longer connected and S1 would become S0.

 

 

Did or could you try these commands to see if they have an effect?

 

stty -F /dev/ttyS0 1200

And then execute these commands to control the LCD (Switch on, Switch off, Set text in line 1, Set text in line 2):

 

echo -e "M^\x1" > /dev/ttyS0

echo -e "M^\x0" > /dev/ttyS0

echo -e "M\f\x0 HELLO WORLD 1234" > /dev/ttyS0

echo -e "M\f\x1 HELLO WORLD 1234" > /dev/ttyS0

 

yes I tried that, multiple times :/ still only system booting. I have no idea why. 

Link to comment
  • 2 weeks later...
On 3/19/2023 at 8:13 AM, [email protected] said:

 

yes I tried that, multiple times :/ still only system booting. I have no idea why. 

Got a TS-859U-RP+ to use for testing. I can get the screen to work using a USB Serial to breakout cable plugged into the LCD Display with lcdproc. But waiting on some memory to see if I can load UnRaid as only as 1Gb at present which is not enough for Unraid.

 

 

image.thumb.png.20939b3307f1517094053b552c186578.png

image.thumb.png.bd585c946b86b6e204d12ce163de640e.png

 

image.thumb.png.628c9dbd60ec8e47e676dab81f92144e.png

  • Like 1
Link to comment
5 hours ago, ricostuart said:

thats with the qnap plugin installed, but the screen is disconnected

is that the QNAP EC pluging to allow fan control by ich777?

 

 

Here is a copy of the lcdproc package and a config for icp_a106 lcd used in QNAP.

 

I have the serial port set to /dev/ttyUSB0 your could try /dev/ttyS0

 

find this section in the config.

 

[icp_a106]
Device=/dev/ttyUSB0 change to /dev/ttyS0

# Display dimensions
Size=20x2

 

Port should be S1 but your dont have one so may not be correct so try S0.

 

put package in /tmp or somewhere

 

installpkg /tmp/lcdproc.txz

 

LCDd -c /tmp/LCDd.conf will start the background process. And text should be on the screen if it works.

 

lcdproc N will display a clock

 

 

 

lcdproc.txz LCDd.conf

Edited by SimonF
Link to comment

I use a USB to serial adapter with a ch340 chip. I pluged it to the internal USB connector and make a UDEV-rule for safety connection to the right USB.
 

SUBSYSTEMS=="usb", KERNEL=="ttyUSB*", ATTRS{idVendor}=="1a86", SYMLINK+="LCD"

 

Then I use the User Scripts Plugin to display some informations:

 

At Startup of Array:
 

#!/bin/bash
hostname=$(hostname)
ip=$(hostname -I | cut -d' ' -f1)
stty -F /dev/LCD 1200
echo -e "M\x5E\x1" > /dev/LCD
echo -e "M\x0C\x0 $hostname                " > /dev/LCD
sleep 2
echo -e "M\x0C\x1 $ip                " > /dev/LCD

 

At Stopping of Array:
 

#!/bin/bash
stty -F /dev/LCD 1200
echo -e "M\x5E\x1" > /dev/LCD
echo -e "M\x0C\x1 reboot/shutdown " > /dev/LCD

 

It is a quick and dirty job, but it works. 

 

  • Like 1
Link to comment
6 hours ago, Funsh said:

With 6.12 RC3 i can confirm that not only ttyS0 but also ttyS1/ttyS2/ttyS3 show up on my Qnap TVS-882.

With the commands above i am able to control my display on ttyS1 (i.e. turn off, turn on, put a hello world text to the display)

I have started creating LCD_Manager which will have a specific Unraid Client but currently just support lcdproc options. You can install from CA.

 

image.png

 

 

  • Like 1
Link to comment

Thanks.

Can confirm that it works.

 

With just the lcdproc option some options are not really usefull due to how it is displayed (i.e. the display has simply too less characters to display), but the "N C M" options work quite well.

 

Since the Qnap is anyway just my backup NAS, which is just on for a few hours every few weeks, i am perfectly fine with anything other on the display that is not "booting ..."

Link to comment
  • 2 months later...

I read through this entire thread with bated breath. I am excited to give this a whirl. I purchased a TVS-874 recently and migrated my environment to it from unraid. I moved to higher capacity drives and wanted more performance as well as stability. My unraid environment would randomly become non-responsive. After working with QNAP container station, I am annoyed and missing a unraid. I will copy my data to another Nas and so I can re-purpose the QNAP NAS as an unraid NAS. 

Link to comment
  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.