LCD Display Info and Monitoring Tool + Kodi install

User avatar
AreaScout
Posts: 1066
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: german, english
ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
N1, Go, VU5A, Show2, CloudShell2,
H2, N2, VU7A, VuShell
Has thanked: 15 times
Been thanked: 48 times
Contact:

LCD Display Info and Monitoring Tool + Kodi install

Unread post by AreaScout » Mon Feb 18, 2019 6:45 pm

LCD Display Info and Monitoring Tool

Image

Hi all

I want to share my Info and Monitoring Tool for CloudShell2 that I wrote.

I use it with OpenMediaVault and thus it's only tested on Debian but should work also on Ubuntu, with OMV you can sync your photos from your tabled or phone with Apps like FileBrowserGo(Apple)/ES File Explorer(Android) or just view the stored photos, you can archive or share your documents with protocols like SMB, NFS, Apple Share, rsync and ftp, that's pretty neat :) https://www.youtube.com/watch?v=cHug_mhx7t4

With this Image you have to install all the latest updates which includes a update from kernel 4.9 to 4.14 via the admin interface, so Kernel 4.14 is highly recommended and RAID Controller Firmware version >= v158.001.000.001 is a must to have, all newer RAID controller boards are already pre-installed with it.

https://sourceforge.net/projects/openme ... z/download

Image

http://www.areascout.at/cloudshell2-mon ... _armhf.deb

Illustration:

Image

The main focus was to provide a view in which information can easily be read by using a larger font like other tools do.

Raid Status, current time, up time, average usage, current IP address and free space are just one of the information you can get, on the bottom you have four icons and from the left they are
  1. Ethernet cable connection status
  2. Recognised Ethernet connection speed
  3. Fan ON/OFF status
  4. HDMI cable connection status
The cloudhshell2-monitoring tool monitors the Raid status and temperature.
It has three temperature triggers, one which is to switch the CloudShell2 off and send an email notification to the user if an certain temperature is reached for a certain time ( default 85°C for 15 seconds )
The second one is to regulate the case fan of the CloudShell2, by default it will switch the fan on if the XU4 reaches an temperature of >65°C and off if a temperature of <60°C (65-5) is hold for a time period of 5 minutes
The third one is also to regulate the case fan, if one of the hard disks has a temperature over 50°C it will turn on the fan too

XU4 and XU4Q are different from here what values could be used, on an XU4 (without SoC fan) it could be that you are better off by setting up the fan to be always on, but the default values should be good enough for the roughly average

All values for temperature trigger points and hysteresis (time period) can be setup individually via config file, more about it later.

Here is a graph that shows how this looks like https://snapshot.raintank.io/dashboard/ ... kF6RmVeskP

All responsible scripts for mail sending and start are installed in /usr/bin

Code: Select all

raid_mailsend
start-lcd
temperature_shutdown
Within the admin interface of OpenMediaVault you have to enable mail notification ! In case of HW/RAID errors they are reported and everything else ugly or just information on the system will be reported :ugeek:

Installation:

Activate the LCD:

Code: Select all

wget https://github.com/seungchar/odroid-cloudshell/raw/master/odroid-cloudshell_20170420-4_armhf.deb
sudo dpkg -i odroid-cloudshell_20170420-4_armhf.deb
Install dependencies:

Code: Select all

sudo apt-get install libfreetype6 sysstat
At last, Install the LCD Info and Monitoring tool:

The LCD driver should already be running, load it manually or do a reboot here

Code: Select all

wget http://www.areascout.at/cloudshell2-monitoring_1.0.14-1_armhf.deb
sudo dpkg -i cloudshell2-monitoring_1.0.14-1_armhf.deb
Have fun with a new display look :)

You can now continue to setup the RAID controller with the dip switches on front of your CloudShell2, after that you have to mount the new created hard disk RAID set within the admin interface of OMV

HW RAID Setup Guide

You must skip step 2. and 3. of that guide

Config file:

The config file can be found in /etc/cloudshell2-monitoring/cloudshell2-monitoring.conf and looks like this

Code: Select all

# cloudshell2-monitoring configuration file
# -----------------------------------------
#
# Delete a '#' character at the head of line to uncomment and set the variable to enable it

# The Network Interface name i.e NETIF=eth0, it is detected automatically by the tool startup script, but here you can overwrite it
#NETIF=

# CloudShell2 shutdown temperature (default MAX_CPU_TEMP=85 in °C) !! Celsius !!
#MAX_CPU_TEMP=

# How long in seconds has the MAX_CPU_TEMP occur to switch the CloudShell2 off (default CPU_TEMP_HYSTERESIS=15)
#CPU_TEMP_HYSTERESIS=

# CPU Temperature on which the case fan should switch on (default FAN_ON_TEMP=65 in °C) !! Celsius !! FAN_ON_TEMP=0 to switch on Fan permanently
#FAN_ON_TEMP=

# Time how many seconds FAN_ON_TEMP minus 5°C has to be reached to switch the fan off again (default FAN_OFF_HYSTERESIS=300)
#FAN_OFF_HYSTERESIS=

# Unique mount point or device path to show the hard disk space from, i.e if you are using an complex LVM config 
#CS_HDD_MOUNTP=

# Background surface color theme, choose from: blue, grey, sepia, red, teal (default BG_SF_COLOR=blue)
#BG_SF_COLOR=

# Set to F to use Fahrenheit or C to Celsius unit (default TEMP_UNIT=C), remember that this is just to visualize it on the LCD
# if Fahrenheit, still all temperature triggers like MAX_CPU_TEMP and FAN_ON_TEMP needs to be setup in Celsius !
#TEMP_UNIT=

# Set to ON to use 12-hour clocks (default CLOCK_12_HOUR=OFF)
#CLOCK_12_HOUR=

# MariaDB/MySQL database connection to log hdd/cpu/gpu temperature and cpu usage (default CS_DATABASE_PORT=3306)
#CS_DATABASE_NAME=
#CS_DATABASE_HOST=
#CS_DATABASE_PORT=
#CS_DATABASE_USER=
#CS_DATABASE_PW=

# Unique table name for MariaDB/MySQL database connection (default CS_DATABASE_TABLE=cs2_monitoring)
#CS_DATABASE_TABLE=

# If GSM shield is connected this is the serial device node (mandatory) which should used for communication (CS_GSM_SHIELD_PORT=/dev/ttyUSB0)
#CS_GSM_SHIELD_PORT=

# Baud rate to be used for the GSM shield, supported baud rates are 9600, 19200, 38400, 57600 and 115200 (mandatory)
#CS_GSM_SHIELD_BAUD_RATE=

# GSM notify phone number in which the cloudshell2-monitoring tool should send SMS when alarms occur (mandatory)
#CS_GSM_SHIELD_PHONE_NUMBER=

# Nickname for SMS commands send to cloudshell2-monitoring tool, supported commands are (status, reboot, shutdown)
# an SMS to ask for status or reboot or shutdown has to look like this (Nickname, command) (default CS_GSM_SHIELD_NICKNAME=cs2)
#CS_GSM_SHIELD_NICKNAME=
Example:

We want the fan to always run (see default behavior on Illustrion picture), so we have uncomment and set FAN_ON_TEMP to 0 like this

Code: Select all

FAN_ON_TEMP=0
We don't want the CloudShell2 to poweroff if when a temperature over 85°C is reached so we set MAX_CPU_TEMP to 100 like this

Code: Select all

MAX_CPU_TEMP=100
We want choose a different color theme for your CloudShell2 Monitoring Tool, there are five colors to choose from, so we set BG_SF_COLOR to i.e sepia like this

Code: Select all

BG_SF_COLOR=sepia
Image

We want to setup a MySQL/MariaDB data connection for Grafana please see below -> Enable MySQL/MariaDB data logging for Grafana

To apply our changes you have to issue a restart of the tool with sudo systemctl restart cloudshell2-monitoring

The tool has also a command line option -i which you can invoke to get more information of your raid controller and disks connected, you can execute it at any time, even if the tool is already running

Code: Select all

cloudshell2_monitoring -i
Enable MySQL/MariaDB data logging for Grafana:

The Database can run of course on any Machine over the globe :)
  1. Install a MySQL or MariaDB Database
  2. Create a Database on your new Database server
  3. Create a User for that Database and grand SELECT, INSERT and CREATE/ALTER TABLE rights to the User
  4. Enter our connection and user/password data inside the tool configuration file at /etc/cloudshell2-monitoring/cloudshell2-monitoring.conf
Optionally a unique table name can be configured inside the cloudshell2-monitoring tool configuration file, this is useful if you have more then one CloudShell2 to administer

After you have setup a database connection, the cloudshell2-monitoring tool hast to be restarted with sudo systemctl restart cloudshell2-monitoring, a new table (cs2_monitoring)will be created on your new database and the tool starts immediately collecting data and write it to the database, if the database connection is lost the tool will try to reconnect every 10 seconds :ugeek:

Btw. the sql file can be found here /usr/share/doc/cloudshell2-monitoring/grafana.sql if you want you can edit it to your needs, you can change the column name and datatype and also general database attributes that file is send to the server in case no cs2_monitoring exists on startup

Monitoring with Grafana in action:

See a snapshot how it looks like in your browser:

https://snapshot.raintank.io/dashboard/ ... kF6RmVeskP

Grafana setup instructions:

There are two demo dashboards pre-configured inside the /usr/share/doc/cloudshell2-monitoring folder named

CloudShell2_Celsius-Dashboard.json
CloudShell2_Fahrenheit-Dashboard.json

Download Grafana from https://grafana.com to your favorite machine running either Windows, Linux, macOS or ARM Platforms, please follow more instructions how to install and config from there
After Grafana is running, setup a new datasource, which in our case is MySQL, the connection name for the demo dashboards are MySQL-1, you should choose the same or you have to edit each panel for your new datasource name
On the left side you can click on dashboard -> manage from there you can import one or both of the two demo dashboards, for the Fahrenheit one you can see where I did the math on the sql query to convert from Celsius to Fahrenheit

Troubleshooting:

Whenever you think cloudshell2-monitoring is not working as expected, please look at the status of the tool by issue a systemctl status cloudshell2-monitoring from within a shell

The output will look like this

Code: Select all

● cloudshell2-monitoring.service - "ODROID Cloudshell2 Monitoring"
   Loaded: loaded (/lib/systemd/system/cloudshell2-monitoring.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2019-07-16 15:25:57 CEST; 44s ago
 Main PID: 18873 (start-lcd)
   CGroup: /system.slice/cloudshell2-monitoring.service
           ├─18873 /bin/bash /usr/bin/start-lcd
           └─18879 /usr/bin/cloudshell2-monitoring

Jul 16 15:25:57 odroidxu4 systemd[1]: Started "ODROID Cloudshell2 Monitoring".
Jul 16 15:25:57 odroidxu4 start-lcd[18873]: /etc/cloudshell2-monitoring/cloudshell2-monitoring.conf: line 39: 3vup21: command not found
In this example the password for the Grafana database connection was not surrounded by quotation marks inside the cloudshell2-monitoring config file

GSM shield support:

Image

After installing a circuit diagram can be found inside the /usr/share/doc/cloudshell2-monitoring/GSM_shield_fritzing.png folder how you can connect a GSM shield to the XU4, this is only a suggestion as each GSM shield can be different in the way how to connect to XU4 (external power plug etc. etc.). The circuit diagram also shows an Arduino Nano, a lot of people own already one and so you can use it as USB2TTL / USB2UART device, here is a software serial example https://www.arduino.cc/en/Tutorial/Soft ... ialExample skip the text output, use the same baud rate for hardware und software serial and it should work.

Here is a link with further instructions which device you should use to communicate with the GSM Shield, I recommend to use one of this http://s.click.aliexpress.com/e/jm6UfEi

Also useful information how to update firmware, what devices and how to connect you can find here:
http://acoptex.com/project/394/basics-p ... B8wh0.dpbs

By the way, I used this https://www.hardkernel.com/shop/dual-st ... extenders/ to connect the 5V to my GSM shield, depending on what GSM shield you are using this could be entirely different, external power supply plug etc. etc.

Before you connect anything you should setup the GSM shield on your PC/Laptop/ODROID with minicom minicom -b 115200 -D /dev/ttyUSB0 (hardware flow control must be off) or if you want to do that on Windows you can use my tool (SerialLogger) I wrote back in 2013, it is shipped with the debian package and you can find it inside the /usr/share/doc/cloudshell2-monitoring/ folder, it's an 64bit application, if you want a 32bit or WindowsXP build please ask.

Image

Ok if the communication is working, you must disable the PIN of your SIM card with this command AT+CLCK="SC",0,"1234" (1234 must be exchanged with your PIN of course), other settings about your network band a.s.o I will not go any further, you should already be able to send and receive SMS with your shield (Fixed baud rate setup is also recommended instead of auto on your GSM shield).

Now you can setup the GSM shield inside the /etc/cloudshell2-monitoring/cloudshell2-monitoring.conf config file, phone number to send SMS, nickname, port name and baud rate :ugeek:

If everything is working and your PIN is disabled and your GSM shield is connected to your XU4, you have to restart cloudshell2-monitoring tool sudo systemctl restart cloudshell2-monitoring.service you can check if the GSM shield was detected with:

Code: Select all

danielm@odroidxu4:~/CloudShell2$ sudo systemctl status cloudshell2-monitoring.service
● cloudshell2-monitoring.service - "ODROID Cloudshell2 Monitoring"
   Loaded: loaded (/lib/systemd/system/cloudshell2-monitoring.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2019-09-12 18:05:17 CEST; 5s ago
 Main PID: 6137 (start-lcd)
   CGroup: /system.slice/cloudshell2-monitoring.service
           ├─6137 /bin/bash /usr/bin/start-lcd
           └─6141 /usr/bin/cloudshell2-monitoring

Sep 12 18:05:17 odroidxu4 systemd[1]: Started "ODROID Cloudshell2 Monitoring".
Sep 12 18:05:17 odroidxu4 start-lcd[6137]: Found GSM Shield
Sep 12 18:05:17 odroidxu4 start-lcd[6137]: GSM disable echo
Sep 12 18:05:17 odroidxu4 start-lcd[6137]: GSM shield command executed OK
Sep 12 18:05:17 odroidxu4 start-lcd[6137]: GSM enable live SMS
Sep 12 18:05:17 odroidxu4 start-lcd[6137]: GSM shield command executed OK
Sep 12 18:05:17 odroidxu4 start-lcd[6137]: GSM set SMS text mode
Sep 12 18:05:17 odroidxu4 start-lcd[6137]: GSM shield command executed OK
If this is ok you can now send SMS messages to your CloudShell2 :ugeek: and your CloudShell2 will automatically inform you if something goes wrong (RAID error, over temperature)

Image

Valid commands at the moment are (status, reboot, shutdown) with the nickname of your cloudshell2 as prefix (cs2 as default), like in the picture above

RG and have fun
Last edited by AreaScout on Fri Sep 13, 2019 10:05 pm, edited 51 times in total.
These users thanked the author AreaScout for the post:
crazyquark (Sun Jul 28, 2019 2:28 am)

User avatar
AreaScout
Posts: 1066
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: german, english
ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
N1, Go, VU5A, Show2, CloudShell2,
H2, N2, VU7A, VuShell
Has thanked: 15 times
Been thanked: 48 times
Contact:

Re: LCD Display Info and Monitoring Tool

Unread post by AreaScout » Mon Feb 18, 2019 6:46 pm

    Kodi install on CloudShell2 (debian) / OpenMediaVault:

    Use Kodi as a Media Center on your CloudShell2 and start it by plug in the HDMI cable or when the TV is switched on

    OpenMediaVault https://sourceforge.net/projects/openme ... z/download is used in this tutorial with all the latest updates

    Image
      Image

      First of all you have to update from kernel 4.9 to 4.14, this can be easily done from the admin interface of OMV, system -> update management
      After reboot you should install the LCD Display Info Tool from the first post to turn the fan on or choose any other method you want for your display and fan, it's just important to have the board cooled immediately

      If you have done all that already it's time to create a new user or use an already created one

      First we need to make sure we have the latest samsung firmware just to be sure, we do it via ssh

      Logon as root with the OMV standard root credentials, root login has to be permitted before in services -> ssh -> permit root login

      Code: Select all

      apt-get install firmware-samsung
      
      The permissions for the user I have set as follow via the admin interface (in case kodi is the user name), so please add the user to this groups:

      Access Right Management -> User -> Users -> Edit -> Groups

      bin:kodi
      adm:kodi
      disk:kodi
      mail:kodi
      kmem:kodi
      voice:kodi
      sudo:kodi
      audio:kodi
      operator:kodi
      irc:kodi
      video:kodi
      plugdev:kodi
      staff:kodi
      games:kodi
      users:kodi
      input:kodi
      crontab:kodi
      netdev:kodi
      ntp:kodi
      postfix:kodi
      postdrop:kodi
      sambashare:kodi
      i2c:kodi


      Enable Home Folder for the User in Access Right Management -> User -> Settings -> User home directory -> Enable

      Kodi will run Python scripts from the home folder addon directory and so it has to have executable rights, this is disabled by default with the mount point flag noexec, so we have to remove this with

      Code: Select all

      sed -i -e 's/noexec,//g' /etc/fstab
      
      or you configure the home folder to be on your SD/eMMC i.e /home/kodi (but space is limited there!) with:

      usermod -d path username

      Code: Select all

      usermod -d /home/kodi kodi
      

      Install GBM enabled Mali GPU driver:

      Code: Select all

      wget https://www.areascout.at/kodi/mali-x11-gbm-fbdev_19.0.6-1_armhf.deb
      dpkg -i mali-x11-gbm-fbdev_19.0.6-1_armhf.deb
      
      create a udev rule for permissions of /dev/mali0

      Code: Select all

      touch /etc/udev/rules.d/50-mali0.rules
      echo 'KERNEL=="mali0", MODE="0660", GROUP="video"' >> /etc/udev/rules.d/50-mali0.rules 
      
      Install Kodi:

      The package includes the inputstream.adaptive Add-on which is needed to view DRM copy protected video material.
      The package also includes script.module.inputstreamhelper Add-on which is needed to download libwidevinecdm.so.
      The package includes three visualization plugins like shadertoy

      Get the packages

      Code: Select all

      wget https://www.areascout.at/kodi/kodi_18.2~git20190420.1710-f985f24e2c-dirty-1~stretch_all.deb
      wget https://www.areascout.at/kodi/kodi-tools-texturepacker_18.2~git20190420.1710-f985f24e2c-dirty-1~stretch_armhf.deb
      wget https://www.areascout.at/kodi/kodi-eventclients-wiiremote_18.2~git20190420.1710-f985f24e2c-dirty-1~stretch_armhf.deb
      wget https://www.areascout.at/kodi/kodi-eventclients-ps3_18.2~git20190420.1710-f985f24e2c-dirty-1~stretch_all.deb
      wget https://www.areascout.at/kodi/kodi-eventclients-kodi-send_18.2~git20190420.1710-f985f24e2c-dirty-1~stretch_all.deb
      wget https://www.areascout.at/kodi/kodi-eventclients-dev_18.2~git20190420.1710-f985f24e2c-dirty-1~stretch_all.deb
      wget https://www.areascout.at/kodi/kodi-eventclients-common_18.2~git20190420.1710-f985f24e2c-dirty-1~stretch_all.deb
      wget https://www.areascout.at/kodi/kodi-bin_18.2~git20190420.1710-f985f24e2c-dirty-1~stretch_armhf.deb
      wget https://www.areascout.at/kodi/kodi-addon-dev_18.2~git20190420.1710-f985f24e2c-dirty-1~stretch_all.deb
      
      Ok time to install the Kodi packages with apt, this should resolve all dependencies

      Code: Select all

      apt install ./kodi-bin_18.2~git20190420.1710-f985f24e2c-dirty-1~stretch_armhf.deb
      apt install ./kodi_18.2~git20190420.1710-f985f24e2c-dirty-1~stretch_all.deb
      apt install ./kodi-tools-texturepacker_18.2~git20190420.1710-f985f24e2c-dirty-1~stretch_armhf.deb
      apt install ./kodi-eventclients-common_18.2~git20190420.1710-f985f24e2c-dirty-1~stretch_all.deb
      apt install ./kodi-eventclients*
      apt install ./kodi-addon-dev_18.2~git20190420.1710-f985f24e2c-dirty-1~stretch_all.deb
      
      If you don't trust this you can install them manually:

      Code: Select all

      apt-get install mesa-utils fonts-liberation ttf-liberation python-bluez python-simplejson libaacs0 libasound2 libass5 libavahi-client3 libavahi-common3 libbluetooth3 libbluray1 libbz2-1.0 libc6 libcap2 libcdio13 libcec4 libcrossguid0 libcurl3-gnutls libdbus-1-3 libdrm2 libexpat1 libfreetype6 libfribidi0 libfstrcmp0 libgcc1 libgcrypt20 libgmp10 libgnutls30 libhogweed4 libidn11 libinput10 libiso9660-8 liblzma5 liblzo2-2 libmariadbclient18 libmicrohttpd12 libnettle6 libnfs8 libp11-kit0 libpcre3 libpcrecpp0v5 libpulse-mainloop-glib0 libpulse0 libpython2.7 libsqlite3-0 libssl1.0.2 libstdc++6 libtag1v5 libtasn1-6 libtinyxml2.6.2v5 libudev1 libuuid1 libxkbcommon0 zlib1g libtag1v5-vanilla libgbm1 pulseaudio
      
      Done, Kodi should be installed :)

      Install HDMI Hotplug:

      With this Kodi starts automatically if you plug in HDMI cable or switch on TV if cable is already in, and closes if you disconnect or switch off TV

      You have to specify --force-overwrite because there is already an unused hdmi rule on the system, I don't know a other way as to overwrite it -> sorry
      If an update will overwrite it you have to reinstall or uninstall it manually !

      Code: Select all

      wget https://www.areascout.at/kodi/kodi-hdmi-hotplug_1.0-1_armhf.deb
      dpkg -i --force-overwrite kodi-hdmi-hotplug_1.0-1_armhf.deb
      
      Please note ! On the installation the first user of the system is taken and added in the /etc/udev/rules.d/hdmi.rules file, if you have multiple users configured
      you have to add your preferred user manually, don't forget to reload the rules after edit with udevadm control --reload-rules && udevadm trigger


      Finished !

      Have Fun with you new NAS MediaCenter :)

      P.S: As a bonus I have compiled three very cool visualizations for playing audio files
      screenshot001_.png
      screenshot001_.png (599.01 KiB) Viewed 6319 times
      Last edited by AreaScout on Tue Sep 03, 2019 5:53 pm, edited 19 times in total.

      User avatar
      odroid
      Site Admin
      Posts: 32368
      Joined: Fri Feb 22, 2013 11:14 pm
      languages_spoken: English
      ODROIDs: ODROID
      Has thanked: 147 times
      Been thanked: 325 times
      Contact:

      Re: LCD Display Info and Monitoring Tool

      Unread post by odroid » Mon Feb 18, 2019 6:52 pm

      Great gem for CloudShell users. :D
      Thank you for supplying the handy deb package.

      User avatar
      AreaScout
      Posts: 1066
      Joined: Sun Jul 07, 2013 3:05 am
      languages_spoken: german, english
      ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
      N1, Go, VU5A, Show2, CloudShell2,
      H2, N2, VU7A, VuShell
      Has thanked: 15 times
      Been thanked: 48 times
      Contact:

      Re: LCD Display Info and Monitoring Tool

      Unread post by AreaScout » Mon Feb 18, 2019 7:12 pm

      odroid wrote:
      Mon Feb 18, 2019 6:52 pm
      Great gem for CloudShell users. :D
      Thank you for supplying the handy deb package.
      wohh ! that was fast -> my pleasure :)

      RG

      User avatar
      AreaScout
      Posts: 1066
      Joined: Sun Jul 07, 2013 3:05 am
      languages_spoken: german, english
      ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
      N1, Go, VU5A, Show2, CloudShell2,
      H2, N2, VU7A, VuShell
      Has thanked: 15 times
      Been thanked: 48 times
      Contact:

      Re: LCD Display Info and Monitoring Tool

      Unread post by AreaScout » Tue Feb 19, 2019 8:53 pm

      I have added a console command to hide console output which is still active in the background, I will add this to the deb package installer in upcoming versions

      User avatar
      odroid
      Site Admin
      Posts: 32368
      Joined: Fri Feb 22, 2013 11:14 pm
      languages_spoken: English
      ODROIDs: ODROID
      Has thanked: 147 times
      Been thanked: 325 times
      Contact:

      Re: LCD Display Info and Monitoring Tool

      Unread post by odroid » Wed Feb 20, 2019 9:41 am

      I love the brand new words "The NAS MediaCenter" :D

      Is the audio visualizer add-on able to show on the small LCD too?

      User avatar
      AreaScout
      Posts: 1066
      Joined: Sun Jul 07, 2013 3:05 am
      languages_spoken: german, english
      ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
      N1, Go, VU5A, Show2, CloudShell2,
      H2, N2, VU7A, VuShell
      Has thanked: 15 times
      Been thanked: 48 times
      Contact:

      Re: LCD Display Info and Monitoring Tool

      Unread post by AreaScout » Wed Feb 20, 2019 5:01 pm

      odroid wrote:
      Wed Feb 20, 2019 9:41 am
      I love the brand new words "The NAS MediaCenter" :D

      Is the audio visualizer add-on able to show on the small LCD too?
      Yes it should, although the LCD on the Gaming Kit is faster, so not all effects would run without a little stutter

      User avatar
      AreaScout
      Posts: 1066
      Joined: Sun Jul 07, 2013 3:05 am
      languages_spoken: german, english
      ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
      N1, Go, VU5A, Show2, CloudShell2,
      H2, N2, VU7A, VuShell
      Has thanked: 15 times
      Been thanked: 48 times
      Contact:

      Re: LCD Display Info and Monitoring Tool

      Unread post by AreaScout » Fri Feb 22, 2019 2:26 am

      Hi all

      A new version of the CloudShell2 LCD Info and Monitoring Tool is available https://www.areascout.at/cloudshell2-mo ... _armhf.deb
      1. I have fixed a null pointer exception when the tool was startet with disconnected lan cable
      2. tty1 console output will be disabled now upon installation and enabled on deinstall/removal the command which is triggered is systemctl mask getty@tty1 and systemctl umask getty@tty1
      RG

      DeJe
      Posts: 10
      Joined: Sat Dec 30, 2017 12:24 am
      languages_spoken: english
      ODROIDs: XU4Q, HC1
      Has thanked: 0
      Been thanked: 0
      Contact:

      Re: LCD Display Info and Monitoring Tool

      Unread post by DeJe » Tue Feb 26, 2019 4:02 am

      I have to say thanks for the lcd monitoring tool.
      Working like charm on Ubuntu 18.04.

      User avatar
      AreaScout
      Posts: 1066
      Joined: Sun Jul 07, 2013 3:05 am
      languages_spoken: german, english
      ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
      N1, Go, VU5A, Show2, CloudShell2,
      H2, N2, VU7A, VuShell
      Has thanked: 15 times
      Been thanked: 48 times
      Contact:

      Re: LCD Display Info and Monitoring Tool

      Unread post by AreaScout » Tue Feb 26, 2019 11:41 pm

      DeJe wrote:
      Tue Feb 26, 2019 4:02 am
      I have to say thanks for the lcd monitoring tool.
      Working like charm on Ubuntu 18.04.
      And thanks for confirming :)

      @all

      I have updated the cloudshell2 monitoring tool, I had a typo when the package was removed to re-enable the getty@tty1 service, it is unmask not umask, just install the new package over the old one if you want a clean removal
      at time of de-install

      RG

      freebs
      Posts: 14
      Joined: Tue Feb 26, 2019 8:33 am
      languages_spoken: english
      ODROIDs: xu4Q
      Has thanked: 0
      Been thanked: 0
      Contact:

      Re: LCD Display Info and Monitoring Tool

      Unread post by freebs » Wed Feb 27, 2019 2:07 am

      ok I installed this image per instructions on irc.. viewtopic.php?f=96&t=30552 on an xu4

      Followed instruction here.. quite easy.. to install deb files.. no X11 install per instructions as well.

      screen shot of video info. from kodi 18,RC1 supplied from this thread


      I can get sound .. kodi starts fine.. but it won't play any videos.
      Can someone point me in the right direction. All new to me with regards to odoird.

      Thanks
      freebs!

      P.S any chance you can or have posted an instr. on compiling kodi on a minimal debian or unbuntu image with GBM drivers ? I tried serval times.. got to 100% and yet failed. :(

      User avatar
      AreaScout
      Posts: 1066
      Joined: Sun Jul 07, 2013 3:05 am
      languages_spoken: german, english
      ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
      N1, Go, VU5A, Show2, CloudShell2,
      H2, N2, VU7A, VuShell
      Has thanked: 15 times
      Been thanked: 48 times
      Contact:

      Re: LCD Display Info and Monitoring Tool

      Unread post by AreaScout » Wed Feb 27, 2019 3:51 am

      freebs wrote:
      Wed Feb 27, 2019 2:07 am
      ok I installed this image per instructions on irc.. viewtopic.php?f=96&t=30552 on an xu4

      Followed instruction here.. quite easy.. to install deb files.. no X11 install per instructions as well.

      screen shot of video info. from kodi 18,RC1 supplied from this thread



      I can get sound .. kodi starts fine.. but it won't play any videos.
      Can someone point me in the right direction. All new to me with regards to odoird.

      Thanks
      freebs!

      P.S any chance you can or have posted an instr. on compiling kodi on a minimal debian or unbuntu image with GBM drivers ? I tried serval times.. got to 100% and yet failed. :(
      Strange any logfile from what's happen on kodi side ?

      Please follow this tutorial viewtopic.php?f=98&t=32173#p235249 and skip the part from compiling the linux kernel, after you applied the kodi.patch file
      revert this change

      Code: Select all

      diff --git a/xbmc/windowing/gbm/DRMUtils.cpp b/xbmc/windowing/gbm/DRMUtils.cpp
      index 215f696e17..a99330c70e 100644
      --- a/xbmc/windowing/gbm/DRMUtils.cpp
      +++ b/xbmc/windowing/gbm/DRMUtils.cpp
      @@ -352,7 +352,7 @@ drmModePlanePtr CDRMUtils::FindPlane(drmModePlaneResPtr resources, int crtc_inde
                 {
                   case KODI_VIDEO_PLANE:
                   {
      -              if (SupportsFormat(plane, DRM_FORMAT_NV12))
      +              if (SupportsFormat(plane, DRM_FORMAT_NV12) || SupportsFormat(plane, DRM_FORMAT_XRGB8888))
                     {
                       CLog::Log(LOGDEBUG, "CDRMUtils::%s - found video plane %u", __FUNCTION__, plane->plane_id);
                       drmModeFreeProperty(p);
      
      and you should be good, in the past there was an issue with plane selection when only one plane was available but it seems that newer kernel versions doesn't have that anymore as far as I can tell

      freebs
      Posts: 14
      Joined: Tue Feb 26, 2019 8:33 am
      languages_spoken: english
      ODROIDs: xu4Q
      Has thanked: 0
      Been thanked: 0
      Contact:

      Re: LCD Display Info and Monitoring Tool

      Unread post by freebs » Wed Feb 27, 2019 5:05 am

      here is the log file from kodi.. I played a movie, I see no errors. you'll see around line 10 a movie stated to play.. but nothing on screen.
      Noting tells me anything perhaps you'll know exactly what has gone on.

      Thanks for any input!


      https://pastebin.com/L4kNAYnF

      freebs
      Posts: 14
      Joined: Tue Feb 26, 2019 8:33 am
      languages_spoken: english
      ODROIDs: xu4Q
      Has thanked: 0
      Been thanked: 0
      Contact:

      Re: LCD Display Info and Monitoring Tool

      Unread post by freebs » Wed Feb 27, 2019 5:06 am

      opps i seen line 176.. can't open video codec..

      User avatar
      AreaScout
      Posts: 1066
      Joined: Sun Jul 07, 2013 3:05 am
      languages_spoken: german, english
      ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
      N1, Go, VU5A, Show2, CloudShell2,
      H2, N2, VU7A, VuShell
      Has thanked: 15 times
      Been thanked: 48 times
      Contact:

      Re: LCD Display Info and Monitoring Tool

      Unread post by AreaScout » Wed Feb 27, 2019 5:18 am

      freebs wrote:
      Wed Feb 27, 2019 5:06 am
      opps i seen line 176.. can't open video codec..
      What patches are in ? Is the kernel patched or not ?

      freebs
      Posts: 14
      Joined: Tue Feb 26, 2019 8:33 am
      languages_spoken: english
      ODROIDs: xu4Q
      Has thanked: 0
      Been thanked: 0
      Contact:

      Re: LCD Display Info and Monitoring Tool

      Unread post by freebs » Wed Feb 27, 2019 5:20 am

      no i patched no kernel as of yet... just posted the log.. i was also following this. https://magazine.odroid.com/article/gbm-video-driver/ but have not started anything as of yet.

      the kernel is just updated from that original image download. it's 4.14.102+

      User avatar
      AreaScout
      Posts: 1066
      Joined: Sun Jul 07, 2013 3:05 am
      languages_spoken: german, english
      ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
      N1, Go, VU5A, Show2, CloudShell2,
      H2, N2, VU7A, VuShell
      Has thanked: 15 times
      Been thanked: 48 times
      Contact:

      Re: LCD Display Info and Monitoring Tool

      Unread post by AreaScout » Wed Feb 27, 2019 5:28 am

      freebs wrote:
      Wed Feb 27, 2019 5:20 am
      no i patched no kernel as of yet... just posted the log.. i was also following this. https://magazine.odroid.com/article/gbm-video-driver/ but have not started anything as of yet.
      Ok that was not a good question from me :o as you installed my debian kodi packages, it could be that there is no samsung firmware for the HW decoder installed, please make sure that the package firmware-samsung is installed, reboot and try again, if it's not working with this, then go for the Ubuntu image from the first post, add user as described, skip the part with SDL2 and go over to the kodi compiling tutorial, revert the changes from the kodi.patch I posted and apply FFmpeg patch,
      that should give you a working kodi

      RG

      freebs
      Posts: 14
      Joined: Tue Feb 26, 2019 8:33 am
      languages_spoken: english
      ODROIDs: xu4Q
      Has thanked: 0
      Been thanked: 0
      Contact:

      Re: LCD Display Info and Monitoring Tool

      Unread post by freebs » Wed Feb 27, 2019 5:30 am

      will do thanks.. I'll report back either way. Thanks!

      freebs
      Posts: 14
      Joined: Tue Feb 26, 2019 8:33 am
      languages_spoken: english
      ODROIDs: xu4Q
      Has thanked: 0
      Been thanked: 0
      Contact:

      Re: LCD Display Info and Monitoring Tool

      Unread post by freebs » Wed Feb 27, 2019 5:35 am

      good grief.. that was easy!.. awesome.. all works now!

      thank you again. If not for your guides I would have thrown this threw a window.. lol kidding.

      Did I miss a step.. ? i don't recall firmware-samsung along the way...

      Now to get kodi-pvr-iptvsimple compiled and working for arm7.. then i'm done :)

      User avatar
      AreaScout
      Posts: 1066
      Joined: Sun Jul 07, 2013 3:05 am
      languages_spoken: german, english
      ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
      N1, Go, VU5A, Show2, CloudShell2,
      H2, N2, VU7A, VuShell
      Has thanked: 15 times
      Been thanked: 48 times
      Contact:

      Re: LCD Display Info and Monitoring Tool

      Unread post by AreaScout » Wed Feb 27, 2019 5:45 am

      Ha ! very good, i will add that package to the tutorial above :)

      Have Fun !

      DeJe
      Posts: 10
      Joined: Sat Dec 30, 2017 12:24 am
      languages_spoken: english
      ODROIDs: XU4Q, HC1
      Has thanked: 0
      Been thanked: 0
      Contact:

      Re: LCD Display Info and Monitoring Tool + Kodi install

      Unread post by DeJe » Thu Feb 28, 2019 3:16 am

      As it is working I have a few things which seems not to be working. ;)

      For testing I set "FAN_ON_TEMP" to 40 and it switches OFF after 5 min. correctly. But it never switch the fan ON even if the temp is way over 60°C.
      EDIT: The fan I take back. It seems to be working. But also here there is a long timeout. Have to have a look how it works, report later.
      Second, "CS_HDD_MOUNTP" don't work. I tried "/dev/sda2" and "/srv" (sda2 is mounted to /srv), neither worked. It still show status from "root" -> sda1.
      May I missed something in the description to get /etc/environment working.

      Last not least an enhancement request: specify the LCD update frequency. As of now it is instant (CPU switches permanently and much faster than the time). To me it would be fine if it is 10s or 1 minute. :D


      EDIT again: I don't understand fan control. CPU temp is at 55+°C since 15 minutes and the fan does not switch on.
      Environment:
      odroid@odroid:~$ cat /etc/environment
      PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
      FAN_ON_TEMP=45
      CS_HDD_MOUNTP=/dev/sda2/

      User avatar
      AreaScout
      Posts: 1066
      Joined: Sun Jul 07, 2013 3:05 am
      languages_spoken: german, english
      ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
      N1, Go, VU5A, Show2, CloudShell2,
      H2, N2, VU7A, VuShell
      Has thanked: 15 times
      Been thanked: 48 times
      Contact:

      Re: LCD Display Info and Monitoring Tool + Kodi install

      Unread post by AreaScout » Thu Feb 28, 2019 4:14 am

      DeJe wrote:
      Thu Feb 28, 2019 3:16 am
      As it is working I have a few things which seems not to be working. ;)

      For testing I set "FAN_ON_TEMP" to 40 and it switches OFF after 5 min. correctly. But it never switch the fan ON even if the temp is way over 60°C.
      EDIT: The fan I take back. It seems to be working. But also here there is a long timeout. Have to have a look how it works, report later.
      Second, "CS_HDD_MOUNTP" don't work. I tried "/dev/sda2" and "/srv" (sda2 is mounted to /srv), neither worked. It still show status from "root" -> sda1.
      May I missed something in the description to get /etc/environment working.

      Last not least an enhancement request: specify the LCD update frequency. As of now it is instant (CPU switches permanently and much faster than the time). To me it would be fine if it is 10s or 1 minute. :D


      EDIT again: I don't understand fan control. CPU temp is at 55+°C since 15 minutes and the fan does not switch on.
      Environment:
      odroid@odroid:~$ cat /etc/environment
      PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
      FAN_ON_TEMP=45
      CS_HDD_MOUNTP=/dev/sda2/
      Uhhh ... It seems that getenv ignores the variables from /etc/environment, please add them to /usr/local/bin/start-lcd so it would look like this:

      Code: Select all

      #!/bin/bash
      
      export NETIF=$(ls /sys/class/net -I lo)
      export FAN_ON_TEMP=45
      export CS_HDD_MOUNTP=/dev/sda2/
      echo 0 > /sys/class/graphics/fbcon/cursor_blink
      echo none > /sys/class/leds/blue\:heartbeat/trigger
      /usr/local/bin/CloudShell2_lcd
      
      I did test them when I was coding the app by adding it directly to the command line like FAN_ON_TEMP=55 ./Cloudshell_lcd

      RG

      User avatar
      AreaScout
      Posts: 1066
      Joined: Sun Jul 07, 2013 3:05 am
      languages_spoken: german, english
      ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
      N1, Go, VU5A, Show2, CloudShell2,
      H2, N2, VU7A, VuShell
      Has thanked: 15 times
      Been thanked: 48 times
      Contact:

      Re: LCD Display Info and Monitoring Tool + Kodi install

      Unread post by AreaScout » Thu Feb 28, 2019 6:32 pm

      DeJe wrote:
      Thu Feb 28, 2019 3:16 am
      Last not least an enhancement request: specify the LCD update frequency. As of now it is instant (CPU switches permanently and much faster than the time). To me it would be fine if it is 10s or 1 minute. :D
      What do you want archive with this changes ? less CPU usage ? I am asking you just to be sure what you want, it could be that the CPU usage will not decrease, because you don't update the frame buffer that frequently but you have to update the CPU temp, network broadband to get a value to react immediate and not at the end of the day.

      So is it less CPU usage you are asking for ?

      RG

      DeJe
      Posts: 10
      Joined: Sat Dec 30, 2017 12:24 am
      languages_spoken: english
      ODROIDs: XU4Q, HC1
      Has thanked: 0
      Been thanked: 0
      Contact:

      Re: LCD Display Info and Monitoring Tool + Kodi install

      Unread post by DeJe » Thu Feb 28, 2019 9:07 pm

      Thanks, i will try your suggestion.

      In general yes, less CPU load. So this setting should not only work for LCD update but also all the other updates of values. I think even measure once a second or every 10 seconds will be much enough to react. Temp will not change to a dangerous value in a fraction of a second.
      Anyway, just my opinion, would be nice to have. :D

      User avatar
      AreaScout
      Posts: 1066
      Joined: Sun Jul 07, 2013 3:05 am
      languages_spoken: german, english
      ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
      N1, Go, VU5A, Show2, CloudShell2,
      H2, N2, VU7A, VuShell
      Has thanked: 15 times
      Been thanked: 48 times
      Contact:

      Re: LCD Display Info and Monitoring Tool + Kodi install

      Unread post by AreaScout » Thu Feb 28, 2019 9:44 pm

      DeJe wrote:
      Thu Feb 28, 2019 9:07 pm
      Thanks, i will try your suggestion.

      In general yes, less CPU load. So this setting should not only work for LCD update but also all the other updates of values. I think even measure once a second or every 10 seconds will be much enough to react. Temp will not change to a dangerous value in a fraction of a second.
      Anyway, just my opinion, would be nice to have. :D
      Ok here is how it is done with the version you already have:


      Check Raid status: every ~20 min
      Check Fan control: every ~8 sec
      Check for new IP: every ~5 sec
      Check CPU temp: every ~2 sec
      Check HardDisk Info: every ~30 sec
      Check UpTime: every ~45 sec
      Check used Network Broad Band: every ~3 sec
      Draw Framebuffer is 10fps


      But I will think of a even better way and let you know my changes, also know you can only see the upload speed to your CS, i will also make download speed visible in next release

      RG

      User avatar
      rooted
      Posts: 6702
      Joined: Fri Dec 19, 2014 9:12 am
      languages_spoken: english
      Location: Gulf of Mexico, US
      Has thanked: 168 times
      Been thanked: 34 times
      Contact:

      Re: LCD Display Info and Monitoring Tool + Kodi install

      Unread post by rooted » Thu Feb 28, 2019 11:37 pm

      Disregard, you are monitoring size not health.

      User avatar
      AreaScout
      Posts: 1066
      Joined: Sun Jul 07, 2013 3:05 am
      languages_spoken: german, english
      ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
      N1, Go, VU5A, Show2, CloudShell2,
      H2, N2, VU7A, VuShell
      Has thanked: 15 times
      Been thanked: 48 times
      Contact:

      Re: LCD Display Info and Monitoring Tool + Kodi install

      Unread post by AreaScout » Thu Feb 28, 2019 11:48 pm

      rooted wrote:
      Thu Feb 28, 2019 11:37 pm
      Disregard, you are monitoring size not health.
      Who gave you the licence to tell this, eh ? Quick please :lol:

      I shut down the cloudshell2 before overheating and I monitor the status of the fan and turn it on/off on temp ramp, isn't that healthy ?

      User avatar
      AreaScout
      Posts: 1066
      Joined: Sun Jul 07, 2013 3:05 am
      languages_spoken: german, english
      ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
      N1, Go, VU5A, Show2, CloudShell2,
      H2, N2, VU7A, VuShell
      Has thanked: 15 times
      Been thanked: 48 times
      Contact:

      Re: LCD Display Info and Monitoring Tool + Kodi install

      Unread post by AreaScout » Fri Mar 01, 2019 12:20 am

      DeJe wrote:
      Thu Feb 28, 2019 9:07 pm
      In general yes, less CPU load.
      I did had a closer look and yes there is still room for improvements to use less CPU time and next versions will have that added :)

      DeJe
      Posts: 10
      Joined: Sat Dec 30, 2017 12:24 am
      languages_spoken: english
      ODROIDs: XU4Q, HC1
      Has thanked: 0
      Been thanked: 0
      Contact:

      Re: LCD Display Info and Monitoring Tool + Kodi install

      Unread post by DeJe » Fri Mar 01, 2019 2:27 am

      Sounds good. :)

      Setting environment via start-lcd is working as far as I can see. So all fine here with current version. :D

      User avatar
      rooted
      Posts: 6702
      Joined: Fri Dec 19, 2014 9:12 am
      languages_spoken: english
      Location: Gulf of Mexico, US
      Has thanked: 168 times
      Been thanked: 34 times
      Contact:

      Re: LCD Display Info and Monitoring Tool + Kodi install

      Unread post by rooted » Fri Mar 01, 2019 7:57 am

      AreaScout wrote:
      rooted wrote:
      Thu Feb 28, 2019 11:37 pm
      Disregard, you are monitoring size not health.
      Who gave you the licence to tell this, eh ? Quick please Image

      I shut down the cloudshell2 before overheating and I monitor the status of the fan and turn it on/off on temp ramp, isn't that healthy ?
      My original comment said if monitoring the drives S.M.A.R.T status they wouldn't spin down or sleep.

      I edited the comment because you are monitoring size usage which shouldn't spin the drive up.

      User avatar
      AreaScout
      Posts: 1066
      Joined: Sun Jul 07, 2013 3:05 am
      languages_spoken: german, english
      ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
      N1, Go, VU5A, Show2, CloudShell2,
      H2, N2, VU7A, VuShell
      Has thanked: 15 times
      Been thanked: 48 times
      Contact:

      Re: LCD Display Info and Monitoring Tool + Kodi install

      Unread post by AreaScout » Fri Mar 01, 2019 7:04 pm

      rooted wrote:
      Fri Mar 01, 2019 7:57 am
      AreaScout wrote:
      rooted wrote:
      Thu Feb 28, 2019 11:37 pm
      Disregard, you are monitoring size not health.
      Who gave you the licence to tell this, eh ? Quick please Image

      I shut down the cloudshell2 before overheating and I monitor the status of the fan and turn it on/off on temp ramp, isn't that healthy ?
      My original comment said if monitoring the drives S.M.A.R.T status they wouldn't spin down or sleep.

      I edited the comment because you are monitoring size usage which shouldn't spin the drive up.
      Yes that's true, it doesn't, also asking for the raid status via raid manager doesn't spin up the drives, I was afraid about that when I first tried it ;)

      RG

      User avatar
      AreaScout
      Posts: 1066
      Joined: Sun Jul 07, 2013 3:05 am
      languages_spoken: german, english
      ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
      N1, Go, VU5A, Show2, CloudShell2,
      H2, N2, VU7A, VuShell
      Has thanked: 15 times
      Been thanked: 48 times
      Contact:

      Re: LCD Display Info and Monitoring Tool + Kodi install

      Unread post by AreaScout » Sun Mar 03, 2019 10:02 pm

      DeJe wrote:
      Fri Mar 01, 2019 2:27 am
      Sounds good. :)

      Setting environment via start-lcd is working as far as I can see. So all fine here with current version. :D
      Ok I have posted a new version which only consumes 0.47 avg cpu usage :)

      http://www.areascout.at/cloudshell2-mon ... _armhf.deb

      The current network broadband is shown now for upload AND download, the up arrow icon shows of course upload to the CS2 from a PC perspective and down arrow download from the CS2

      Have fun

      User avatar
      AreaScout
      Posts: 1066
      Joined: Sun Jul 07, 2013 3:05 am
      languages_spoken: german, english
      ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
      N1, Go, VU5A, Show2, CloudShell2,
      H2, N2, VU7A, VuShell
      Has thanked: 15 times
      Been thanked: 48 times
      Contact:

      Re: LCD Display Info and Monitoring Tool + Kodi install

      Unread post by AreaScout » Wed Mar 06, 2019 12:39 am

        Soon there will be a new screen layout :)

        Image

        RG

        User avatar
        AreaScout
        Posts: 1066
        Joined: Sun Jul 07, 2013 3:05 am
        languages_spoken: german, english
        ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
        N1, Go, VU5A, Show2, CloudShell2,
        H2, N2, VU7A, VuShell
        Has thanked: 15 times
        Been thanked: 48 times
        Contact:

        Re: LCD Display Info and Monitoring Tool + Kodi install

        Unread post by AreaScout » Tue Mar 12, 2019 8:03 pm

        New version 1.0.5 is online:
        • New display layout ( larger fonts )
        • Rework uptime info
        cloudshell2 LCD display and monitoring tool 1.0.5

        Image

        Have fun

        User avatar
        odroid
        Site Admin
        Posts: 32368
        Joined: Fri Feb 22, 2013 11:14 pm
        languages_spoken: English
        ODROIDs: ODROID
        Has thanked: 147 times
        Been thanked: 325 times
        Contact:

        Re: LCD Display Info and Monitoring Tool + Kodi install

        Unread post by odroid » Wed Mar 13, 2019 8:51 am

        More than perfect!
        We couldn't expect how a small TFT LCD shows the useful information beautifully.

        User avatar
        venkatbo
        Posts: 527
        Joined: Mon Feb 25, 2013 3:10 pm
        languages_spoken: english
        ODROIDs: C0/C1+/C2; U3+; XU3-Lite/XU4; H2; VU/VU7+; Touchscreen Show TFT Cloudshell SmartPower mAHRS DAC GPS Multiscope Ocam
        Location: Bay Area, California
        Has thanked: 0
        Been thanked: 5 times
        Contact:

        Re: LCD Display Info and Monitoring Tool + Kodi install

        Unread post by venkatbo » Wed Mar 13, 2019 9:01 am

        Wow. Nice eye candy...

        User avatar
        AreaScout
        Posts: 1066
        Joined: Sun Jul 07, 2013 3:05 am
        languages_spoken: german, english
        ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
        N1, Go, VU5A, Show2, CloudShell2,
        H2, N2, VU7A, VuShell
        Has thanked: 15 times
        Been thanked: 48 times
        Contact:

        Re: LCD Display Info and Monitoring Tool + Kodi install

        Unread post by AreaScout » Thu Mar 14, 2019 5:42 pm

        odroid wrote:
        Wed Mar 13, 2019 8:51 am
        More than perfect!
        We couldn't expect how a small TFT LCD shows the useful information beautifully.
        venkatbo wrote:
        Wed Mar 13, 2019 9:01 am
        Wow. Nice eye candy...
        Thank you both ! :)

        RG

        User avatar
        AreaScout
        Posts: 1066
        Joined: Sun Jul 07, 2013 3:05 am
        languages_spoken: german, english
        ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
        N1, Go, VU5A, Show2, CloudShell2,
        H2, N2, VU7A, VuShell
        Has thanked: 15 times
        Been thanked: 48 times
        Contact:

        Re: LCD Display Info and Monitoring Tool + Kodi install

        Unread post by AreaScout » Tue Mar 19, 2019 11:44 pm

          @all

          The next version will not need the Raid Manager raidmgr_static dependency anymore :) It will have it's own capability to talk to JMicron controller and therefore it can support the user/you with a lot of useful information, i.e if a Harddisk fails it will send you mail not only with a notice which what happens and in which state the RAID configuration is, it will provide you also with HDD SMART information of raw read write error rate and SATA CRC error rate with exact information on which you can conclude which drive failed :idea:

          It will also show you the temperature of the hard disks :ugeek:

          Here is a raw layout how it could look like + information that will be send via email in case of drive/raid error's

          Image

          Code: Select all

              Firmware version = 158.01.00.01
              Manufacturer     = JMicron Technology Corp.
              Product name     = JMS56X H/W RAID
              Serial number    = 427491329
          
              SATA Port 0
          
                Model name        = WDC WD10EVDS-63U8B0
                Serial number     =      WD-WCAV5F641919
                Capacity          = 931.50 GB
                Port type         = 2 (RAID Disk)
                Port speed        = 2 (Gen 2)
                Page 0 state      = 2 (Hooked to PM)
                RAID index        = 0
                RAID member index = 0
                Port              = 15
          
              SATA Port 1
          
                Model name        = WDC WD5000AAKX-001CA0
                Serial number     =      WD-WCAYUHC21407
                Capacity          = 465.75 GB
                Port type         = 2 (RAID Disk)
                Port speed        = 3 (Gen 3)
                Page 0 state      = 2 (Hooked to PM)
                RAID index        = 0
                RAID member index = 1
                Port              = 15
          
            SATA port 0 info ...
          
              Model name        = WDC WD10EVDS-63U8B0
              Serial number     =      WD-WCAV5F641919
              Firmware version  = 01.00A01
              Capacity          = 931.50 GB
              Capacity used     = 465.72 GB
              Port type         = 2 (RAID Disk)
              Port              = 0
              Page 0 state      = 2 (Hooked to PM)
              RAID index        = 0
              RAID member index = 0
          
            SATA port 1 info ...
          
              Model name        = WDC WD5000AAKX-001CA0
              Serial number     =      WD-WCAYUHC21407
              Firmware version  = 15.01H15
              Capacity          = 465.75 GB
              Capacity used     = 465.72 GB
              Port type         = 2 (RAID Disk)
              Port              = 0
              Page 0 state      = 2 (Hooked to PM)
              RAID index        = 0
              RAID member index = 1
          
            RAID port 0 info ...
          
              Model name       = H/W RAID1
              Serial number    = XGACLJ9JG4PZXU6CMHW1
              Port state       = 1
              Level            = 1 (RAID 1)
              Capacity         = 465.72 GB
              State            = 3 (Normal)
              Member count     = 2
              Rebuild priority = 4096 (Medium)
              Standby timer    = 0 sec
              Password         =
              Rebuild progress = 0.00 %
          
              Member 0
          
                Ready         = 1
                LBA48 support = 1
                SATA port     = 0
                SATA page     = 0
                SATA base     = 0
                SATA size     = 465.72 GB
          
              Member 1
          
                Ready         = 1
                LBA48 support = 1
                SATA port     = 1
                SATA page     = 0
                SATA base     = 0
                SATA size     = 465.72 GB
          
            SMART info (disk 0) ...
          
                1 | 002F |  51 | 200 | 200 | 000000000000 |               0 | Raw Read Error Rate
                3 | 0027 |  21 | 136 | 123 | 000000001838 |            6200 | Spin Up Time
                4 | 0032 |   0 |  97 |  97 | 000000000D26 |            3366 | Start/Stop Count
                5 | 0033 | 140 | 200 | 200 | 000000000000 |               0 | Reallocated Sectors Count
                7 | 002E |   0 | 100 | 253 | 000000000000 |               0 | Seek Error Rate
                9 | 0032 |   0 |  69 |  69 | 0000000059EA |           23018 | Power-On Time Count
               10 | 0032 |   0 | 100 | 100 | 000000000000 |               0 | Spin Retry Count
               11 | 0032 |   0 | 100 | 100 | 000000000000 |               0 | Drive Calibration Retry Count
               12 | 0032 |   0 |  98 |  98 | 000000000A60 |            2656 | Drive Power Cycle Count
              192 | 0032 |   0 | 200 | 200 | 0000000002B4 |             692 | Power off Retract Cycle
              193 | 0032 |   0 |  88 |  88 | 000000052B55 |          338773 | Load/Unload Cycle Count
              194 | 0022 |   0 | 111 |  89 | 000000000024 |              36 | HDD Temperature
              196 | 0032 |   0 | 200 | 200 | 000000000000 |               0 | Reallocation Event Count
              197 | 0032 |   0 | 200 | 200 | 000000000000 |               0 | Current Pending Sector Count
              198 | 0030 |   0 | 200 | 200 | 000000000000 |               0 | Off-Line Uncorrectable Sector Count
              199 | 0032 |   0 | 200 | 200 | 0000000002ED |             749 | Ultra ATA CRC Error Count
              200 | 0008 |   0 | 200 | 200 | 000000000000 |               0 | Write Error Rate
          
            SMART info (disk 1) ...
          
                1 | 002F |  51 | 200 | 200 | 000000000000 |               0 | Raw Read Error Rate
                3 | 0027 |  21 | 142 | 138 | 000000000F23 |            3875 | Spin Up Time
                4 | 0032 |   0 |  99 |  99 | 0000000006F1 |            1777 | Start/Stop Count
                5 | 0033 | 140 | 200 | 200 | 000000000000 |               0 | Reallocated Sectors Count
                7 | 002E |   0 | 200 | 200 | 000000000000 |               0 | Seek Error Rate
                9 | 0032 |   0 |  97 |  97 | 0000000008D6 |            2262 | Power-On Time Count
               10 | 0032 |   0 | 100 | 100 | 000000000000 |               0 | Spin Retry Count
               11 | 0032 |   0 | 100 | 100 | 000000000000 |               0 | Drive Calibration Retry Count
               12 | 0032 |   0 | 100 | 100 | 000000000222 |             546 | Drive Power Cycle Count
              192 | 0032 |   0 | 200 | 200 | 000000000089 |             137 | Power off Retract Cycle
              193 | 0032 |   0 | 200 | 200 | 000000000667 |            1639 | Load/Unload Cycle Count
              194 | 0022 |   0 | 103 |  91 | 000000000028 |              40 | HDD Temperature
              196 | 0032 |   0 | 200 | 200 | 000000000000 |               0 | Reallocation Event Count
              197 | 0032 |   0 | 200 | 200 | 000000000000 |               0 | Current Pending Sector Count
              198 | 0030 |   0 | 200 | 200 | 000000000000 |               0 | Off-Line Uncorrectable Sector Count
              199 | 0032 |   0 | 200 | 200 | 000000000001 |               1 | Ultra ATA CRC Error Count
              200 | 0008 |   0 | 200 | 200 | 000000000000 |               0 | Write Error Rate
          
          RG

          maki26
          Posts: 8
          Joined: Sat Jan 19, 2019 4:25 am
          languages_spoken: english, polish
          ODROIDs: XU4 + Cloudshell 2
          Has thanked: 2 times
          Been thanked: 0
          Contact:

          Re: LCD Display Info and Monitoring Tool + Kodi install

          Unread post by maki26 » Fri Mar 22, 2019 4:28 pm

          AreaScout wrote:
          Mon Feb 18, 2019 6:45 pm
          LCD Display Info and Monitoring Tool
          Installation:

          Install Raid Manager ! <--- IMPORTANT:

          Code: Select all

          cd /usr/local/bin
          sudo wget https://dn.odroid.com/cloudshell2/script/raidmgr_static
          sudo chmod 755 raidmgr_static
          
          Activate the LCD:

          Code: Select all

          wget https://github.com/seungchar/odroid-cloudshell/raw/master/odroid-cloudshell_20170420-4_armhf.deb
          sudo dpkg -i odroid-cloudshell_20170420-4_armhf.deb
          
          Install dependencies:

          Code: Select all

          sudo apt-get install libfreetype6
          
          At last, Install the LCD Info and Monitoring tool:

          The LCD driver should already be running, load it manually or do a reboot here

          Code: Select all

          wget http://www.areascout.at/cloudshell2-monitoring_1.0.5-1_armhf.deb
          sudo dpkg -i cloudshell2-monitoring_1.0.5-1_armhf.deb
          
          Have fun with a new display look :)
          Hi AreaScout;

          I tried to install Your software and screen is black. by manual start /usr/local/bin/CloudShell2_lcd i get in terminal "Segmentation fault"

          - download and flash OMV image
          - upgrade & reboot

          Install all with instruction on top and use Your "example"

          I can see That LCD is activated because backlight is ON;

          Maybe some advice ??

          User avatar
          AreaScout
          Posts: 1066
          Joined: Sun Jul 07, 2013 3:05 am
          languages_spoken: german, english
          ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
          N1, Go, VU5A, Show2, CloudShell2,
          H2, N2, VU7A, VuShell
          Has thanked: 15 times
          Been thanked: 48 times
          Contact:

          Re: LCD Display Info and Monitoring Tool + Kodi install

          Unread post by AreaScout » Sat Mar 23, 2019 6:16 pm

            Hi all

            New version 1.0.6 is online:

            cloudshell2 LCD display and monitoring tool 1.0.6

            As I continuously will provide updates I have decided to release a new version although the new raid controller support is not yet finished, also I have fixed a bug which I think is important if you install your cloudshell from scratch
            • Raid Controller communication support :ugeek:
            • Harddisk temperature info
            • fix a crash when starting and no harddisk is mounted
            Report RAID Controller info from command line (can be executed while the tool is running)

            Code: Select all

            CloudShell2_lcd -i
            
            Image

            The RAID Controller communication does work only for /dev/sda (hard coded) device name, no LVM device name are supported yet you have to wait for 1.0.7

            Conclusion:

            Unbelievable that on such a small tool you have to pay that much attention on for different HW and SW configurations, if you do the graphic/layout design, programming and RAID library porting to linux, this can get really complex !

            P.S.: @maki26 this version should solve your problem

            Have fun

            maki26
            Posts: 8
            Joined: Sat Jan 19, 2019 4:25 am
            languages_spoken: english, polish
            ODROIDs: XU4 + Cloudshell 2
            Has thanked: 2 times
            Been thanked: 0
            Contact:

            Re: LCD Display Info and Monitoring Tool + Kodi install

            Unread post by maki26 » Sat Mar 23, 2019 6:43 pm

            Tool 1.0.5-1
            Linux odroidxu4 4.14.94-odroidxu4
            root@odroidxu4:~# start-lcd
            /usr/local/bin/start-lcd: line 7: 2389 Segmentation fault /usr/local/bin/CloudShell2_lcd


            @AreaScout
            Thank You. version 1.0.6-1 solve my problems. Thank You

            User avatar
            AreaScout
            Posts: 1066
            Joined: Sun Jul 07, 2013 3:05 am
            languages_spoken: german, english
            ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
            N1, Go, VU5A, Show2, CloudShell2,
            H2, N2, VU7A, VuShell
            Has thanked: 15 times
            Been thanked: 48 times
            Contact:

            Re: LCD Display Info and Monitoring Tool + Kodi install

            Unread post by AreaScout » Wed Mar 27, 2019 10:51 pm

              Hi all

              New bugfix version 1.0.6-2 is online:

              cloudshell2 LCD display and monitoring tool 1.0.6
                • Fix, wrong SMART info for HDD temperature and spin up time on some hard disks with AVG and MIN/MAX support
                Report RAID Controller info from command line (can be executed while the tool is running), if you find something not working correctly please report !

                Code: Select all

                CloudShell2_lcd -i
                
                Have fun

                User avatar
                AreaScout
                Posts: 1066
                Joined: Sun Jul 07, 2013 3:05 am
                languages_spoken: german, english
                ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
                N1, Go, VU5A, Show2, CloudShell2,
                H2, N2, VU7A, VuShell
                Has thanked: 15 times
                Been thanked: 48 times
                Contact:

                Re: LCD Display Info and Monitoring Tool + Kodi install

                Unread post by AreaScout » Sun Mar 31, 2019 7:04 pm

                  Hi all

                  New version 1.0.7 is online:

                  cloudshell2 LCD display and monitoring tool 1.0.7
                    • No hard coded use of /dev/sda anymore, the tool will find the device name ( good if you have i.e USB stick connected on boot and stick get's sda name )
                    • Rebuild percentage in real time if disk is rebuilding due to hard disk failure ( see illustration underneath )
                    • some small changes to improve stability
                    Image

                    Have fun

                    User avatar
                    mad_ady
                    Posts: 6680
                    Joined: Wed Jul 15, 2015 5:00 pm
                    languages_spoken: english
                    ODROIDs: XU4, C1+, C2, N1, H2, N2
                    Location: Bucharest, Romania
                    Has thanked: 194 times
                    Been thanked: 148 times
                    Contact:

                    Re: LCD Display Info and Monitoring Tool + Kodi install

                    Unread post by mad_ady » Sun Mar 31, 2019 8:28 pm

                    Silly question: why does it have a "close" "X" in the top right side? :)
                    The space could have been used for something...

                    User avatar
                    AreaScout
                    Posts: 1066
                    Joined: Sun Jul 07, 2013 3:05 am
                    languages_spoken: german, english
                    ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
                    N1, Go, VU5A, Show2, CloudShell2,
                    H2, N2, VU7A, VuShell
                    Has thanked: 15 times
                    Been thanked: 48 times
                    Contact:

                    Re: LCD Display Info and Monitoring Tool + Kodi install

                    Unread post by AreaScout » Sun Mar 31, 2019 9:55 pm

                    mad_ady wrote:
                    Sun Mar 31, 2019 8:28 pm
                    Silly question: why does it have a "close" "X" in the top right side? :)
                    It's a gimmick, when developing the display layout I found out that it looks best with it
                    mad_ady wrote:
                    Sun Mar 31, 2019 8:28 pm
                    The space could have been used for something...
                    For what, for example ?

                    User avatar
                    mad_ady
                    Posts: 6680
                    Joined: Wed Jul 15, 2015 5:00 pm
                    languages_spoken: english
                    ODROIDs: XU4, C1+, C2, N1, H2, N2
                    Location: Bucharest, Romania
                    Has thanked: 194 times
                    Been thanked: 148 times
                    Contact:

                    Re: LCD Display Info and Monitoring Tool + Kodi install

                    Unread post by mad_ady » Mon Apr 01, 2019 12:20 am

                    For what, for example ?
                    Some status indicator like you have on the bottom. Not sure what for. :)

                    But you're right - it would throw aesthetics out the window...

                    User avatar
                    AreaScout
                    Posts: 1066
                    Joined: Sun Jul 07, 2013 3:05 am
                    languages_spoken: german, english
                    ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
                    N1, Go, VU5A, Show2, CloudShell2,
                    H2, N2, VU7A, VuShell
                    Has thanked: 15 times
                    Been thanked: 48 times
                    Contact:

                    Re: LCD Display Info and Monitoring Tool + Kodi install

                    Unread post by AreaScout » Mon Apr 01, 2019 5:00 pm

                    mad_ady wrote:
                    Mon Apr 01, 2019 12:20 am
                    For what, for example ?
                    Some status indicator like you have on the bottom. Not sure what for. :)

                    But you're right - it would throw aesthetics out the window...
                    Hmm I will leave the close icon but make something new next to the left from it :D

                    User avatar
                    AreaScout
                    Posts: 1066
                    Joined: Sun Jul 07, 2013 3:05 am
                    languages_spoken: german, english
                    ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
                    N1, Go, VU5A, Show2, CloudShell2,
                    H2, N2, VU7A, VuShell
                    Has thanked: 15 times
                    Been thanked: 48 times
                    Contact:

                    Re: LCD Display Info and Monitoring Tool + Kodi install

                    Unread post by AreaScout » Tue Apr 02, 2019 6:57 pm

                      Hi all

                      Next version will have a Raid Level Indicator next to the close button

                      Image

                      RG

                      User avatar
                      AreaScout
                      Posts: 1066
                      Joined: Sun Jul 07, 2013 3:05 am
                      languages_spoken: german, english
                      ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
                      N1, Go, VU5A, Show2, CloudShell2,
                      H2, N2, VU7A, VuShell
                      Has thanked: 15 times
                      Been thanked: 48 times
                      Contact:

                      Re: LCD Display Info and Monitoring Tool + Kodi install

                      Unread post by AreaScout » Mon Apr 08, 2019 8:35 pm

                        Hi all

                        New bugfix version 1.0.7-2 is online:

                        cloudshell2 LCD display and monitoring tool 1.0.7
                          • Add package dependency sysstat which is not installed per default on Ubuntu
                          • Fix passing null string to SDL2_ttf which caused sometimes a crash on Ubuntu
                          Image

                          Have fun
                          These users thanked the author AreaScout for the post (total 2):
                          Gburas (Tue Apr 09, 2019 5:25 am) • maki26 (Thu Apr 11, 2019 7:50 pm)

                          maki26
                          Posts: 8
                          Joined: Sat Jan 19, 2019 4:25 am
                          languages_spoken: english, polish
                          ODROIDs: XU4 + Cloudshell 2
                          Has thanked: 2 times
                          Been thanked: 0
                          Contact:

                          Re: LCD Display Info and Monitoring Tool + Kodi install

                          Unread post by maki26 » Sat Apr 13, 2019 4:46 am

                          @AreaScout thank You for updated LCD tool.

                          I had installed Kodi as well, it's working as should, but now I tried to activate CEC and I'm lost.

                          1. actvate CEC in boot.ini
                          2. installed cec-utils
                          no results

                          cec-client -l
                          libCEC version: 4.0.1, compiled on Linux-3.16.0-4-armmp-lpae ... , features: P8_USB, DRM, P8_detect, randr
                          Found devices: NONE

                          3. install libcec4_4.0.2.1_xenialubuntu1hk1_armhf.deb
                          libCEC version: 4.0.2, git revision: v4l2linuxbuild+1-d1f106b~dirty, compiled on Seg Dez 4 16:49:34 UTC 2017 by root@1604_builder_armhf on Linux 3.10.96+ (armv7l), features: P8_USB, DRM, P8_detect, randr, Exynos, Linux
                          Found devices: NONE

                          meantime compile whole CEC from https://wiki.odroid.com/odroid-xu4/soft ... rom_source
                          still no /dev/cec0 adapter, so no cec in kodi as well. Maybe You can gave me some "trick" to get it work.

                          Post Reply

                          Return to “CloudShell”

                          Who is online

                          Users browsing this forum: No registered users and 1 guest