LCD Display Info and Monitoring Tool + Kodi install

AreaScout
Posts: 1662
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, Go2, C4
Has thanked: 100 times
Been thanked: 291 times
Contact:

Re: LCD Display Info and Monitoring Tool + Kodi install

Post by AreaScout »

    @all

    New version 1.0.21-1 is online: (Backup of settings is done automatically now)

    cloudshell2 LCD display and monitoring tool 1.0.21
    • Fixed a bug where uptime was not refreshed on LCD when display on/off timer was set
    RG

    HucSte
    Has thanked: 0
    Been thanked: 0

    Re: LCD Display Info and Monitoring Tool + Kodi install

    Post by HucSte »

    Hi,

    Into you first post, about the CLI command of cloudshell-monitoring, change it by:

    Code: Select all

    cloudshell2-monitoring -i
    ;)

    ----

    I've a problem to display into lcd.

    systemctl status informs:

    Code: Select all

    $ systemctl status cloudshell2-monitoring
    ● cloudshell2-monitoring.service - "ODROID Cloudshell2 Monitoring"
       Loaded: loaded (/lib/systemd/system/cloudshell2-monitoring.service; enabled; vendor preset: enabled)
       Active: failed (Result: exit-code) since Fri 2020-10-23 07:39:37 UTC; 21min ago
      Process: 645 ExecStart=/usr/bin/start-lcd (code=exited, status=134)
     Main PID: 645 (code=exited, status=134)
    
    Oct 23 07:39:31 omv systemd[1]: Started "ODROID Cloudshell2 Monitoring".
    Oct 23 07:39:37 omv start-lcd[645]: can't open device: No such file or directory
    Oct 23 07:39:37 omv start-lcd[645]: can't open device: No such file or directory
    Oct 23 07:39:37 omv start-lcd[645]: Can't open /dev/fb1 device node
    Oct 23 07:39:37 omv start-lcd[645]: /usr/bin/start-lcd: line 87:  1294 Aborted                 /usr/bin/cloudshell2-monitoring
    Oct 23 07:39:37 omv systemd[1]: cloudshell2-monitoring.service: Main process exited, code=exited, status=134/n/a
    Oct 23 07:39:37 omv systemd[1]: cloudshell2-monitoring.service: Failed with result 'exit-code'.
    
    I'm now on: Armbian 20.08.14 Buster with Linux 5.4.72-odroidxu4

    AreaScout
    Posts: 1662
    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, Go2, C4
    Has thanked: 100 times
    Been thanked: 291 times
    Contact:

    Re: LCD Display Info and Monitoring Tool + Kodi install

    Post by AreaScout »

      @HucSte

      On regular Armbian Images you have to manually enable the LCD inside the /boot/boot.ini file, find that line setenv cs2enable and set it to true so it looks like that setenv cs2enable "true" after this the tool should work ;)

      P.S.: I saw you have already found my custom Armbian Image with Kodi and cloudshell2-monitoring pre-installed, it is also a good choice :)

      RG

      HucSte
      Has thanked: 0
      Been thanked: 0

      Re: LCD Display Info and Monitoring Tool + Kodi install

      Post by HucSte »

      "cs2enable" is not found on file /boot/boot.ini!

      And, in fact:

      Code: Select all

      $ grep "cs2enable" /boot/boot.ini
      returns nothing, too!

      AreaScout
      Posts: 1662
      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, Go2, C4
      Has thanked: 100 times
      Been thanked: 291 times
      Contact:

      Re: LCD Display Info and Monitoring Tool + Kodi install

      Post by AreaScout »

        That is strange, this is the boot.ini which is used on Armbian Images https://raw.githubusercontent.com/armbi ... id-xu4.ini and the cs2enable variable is there !

        Are you booting with both SD and eMMC inserted ?

        RG

        HucSte
        Has thanked: 0
        Been thanked: 0

        Re: LCD Display Info and Monitoring Tool + Kodi install

        Post by HucSte »

        Only with eMMC!

        AreaScout
        Posts: 1662
        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, Go2, C4
        Has thanked: 100 times
        Been thanked: 291 times
        Contact:

        Re: LCD Display Info and Monitoring Tool + Kodi install

        Post by AreaScout »

          Is that now my image you are using or do you use also a different one ?

          RG

          HucSte
          Has thanked: 0
          Been thanked: 0

          Re: LCD Display Info and Monitoring Tool + Kodi install

          Post by HucSte »

          your!

          Code: Select all

          $ ls -al
          total 2344200
          drwxr-xr-x  3 zou zou       4096 24 oct.  12:49 .
          drwxr-xr-x 10 zou zou       4096 21 oct.  11:42 ..
          drwx------  2 zou zou       4096 12 sept. 20:17 android-4.4.4-alpha-6.8-sd2emmc_installer-odroidxu4-20190821.img
          -rw-r--r--  1 zou zou  219524282 12 sept. 20:17 android-4.4.4-alpha-6.8-sd2emmc_installer-odroidxu4-20190821.img.zip
          -rw-r--r--  1 zou zou 2248146944 22 oct.  20:34 Armbian_20.05.2_Odroidxu4_buster_current_5.4.41.img
          -rw-r--r--  1 zou zou        120 22 oct.  20:41 Armbian_20.05.2_Odroidxu4_buster_current_5.4.41.sha256
          -rw-r--r--  1 zou zou    2794818 22 oct.  20:29 cloudshell2-monitoring_1.0.21-1_armhf.deb
          

          AreaScout
          Posts: 1662
          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, Go2, C4
          Has thanked: 100 times
          Been thanked: 291 times
          Contact:

          Re: LCD Display Info and Monitoring Tool + Kodi install

          Post by AreaScout »

            @all

            New version 1.0.22-1 is online: (Backup of settings is done automatically now)

            cloudshell2 LCD display and monitoring tool 1.0.22
            • Less CPU time consumption
            • Add zlib1g debian package dependency needed for debian minimal derivate systems
            • Fix a LCD backlight quirks when LCD_OFF_SPINDOWN is set to OFF
            RG

            AreaScout
            Posts: 1662
            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, Go2, C4
            Has thanked: 100 times
            Been thanked: 291 times
            Contact:

            Re: LCD Display Info and Monitoring Tool + Kodi install

            Post by AreaScout »

              @all

              New version 1.0.23-1 is online: (Backup of settings is done automatically now)

              cloudshell2 LCD display and monitoring tool 1.0.23

              New improvements over 1.0.22-1:
              • Add new command line switch to maintain the controller name to query
              • Add new command line switch to maintain the number of disks to query
              • Fix: uptime text alignment
              Details:

              You can now select the hardware controller and amount of hard disk to query, I got some requests from users which own a different JMircon RAID controller, so you can use my tool to query that also

              Code: Select all

              root@openmediavault:~# cloudshell2-monitoring --help
              Usage: cloudshell2-monitoring [OPTION]...
                      -i, --info              print RAID controller info to console and exit
                      -n, --name STRING       product name of the RAID controller, default JMS56X
                      -d, --disks INT         number of disks to be scanned for, default 2
                      -v, --version           print versions info and exit
                      -h, --help              display this help and exit 
              
              RG and have fun !
              These users thanked the author AreaScout for the post:
              odroid (Mon Dec 21, 2020 9:43 am)

              Gburas
              Posts: 128
              Joined: Sat Sep 19, 2015 7:13 am
              languages_spoken: English, Polish
              ODROIDs: Xu4, N2
              Location: Poland
              Has thanked: 16 times
              Been thanked: 3 times
              Contact:

              Re: LCD Display Info and Monitoring Tool + Kodi install

              Post by Gburas »

              I was wandering,if I buy cheap TFT display with ili 9340, can I simply use Your script to gather info (of course the raid info etc will be unavailable)? Small problem is that most of them on AliExpress are described as a ili 9341, I don't know if the driver will be the same.

              Wysłane z mojego AC2003 przy użyciu Tapatalka


              grumpy1
              Posts: 12
              Joined: Mon Apr 13, 2020 12:16 am
              languages_spoken: english
              ODROIDs: xu4
              Has thanked: 1 time
              Been thanked: 0
              Contact:

              Re: LCD Display Info and Monitoring Tool + Kodi install

              Post by grumpy1 »

              AreaScout wrote:
              Sun May 12, 2019 5:01 pm
              rooted wrote:
              Sun May 12, 2019 1:26 am
              It's really nice, I hope the source will be available so I can make some changes to make it more friendly to my set-up.

              Thanks for sharing.
              Thank you :ugeek: Well most peoples only want to install it, but yes I think on some point I will share it
              maybe i missed it in this long thread
              did you ever make your source public

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

              Re: LCD Display Info and Monitoring Tool + Kodi install

              Post by rooted »

              grumpy1 wrote:
              AreaScout wrote:
              Sun May 12, 2019 5:01 pm
              rooted wrote:
              Sun May 12, 2019 1:26 am
              It's really nice, I hope the source will be available so I can make some changes to make it more friendly to my set-up.

              Thanks for sharing.
              Thank you :ugeek: Well most peoples only want to install it, but yes I think on some point I will share it
              maybe i missed it in this long thread
              did you ever make your source public
              I don't think so

              fabiobrolo
              Posts: 6
              Joined: Thu May 07, 2020 11:12 am
              languages_spoken: english portuguese spanish
              ODROIDs: xu4, cloudshell2
              Has thanked: 0
              Been thanked: 0
              Contact:

              Re: LCD Display Info and Monitoring Tool + Kodi install

              Post by fabiobrolo »

              Should be nice to have a way to translate the strings.

              grumpy1
              Posts: 12
              Joined: Mon Apr 13, 2020 12:16 am
              languages_spoken: english
              ODROIDs: xu4
              Has thanked: 1 time
              Been thanked: 0
              Contact:

              Re: LCD Display Info and Monitoring Tool + Kodi install

              Post by grumpy1 »

              i'm sure translations would be big hit
              i have the newest version installed and it doesn't work
              i still only see the first drive

              AreaScout
              Posts: 1662
              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, Go2, C4
              Has thanked: 100 times
              Been thanked: 291 times
              Contact:

              Re: LCD Display Info and Monitoring Tool + Kodi install

              Post by AreaScout »

                @grumpy1

                If you are in PM mode only one drive is visible, that's normal

                RG

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

                Re: LCD Display Info and Monitoring Tool + Kodi install

                Post by rooted »

                rooted wrote:
                grumpy1 wrote:
                AreaScout wrote:
                Sun May 12, 2019 5:01 pm
                rooted wrote:
                Sun May 12, 2019 1:26 am
                It's really nice, I hope the source will be available so I can make some changes to make it more friendly to my set-up.

                Thanks for sharing.
                Thank you :ugeek: Well most peoples only want to install it, but yes I think on some point I will share it
                maybe i missed it in this long thread
                did you ever make your source public
                I don't think so
                He is great at adding features, I wanted the code to add fahrenheit and he added it after I mentioned what I wanted.

                AreaScout
                Posts: 1662
                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, Go2, C4
                Has thanked: 100 times
                Been thanked: 291 times
                Contact:

                Re: LCD Display Info and Monitoring Tool + Kodi install

                Post by AreaScout »

                  ;)
                    Image

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

                    Re: LCD Display Info and Monitoring Tool + Kodi install

                    Post by rooted »

                    .Image

                    AreaScout
                    Posts: 1662
                    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, Go2, C4
                    Has thanked: 100 times
                    Been thanked: 291 times
                    Contact:

                    Re: LCD Display Info and Monitoring Tool + Kodi install

                    Post by AreaScout »

                      Last edited by AreaScout on Mon Mar 22, 2021 1:05 am, edited 1 time in total.

                      AreaScout
                      Posts: 1662
                      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, Go2, C4
                      Has thanked: 100 times
                      Been thanked: 291 times
                      Contact:

                      Re: LCD Display Info and Monitoring Tool + Kodi install

                      Post by AreaScout »

                        @all

                        I was only joking, if there is a good feature request I will try to implement it

                        RG

                        Chibi-Veritas
                        Posts: 5
                        Joined: Sun Mar 21, 2021 2:14 am
                        languages_spoken: Deutsch, Ukrainisch
                        ODROIDs: XU4Q, CloudShell2
                        Has thanked: 4 times
                        Been thanked: 0
                        Contact:

                        Re: LCD Display Info and Monitoring Tool + Kodi install

                        Post by Chibi-Veritas »

                        Lieber Entwickler!
                        Nach dem Update Ubuntu zu 20.04 auf meinem XU4 mit Cloud Shell habe ich ein Problem. cloudshell2-monitoring (Version 1.0.23-1) speichert keine Daten in die MySQL Datenbank. Im Log gibt's solcher beständiger Fehler:

                        Code: Select all

                        Mar 20 18:47:38 chibi start-lcd[1097]: Column 'ts' cannot be null
                        Mar 20 18:48:38 chibi start-lcd[1097]: message repeated 6 times: [ Column 'ts' cannot be null]
                        

                        AreaScout
                        Posts: 1662
                        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, Go2, C4
                        Has thanked: 100 times
                        Been thanked: 291 times
                        Contact:

                        Re: LCD Display Info and Monitoring Tool + Kodi install

                        Post by AreaScout »

                          Hallo,

                          ist in der Datenbank die Tabelle automatisch angelegt worden, können Sie das überprüfen ? Der Datenbank User benötigt Super-User Rechte wie folgt

                          Datenzugriff:

                          Select
                          Insert
                          Update
                          Delete

                          Zugriff auf Struktur:

                          Create
                          Drop
                          References
                          Alter
                          Index
                          Create Temporary Tables
                          Lock Tables
                          Create View
                          Show View
                          Create Routine
                          Alter Routine
                          Execute
                          Event
                          Trigger

                          m.f.G
                          These users thanked the author AreaScout for the post:
                          Chibi-Veritas (Tue Mar 23, 2021 7:33 am)

                          Chibi-Veritas
                          Posts: 5
                          Joined: Sun Mar 21, 2021 2:14 am
                          languages_spoken: Deutsch, Ukrainisch
                          ODROIDs: XU4Q, CloudShell2
                          Has thanked: 4 times
                          Been thanked: 0
                          Contact:

                          Re: LCD Display Info and Monitoring Tool + Kodi install

                          Post by Chibi-Veritas »

                          Hallo!
                          AreaScout wrote:
                          Mon Mar 22, 2021 12:57 am
                          ist in der Datenbank die Tabelle automatisch angelegt worden, können Sie das überprüfen ?
                          Natürlich:

                          Code: Select all

                          mysql> use Chibi_CS
                          Reading table information for completion of table and column names
                          You can turn off this feature to get a quicker startup with -A
                          
                          Database changed
                          mysql> show tables;
                          +--------------------+
                          | Tables_in_Chibi_CS |
                          +--------------------+
                          | cs2_monitoring     |
                          +--------------------+
                          1 row in set (0.01 sec)
                          
                          Der erste und der letzte Datensätze:

                          Code: Select all

                          +---------+-----------+-----------+----------+----------+-----------+---------------------+
                          | id      | hdd0_temp | hdd1_temp | cpu_temp | gpu_temp | cpu_usage | ts                  |
                          +---------+-----------+-----------+----------+----------+-----------+---------------------+
                          |       1 |        37 |         0 |       36 |       34 |         2 | 2020-09-10 18:17:46 |
                          ...
                          | 6296645 |        31 |         0 |       46 |       38 |        26 | 2021-03-17 15:52:22 |
                          +---------+-----------+-----------+----------+----------+-----------+---------------------+
                          
                          Der Datenbank User benötigt Super-User Rechte wie folgt

                          Datenzugriff:

                          Select
                          Insert
                          Update
                          Delete

                          Zugriff auf Struktur:

                          Create
                          Drop
                          References
                          Alter
                          Index
                          Create Temporary Tables
                          Lock Tables
                          Create View
                          Show View
                          Create Routine
                          Alter Routine
                          Execute
                          Event
                          Trigger

                          m.f.G
                          Ich habe Datenbankbenutzer gemacht, als Sie empfohlen hatten:
                          AreaScout wrote:
                          Mon Feb 18, 2019 6:45 pm
                          3. Create a User for that Database and grand SELECT, INSERT and CREATE/ALTER TABLE rights to the User

                          Code: Select all

                          mysql> SHOW GRANTS FOR 'cloudshell'@'localhost';
                          +---------------------------------------------------------------------------------+
                          | Grants for cloudshell@localhost                                                 |
                          +---------------------------------------------------------------------------------+
                          | GRANT USAGE ON *.* TO `cloudshell`@`localhost`                                  |
                          | GRANT SELECT, INSERT, CREATE, ALTER ON `Chibi_CS`.* TO `cloudshell`@`localhost` |
                          +---------------------------------------------------------------------------------+
                          
                          Mit den folgenden Einstellungen funktionierte alles prima bis zum Update zu 20.04.

                          AreaScout
                          Posts: 1662
                          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, Go2, C4
                          Has thanked: 100 times
                          Been thanked: 291 times
                          Contact:

                          Re: LCD Display Info and Monitoring Tool + Kodi install

                          Post by AreaScout »

                          Hallo,

                          bitte leeren Sie die Tabelle und setzten Sie den Counter der primären Zelle 'id' zurück, bei sehr viel Einträgen in die Tabelle wird die Datenbankabfrage langsamer, wenn eine neue Abfrage gestartet wird und die alte noch nicht beendet ist kann dies zu Problemen führen, dies ist meine Vermutung, Sie können zum Test auch eine neue Tabelle mit anderen Namen erstellen, dieser muss dann im config file hinterlegt werden.

                          m.f.G

                          Chibi-Veritas
                          Posts: 5
                          Joined: Sun Mar 21, 2021 2:14 am
                          languages_spoken: Deutsch, Ukrainisch
                          ODROIDs: XU4Q, CloudShell2
                          Has thanked: 4 times
                          Been thanked: 0
                          Contact:

                          Re: LCD Display Info and Monitoring Tool + Kodi install

                          Post by Chibi-Veritas »

                          Hallo,
                          AreaScout wrote:
                          Mon Mar 22, 2021 6:34 pm
                          Sie können zum Test auch eine neue Tabelle mit anderen Namen erstellen, dieser muss dann im config file hinterlegt werden.
                          Ich habe gleich genau gemacht, einen anderen Tabellenname in der konfig Datei gezeigt:

                          Code: Select all

                          CS_DATABASE_TABLE=cs2_monitoring_2004
                          
                          Aber das Verhalten der Anwendung bleibt genau dasselbe, keine Änderung :cry:

                          Code: Select all

                          systemctl status cloudshell2-monitoring
                          ● cloudshell2-monitoring.service - "ODROID Cloudshell2 Monitoring"
                               Loaded: loaded (/lib/systemd/system/cloudshell2-monitoring.service; enabled; vendor preset: enabled)
                               Active: active (running) since Tue 2021-03-23 00:08:28 EET; 42s ago
                             Main PID: 25568 (start-lcd)
                                Tasks: 5 (limit: 4436)
                               Memory: 8.1M
                               CGroup: /system.slice/cloudshell2-monitoring.service
                                       ├─25568 /bin/bash /usr/bin/start-lcd
                                       └─25572 /usr/bin/cloudshell2-monitoring
                          
                          бер 23 00:08:28 chibi start-lcd[25572]: i2c-4        i2c               exynos5-i2c                             I2C adapter
                          бер 23 00:08:28 chibi start-lcd[25572]: i2c-2        i2c               s3c2410-i2c                             I2C adapter
                          бер 23 00:08:28 chibi start-lcd[25572]: i2c-0        i2c               s3c2410-i2c                             I2C adapter
                          бер 23 00:08:28 chibi start-lcd[25572]: Info: found suitable i2c device for fan control on bus number 0
                          бер 23 00:08:28 chibi start-lcd[25572]: Info: no GSM shield configured, port baud or phone number empty in config
                          бер 23 00:08:28 chibi start-lcd[25572]: Table 'Chibi_CS.cs2_monitoring_2004' doesn't exist, creating it ...
                          бер 23 00:08:38 chibi start-lcd[25572]: Column 'ts' cannot be null
                          бер 23 00:08:48 chibi start-lcd[25572]: Column 'ts' cannot be null
                          бер 23 00:08:58 chibi start-lcd[25572]: Column 'ts' cannot be null
                          бер 23 00:09:08 chibi start-lcd[25572]: Column 'ts' cannot be null
                          
                          Nur eine neue leere Tabelle wurde erstellt:

                          Code: Select all

                          mysql> show tables;
                          +---------------------+
                          | Tables_in_Chibi_CS  |
                          +---------------------+
                          | cs2_monitoring      |
                          | cs2_monitoring_2004 |
                          +---------------------+
                          2 rows in set (0.02 sec)
                          
                          mysql> select * from cs2_monitoring_2004;
                          Empty set (0.01 sec)
                          
                          Was für ein seltsames Verhalten?

                          m.f.G

                          AreaScout
                          Posts: 1662
                          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, Go2, C4
                          Has thanked: 100 times
                          Been thanked: 291 times
                          Contact:

                          Re: LCD Display Info and Monitoring Tool + Kodi install

                          Post by AreaScout »

                            Hallo,

                            ich verwende für das Tool den mariadb c connector, dieser war bislang kompatibel mit mysql-server und mariadb-server, es könnte natürlich sein das sich dies geändert hat, ich habe es auf einen Ubuntu 20.04 Server getestet und es funktioniert, dieser hat aber mariadb-server installiert, haben Sie die Möglichkeit mit einen mariadb-server zu testen ?

                            m.f.G

                            Chibi-Veritas
                            Posts: 5
                            Joined: Sun Mar 21, 2021 2:14 am
                            languages_spoken: Deutsch, Ukrainisch
                            ODROIDs: XU4Q, CloudShell2
                            Has thanked: 4 times
                            Been thanked: 0
                            Contact:

                            Re: LCD Display Info and Monitoring Tool + Kodi install

                            Post by Chibi-Veritas »

                            Hallo,

                            Das Ding ist, dass die Anwendung die SQL-Datensätze mit den leeren 'ts' Spalten sendet. Das ist die Ursache, deswegen denke ich, dass der Typ des Datenbankservers spielt keine Role. Ein Server kann einfach keinen falschen Datensatz speichern.

                            Darum bin ich der Meinung, dass es keinen zweck hat, MySQL nach MariaDB zu wechseln, entschuldigung. Man muss die Ursache finden, warum sendet man die leere 'ts' Felder, warum passiert es.

                            m.f.G

                            AreaScout
                            Posts: 1662
                            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, Go2, C4
                            Has thanked: 100 times
                            Been thanked: 291 times
                            Contact:

                            Re: LCD Display Info and Monitoring Tool + Kodi install

                            Post by AreaScout »

                            Chibi-Veritas wrote:
                            Wed Mar 24, 2021 2:29 am
                            Darum bin ich der Meinung, dass es keinen zweck hat
                            Sagen Sie das nicht, ich habe sicher schon über 10.000 Probleme gelöst in meiner Berufslaufbahn, es gibt Fehler die sind nicht logisch die können Sie nur mit eingrenzen festnageln und das wäre der Sinn dieser Übung gewesen, ok dann weiter im Text
                            Chibi-Veritas wrote:
                            Wed Mar 24, 2021 2:29 am
                            Das Ding ist, dass die Anwendung die SQL-Datensätze mit den leeren 'ts' Spalten sendet. Das ist die Ursache, deswegen denke ich, dass der Typ des Datenbankservers spielt keine Role.
                            Nein das stimmt nicht, die Spalte ist ein Auto Increment Typ bei einen Update "`ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE" -> CURRENT_TIMESTAMP ON UPDATE -> Es wird also nicht von meinen Tool in die Datenbank geschrieben sondern bei jeden Update von meinen Tool von der Datenbank als Zeitstempel hinzugefügt, kontrollieren Sie auch bitte Ihre Zeit Einstellungen am Server oder wo auch immer der SQL Server läuft.

                            m.f.G
                            These users thanked the author AreaScout for the post:
                            Chibi-Veritas (Wed Mar 24, 2021 6:16 am)

                            Chibi-Veritas
                            Posts: 5
                            Joined: Sun Mar 21, 2021 2:14 am
                            languages_spoken: Deutsch, Ukrainisch
                            ODROIDs: XU4Q, CloudShell2
                            Has thanked: 4 times
                            Been thanked: 0
                            Contact:

                            Re: LCD Display Info and Monitoring Tool + Kodi install

                            Post by Chibi-Veritas »

                            Ja, ich habe einen Fehler mit der Ursache wirklich gemacht, entschuldigen Sie bitte. Ich auskenne mich schon jetzt in diesem Problem. Früher hatte ich MySQL 5.7.31 Version. Es hatte GLOBAL VARIABLE explicit_defaults_for_timestamp=OFF als Default. Nach dem Update Ubuntu zu 20.04 bekomme ich eine neue MySQL Version 8.0.23 mit der Default GLOBAL VARIABLE explicit_defaults_for_timestamp=ON. Und das ist die wahre Ursache!

                            Jetzt habe ich

                            Code: Select all

                            explicit-defaults-for-timestamp=OFF
                            zu meiner mysqld.cnf Datei hinzugefügt. Ich weß leider nicht, ob das für MySQL im Allgemeinen gut ist, aber Ihre Anwendung funktioniert jetzt richtig :)

                            Vielen Dank!

                            m.f.G

                            AreaScout
                            Posts: 1662
                            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, Go2, C4
                            Has thanked: 100 times
                            Been thanked: 291 times
                            Contact:

                            Re: LCD Display Info and Monitoring Tool + Kodi install

                            Post by AreaScout »

                              Hallo,

                              gut das es jetzt funktioniert, Sie haben hier einen sehr wichtigen Punkt aufgezeigt der für jeden Systemadministrator von Bedeutung sein kann, das war für mich auch neu, ich finde es handelt sich hier um eine sehr markante Änderung im MySQL Server https://mysqlserverteam.com/new-defaults-in-mysql-8-0/

                              Ich hoffe Sie haben viel Freude mit meinen Tool, ich stehe Ihnen gerne für weitere Auskünfte bereit

                              m.f.G
                              These users thanked the author AreaScout for the post:
                              Chibi-Veritas (Wed Mar 24, 2021 6:31 pm)

                              User avatar
                              odroid
                              Site Admin
                              Posts: 37403
                              Joined: Fri Feb 22, 2013 11:14 pm
                              languages_spoken: English, Korean
                              ODROIDs: ODROID
                              Has thanked: 1797 times
                              Been thanked: 1143 times
                              Contact:

                              Re: LCD Display Info and Monitoring Tool + Kodi install

                              Post by odroid »

                              Sorry for off-topic.
                              Vor ungefähr 35 Jahren, als ich ein Gymnasiast war, habe ich zwei Jahre lang Deutsch gelernt, aber jetzt kann ich mich an nichts mehr erinnern.
                              Ich kann es lesen, habe aber keine Ahnung, was es ohne Google Übersetzer bedeutet. Ich erinnere mich nur, dass ich gesagt habe, ich liebe dich. ;)
                              These users thanked the author odroid for the post:
                              Chibi-Veritas (Wed Mar 24, 2021 6:31 pm)

                              AreaScout
                              Posts: 1662
                              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, Go2, C4
                              Has thanked: 100 times
                              Been thanked: 291 times
                              Contact:

                              Re: LCD Display Info and Monitoring Tool + Kodi install

                              Post by AreaScout »

                              odroid wrote:
                              Wed Mar 24, 2021 4:18 pm
                              Sorry for off-topic.
                              Vor ungefähr 35 Jahren, als ich ein Gymnasiast war, habe ich zwei Jahre lang Deutsch gelernt, aber jetzt kann ich mich an nichts mehr erinnern.
                              Ich kann es lesen, habe aber keine Ahnung, was es ohne Google Übersetzer bedeutet. Ich erinnere mich nur, dass ich gesagt habe, ich liebe dich. ;)
                              Dann ist es eine schöne Erinnerung, übrigends, "ich liebe dich" sind Weltweit mit Sicherheit die am meisten übersetzten Wörter und das nicht ohne Grund :)

                              m.f.G
                              These users thanked the author AreaScout for the post:
                              odroid (Fri Mar 26, 2021 3:55 pm)

                              Ubergeeksov
                              Posts: 3
                              Joined: Thu May 30, 2019 6:07 am
                              languages_spoken: english
                              ODROIDs: XU4
                              Has thanked: 1 time
                              Been thanked: 0
                              Contact:

                              Re: LCD Display Info and Monitoring Tool + Kodi install

                              Post by Ubergeeksov »

                              Hi, and thanks for your brilliant work.

                              I have to confess that I am a bit of a newbie (good at following instructions, but don't understand the inner workings - not great when things don't work as expected).

                              I recently acquired the CloudShell 2 and have been trying to set it up, unsuccessfully, under Ubuntu 20.04 Kernel 5.4.

                              To ensure that all my wirings were correct, I started from scratch with OMV5 then followed your instructions - LCD and fan working.

                              Gone back to Ubuntu and problem still there.

                              I think the issue with the editing of /media/boot/config.ini

                              In particular, I've noticed a few things, but I don't know if any of them are material:

                              1. In your instructions you use speech marks in overlay_profile="hktft_cs_ogst" but in the instructions on Odroid wiki (https://wiki.odroid.com/accessory/add-o ... loudshell2) speech marks are not used;
                              2. In [overlay_hktft_cs_ogst] your instructions include i2c1, but that is not included in the Odroid instructions;
                              3. In both your and Odroid instructions within [overlay_hktft_cs_ogst] hyphens are used "hktft-cs-ogst", whereas elsewhere underscores are used "hktft_cs_ogst".

                              I've tried using various combinations, all without luck.

                              Any tips, pointers or solutions, gratefully received.

                              Rich

                              a7thson
                              Posts: 5
                              Joined: Fri Mar 26, 2021 11:53 pm
                              languages_spoken: english
                              ODROIDs: XU4, OGA-BE
                              Has thanked: 0
                              Been thanked: 1 time
                              Contact:

                              Re: LCD Display Info and Monitoring Tool + Kodi install

                              Post by a7thson »

                              Ubergeeksov wrote:
                              Fri Mar 26, 2021 3:41 pm

                              I've tried using various combinations, all without luck.

                              Any tips, pointers or solutions, gratefully received.

                              Rich
                              Hi, n00b here but I got an XU4 about two months ago and got tired of a black screen on my shiny new OGST. Documentation only met with frustration. Here's what worked for me after many pages of obscurity were read and digested, after several things that didn't work. I'm not using this install but I am also on this 5.4.x kernel with a Ubuntu 20.04 image and did the following:

                              in /media/boot/config.txt

                              ;Device Tree Overlay
                              overlay_profile="allevery"

                              ((leave everything else alone and go to the bottom of the file, and add))

                              [overlay_allevery]
                              overlays="spi0 i2c0 i2c1 uart0 hktft-cs-ogst"

                              And then everything was rolling. You'll get a /dev/fb1 and a spi0 Honestly, why the hell this is not configured out of the box with all these features available is beyond me. I couldn't get the spi0 device, I decompiled dtb's, it's all there, why isn't it activated? You guys already did all the hard work! Hopefully it helps somebody else - I'm glad to finally have the screen working without having to use an ancient kernel.

                              AreaScout
                              Posts: 1662
                              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, Go2, C4
                              Has thanked: 100 times
                              Been thanked: 291 times
                              Contact:

                              Re: LCD Display Info and Monitoring Tool + Kodi install

                              Post by AreaScout »

                                @Ubergeeksov

                                That string should be used for a custom profile "i2c0 i2c1 hktft-cs-ogst"

                                RG

                                Ubergeeksov
                                Posts: 3
                                Joined: Thu May 30, 2019 6:07 am
                                languages_spoken: english
                                ODROIDs: XU4
                                Has thanked: 1 time
                                Been thanked: 0
                                Contact:

                                Re: LCD Display Info and Monitoring Tool + Kodi install

                                Post by Ubergeeksov »

                                Thanks @a7thson and @AreaScout

                                I've followed both your suggestions but still with no joy - I can get neither the fan nor the LCD display to work (in contrast to under OMV5 or Ubuntu 18.04).

                                Any other suggestions?

                                And again, thanks for your assistance.

                                a7thson
                                Posts: 5
                                Joined: Fri Mar 26, 2021 11:53 pm
                                languages_spoken: english
                                ODROIDs: XU4, OGA-BE
                                Has thanked: 0
                                Been thanked: 1 time
                                Contact:

                                Re: LCD Display Info and Monitoring Tool + Kodi install

                                Post by a7thson »

                                Ubergeeksov wrote:
                                Sun Mar 28, 2021 5:30 pm
                                Thanks @a7thson and @AreaScout

                                I've followed both your suggestions but still with no joy - I can get neither the fan nor the LCD display to work (in contrast to under OMV5 or Ubuntu 18.04).

                                Any other suggestions?

                                And again, thanks for your assistance.
                                Oh, annoying. I messed around for several hours with no joy but in the 5.4.x kernel, the overlay method described worked. Be sure you're only defining one overlay in the "overlay_profile=" part and don't have multiple definitions by accident (I did, in process of hacking up the file trying various things, and didn't realize it).

                                But then... I remembered all the other hell here I went through, and unfortunately I might miss a few details, so bear with me. It was a few weeks ago so I'll recall as best I can the whole story.

                                One of the first things I needed to do was ensure /dev/spi0 was being created. I remember installing wiringpi as it has a utility that will show you the GPIO that are currently defined. It's available in package odroid-wiringpi (the Raspberry Pi version likely won't work!) which I got from hardkernel's repo (add-apt-repository ppa:hardkernel/ppa, then apt update, then apt-get install odroid-wiringpi) -- then when that's installed (do this as root) 'gpio readall' will show you what is and isn't defined. I'm rather... persistent... so I ended up downloading the device tree utilities and even tried building my own overlay without success, so I think that's a dead end. I understand your frustration :-)

                                You need spidev loaded, so if the overlay loads successfully "modprobe spidev", should give you /dev/spi0. That's the purpose of the "spi0" in the overlay definition. I found an spidev test utility somewhere, just a single c file, but it really wasn't needed - either the device is there or it's not, the module load will not tell you either way so look for /dev/spi0.

                                Then, with the spi interface up, we actually have to get the screen running, right?! Now fbtft and fb_hktft32 can be probed in. They live in staging (/lib/modules/5.4.98-219/kernel/drivers/staging/fbtft/). Basically, the device tree overlay only tells the kernel the device is there and how to get to it, and the modules actually use the resources the kernel defined as being available. it's a bit more complicated than that but probably not for the faint-of-heart.

                                Once I had a) the overlay set, b) the necessary kernel drivers available for the right kernel, /dev/fb1 appeared like magic, finally.... I'm sure I missed something in that wall of text but maybe it gives some pointers depending on what you're comfortable with in embedded-linux land. I'm sure I missed something but maybe someone in odroid land can fill it in. What seemed a rather simple task ended up being quite a ride.

                                Post Reply

                                Return to “CloudShell”

                                Who is online

                                Users browsing this forum: No registered users and 3 guests