LCD Display Info and Monitoring Tool + Kodi install

Post Reply
User avatar
AreaScout
Posts: 799
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
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 on with OpenMediaVault and thus it's only tested on Debian but should work also on Ubuntu

It's exactly this Image and you have to install all the latest updates which includes a update from kernel 4.9 to 4.14 via the admin interface:

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

Image

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

Illustration:

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 CloudShell2_lcd tool monitors the Raid status and temperature.
It has two 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

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

Code: Select all

check_raid
raid_mailsend
start-lcd
temperature_shutdown
On OpenMediaVault mail notification must be enabled !

Both temperature and hysteresis (time period) can be setup individually via environment variables, more about it later.

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 by setting up the fan to be always on, but the default values should be good enough for the roughly average

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 :)

Environment Variables:

NETIF The Network Interface name i.e eth0, it is detected automatically by the LCD Tool start script but if that fails it can be setup manually

MAX_CPU_TEMP CloudShell2 shutdown temperature ( default MAX_CPU_TEMP=85 )

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

FAN_ON_TEMP Temperature on which the case fan should switch on ( default FAN_ON_TEMP=65 )

FAN_OFF_HYSTERESIS 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 )

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

Example:

Export environment variables inside the /usr/local/bin/start-lcd script:

Code: Select all

#!/bin/bash

export NETIF=$(ls /sys/class/net -I lo)
export FAN_ON_TEMP=0
echo 0 > /sys/class/graphics/fbcon/cursor_blink
echo none > /sys/class/leds/blue\:heartbeat/trigger
/usr/local/bin/CloudShell2_lcd
This will setup the fan to be always on, there are several ways to declare environment variables this is just one a sudo systemctl restart cloudshell2-monitoring or a reboot could be needed

have fun :)

p.s.:

I am in no way responsible for any damage taken on your cloudshell2, please always keep in mind what you are doing it's for tinkerers only ;)

RG
Last edited by AreaScout on Tue Mar 12, 2019 8:00 pm, edited 15 times in total.

User avatar
AreaScout
Posts: 799
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
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_13.0.6-1_armhf.deb
    dpkg -i mali-x11-gbm-fbdev_13.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:

    Get the packages

    Code: Select all

    wget http://www.deb-multimedia.org/pool/main/libs/libshairplay-dmo/libshairplay0_0.9.0~git20130907-dmo2_armhf.deb
    wget https://www.areascout.at/kodi/kodi-bin_18.1~git20190215.1532-112d310559-dirty-1~stretch_armhf.deb
    wget https://www.areascout.at/kodi/kodi_18.1~git20190215.1532-112d310559-dirty-1~stretch_all.deb
    wget https://www.areascout.at/kodi/kodi-eventclients-common_18.1~git20190215.1532-112d310559-dirty-1~stretch_all.deb
    wget https://www.areascout.at/kodi/kodi-eventclients-kodi-send_18.1~git20190215.1532-112d310559-dirty-1~stretch_all.deb
    
    dpkg -i libshairplay0_0.9.0~git20130907-dmo2_armhf.deb
    
    Ok time to install the Kodi packages with apt, this should resolve all dependencies

    Code: Select all

    apt install ./kodi-bin_18.1~git20190215.1532-112d310559-dirty-1~stretch_armhf.deb
    apt install ./kodi_18.1~git20190215.1532-112d310559-dirty-1~stretch_all.deb
    apt install ./kodi-eventclients-common_18.1~git20190215.1532-112d310559-dirty-1~stretch_all.deb
    apt-install ./kodi-eventclients-kodi-send_18.1~git20190215.1532-112d310559-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, download and extract it to your kodi addon folder i.e .kodi/addon

    https://www.areascout.at/kodi/visualizations.tar.gz

    After Addon is installed enable i.e shadertoy and press 'p' on your keyboard to choose different effects ;)
    screenshot001_.png
    screenshot001_.png (599.01 KiB) Viewed 1223 times
    Last edited by AreaScout on Thu Mar 14, 2019 6:18 pm, edited 15 times in total.

    User avatar
    odroid
    Site Admin
    Posts: 30015
    Joined: Fri Feb 22, 2013 11:14 pm
    languages_spoken: English
    ODROIDs: ODROID
    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: 799
    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
    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: 799
    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
    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: 30015
    Joined: Fri Feb 22, 2013 11:14 pm
    languages_spoken: English
    ODROIDs: ODROID
    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: 799
    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
    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: 799
    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
    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
    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: 799
    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
    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: 13
    Joined: Tue Feb 26, 2019 8:33 am
    languages_spoken: english
    ODROIDs: xu4Q
    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: 799
    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
    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: 13
    Joined: Tue Feb 26, 2019 8:33 am
    languages_spoken: english
    ODROIDs: xu4Q
    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: 13
    Joined: Tue Feb 26, 2019 8:33 am
    languages_spoken: english
    ODROIDs: xu4Q
    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: 799
    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
    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: 13
    Joined: Tue Feb 26, 2019 8:33 am
    languages_spoken: english
    ODROIDs: xu4Q
    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: 799
    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
    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: 13
    Joined: Tue Feb 26, 2019 8:33 am
    languages_spoken: english
    ODROIDs: xu4Q
    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: 13
    Joined: Tue Feb 26, 2019 8:33 am
    languages_spoken: english
    ODROIDs: xu4Q
    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: 799
    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
    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
    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: 799
    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
    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: 799
    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
    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
    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: 799
    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
    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: 6435
    Joined: Fri Dec 19, 2014 9:12 am
    languages_spoken: english
    Location: Gulf of Mexico, US
    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: 799
    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
    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: 799
    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
    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
    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: 6435
    Joined: Fri Dec 19, 2014 9:12 am
    languages_spoken: english
    Location: Gulf of Mexico, US
    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: 799
    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
    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: 799
    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
    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: 799
    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
    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: 799
      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
      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: 30015
      Joined: Fri Feb 22, 2013 11:14 pm
      languages_spoken: English
      ODROIDs: ODROID
      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: 494
      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
      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: 799
      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
      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: 799
      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
      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

        Post Reply

        Return to “CloudShell”

        Who is online

        Users browsing this forum: No registered users and 2 guests