Kodi 18.7 final packages + Mali GBM driver testing on Ubuntu 18.04 minimal image

Nuts_
Posts: 22
Joined: Thu May 20, 2021 4:09 pm
languages_spoken: english, russian
ODROIDs: XU4, N2
Has thanked: 15 times
Been thanked: 0
Contact:

Re: Kodi 18.7 final packages + Mali GBM driver testing on Ubuntu 18.04 minimal image

Post by Nuts_ »

AreaScout wrote:
Sun May 23, 2021 7:28 pm
Crontab must work, I was also using it with this image, did you run it as user ?
Yep
crontab -e -u odroid

AreaScout
Posts: 1677
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: 293 times
Contact:

Re: Kodi 18.7 final packages + Mali GBM driver testing on Ubuntu 18.04 minimal image

Post by AreaScout »

    Any errors in syslog why it couldn't start, i.e device not available at the time or something ?

    You can try to start kodi with systemd service like this:

    Code: Select all

    sudo tee -a /lib/systemd/system/kodi.service <<_EOF_
    [Unit]
    Description = Kodi Media Center
    After = remote-fs.target network-online.target
    Wants = network-online.target
    
    [Service]
    User = odroid
    Group = odroid
    Type = simple
    ExecStart = /usr/bin/kodi
    Restart = on-abort
    RestartSec = 5
    
    [Install]
    WantedBy = multi-user.target
    _EOF_
    


    After that enable the service with:

    Code: Select all

    sudo systemctl enable kodi.service
    
    And have a reboot to test it

    RG

    Nuts_
    Posts: 22
    Joined: Thu May 20, 2021 4:09 pm
    languages_spoken: english, russian
    ODROIDs: XU4, N2
    Has thanked: 15 times
    Been thanked: 0
    Contact:

    Re: Kodi 18.7 final packages + Mali GBM driver testing on Ubuntu 18.04 minimal image

    Post by Nuts_ »

    AreaScout wrote:
    Tue May 25, 2021 4:47 pm
    You can try to start kodi with systemd service like this:
    1) Cannot enable as it, have no idea what wrong

    Code: Select all

    root@odroid:~# systemctl enable kodi.service
    The unit files have no installation config (WantedBy, RequiredBy, Also, Alias
    settings in the [Install] section, and DefaultInstance for template units).
    This means they are not meant to be enabled using systemctl.
    ....
    
    but, as i understand, it already enabled: after restart i having NEW kodi.log with error
    FATAL: CApplication::Create: Unable to init windowing system

    running after login working well:
    systemctl start kodi.service

    AreaScout
    Posts: 1677
    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: 293 times
    Contact:

    Re: Kodi 18.7 final packages + Mali GBM driver testing on Ubuntu 18.04 minimal image

    Post by AreaScout »

      But there is a WantedBy settings in the [Install] section ?

      Regarding the kodi.log, is the crontab currently/still enabled ?

      RG

      Nuts_
      Posts: 22
      Joined: Thu May 20, 2021 4:09 pm
      languages_spoken: english, russian
      ODROIDs: XU4, N2
      Has thanked: 15 times
      Been thanked: 0
      Contact:

      Re: Kodi 18.7 final packages + Mali GBM driver testing on Ubuntu 18.04 minimal image

      Post by Nuts_ »

      AreaScout wrote:
      Tue May 25, 2021 7:19 pm
      Regarding the kodi.log, is the crontab currently/still enabled ?
      Seems like i just having some OLD kodi.service in /etc/systemd
      i removed it, enable is working now
      crontab is empty.

      Code: Select all

      root@odroid:~# crontab -l
      no crontab for root
      root@odroid:~# crontab -l -u odroid
      no crontab for odroid
      root@odroid:~#
      
      but i steel having problems, after reboot i have:

      Code: Select all

      root@odroid:~# systemctl status kodi.service
      ● kodi.service - Kodi Media Center
         Loaded: loaded (/lib/systemd/system/kodi.service; enabled; vendor preset: enabled)
         Active: failed (Result: exit-code) since Tue 2021-05-25 10:40:27 UTC; 15s ago
        Process: 523 ExecStart=/usr/bin/kodi (code=exited, status=255)
       Main PID: 523 (code=exited, status=255)
      
      May 25 10:40:21 odroid systemd[1]: Started Kodi Media Center.
      May 25 10:40:24 odroid pulseaudio[564]: [pulseaudio] server-lookup.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Unable to
      May 25 10:40:24 odroid pulseaudio[564]: [pulseaudio] main.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunc
      May 25 10:40:24 odroid kodi[523]: ERROR: Unable to create GUI. Exiting
      May 25 10:40:27 odroid systemd[1]: kodi.service: Main process exited, code=exited, status=255/n/a
      May 25 10:40:27 odroid systemd[1]: kodi.service: Failed with result 'exit-code'.
      
      and still problem in kodi.log

      Code: Select all

       2021-05-25 10:40:24.402 T:2967740816   FATAL: CApplication::Create: Unable to init windowing system
      same result i have if i login as root and run systemctl start kodi
      But if i login as root i can run systemctl start kodi with root password auth.
      Last edited by Nuts_ on Tue May 25, 2021 7:51 pm, edited 1 time in total.

      AreaScout
      Posts: 1677
      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: 293 times
      Contact:

      Re: Kodi 18.7 final packages + Mali GBM driver testing on Ubuntu 18.04 minimal image

      Post by AreaScout »

        After reboot, is pulseaudio running in background ?

        RG

        Nuts_
        Posts: 22
        Joined: Thu May 20, 2021 4:09 pm
        languages_spoken: english, russian
        ODROIDs: XU4, N2
        Has thanked: 15 times
        Been thanked: 0
        Contact:

        Re: Kodi 18.7 final packages + Mali GBM driver testing on Ubuntu 18.04 minimal image

        Post by Nuts_ »

        AreaScout wrote:
        Tue May 25, 2021 7:48 pm
        After reboot, is pulseaudio running in background ?
        No ps -Al |grep pulse is empty: no such process

        AreaScout
        Posts: 1677
        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: 293 times
        Contact:

        Re: Kodi 18.7 final packages + Mali GBM driver testing on Ubuntu 18.04 minimal image

        Post by AreaScout »

          Also please add debug switch inside the service file and post the full kodi.log ExecStart = /usr/bin/kodi --debug

          RG

          Nuts_
          Posts: 22
          Joined: Thu May 20, 2021 4:09 pm
          languages_spoken: english, russian
          ODROIDs: XU4, N2
          Has thanked: 15 times
          Been thanked: 0
          Contact:

          Re: Kodi 18.7 final packages + Mali GBM driver testing on Ubuntu 18.04 minimal image

          Post by Nuts_ »

          AreaScout wrote:
          Tue May 25, 2021 7:55 pm
          ExecStart = /usr/bin/kodi --debug

          Code: Select all

          2021-05-25 11:00:41.490 T:2967576976  NOTICE: -----------------------------------------------------------------------
          2021-05-25 11:00:41.490 T:2967576976  NOTICE: Starting Kodi (18.7 Git:20200520-f14f7a84e3-dirty). Platform: Linux ARM 32-bit
          2021-05-25 11:00:41.490 T:2967576976  NOTICE: Using Release Kodi x32 build
          2021-05-25 11:00:41.490 T:2967576976  NOTICE: Kodi compiled 2020-05-24 by GCC 7.5.0 for Linux ARM 32-bit version 4.15.18 (266002)
          2021-05-25 11:00:41.490 T:2967576976  NOTICE: Running on Ubuntu 18.04.3 LTS, kernel: Linux ARM 32-bit version 4.14.141-169
          2021-05-25 11:00:41.491 T:2967576976  NOTICE: FFmpeg version/source: 4.0.4-Kodi
          2021-05-25 11:00:41.491 T:2967576976  NOTICE: Host CPU: ARMv7 Processor rev 3 (v7l), 8 cores available
          2021-05-25 11:00:41.491 T:2967576976  NOTICE: ARM Features: Neon enabled
          2021-05-25 11:00:41.491 T:2967576976  NOTICE: special://xbmc/ is mapped to: /usr/share/kodi
          2021-05-25 11:00:41.491 T:2967576976  NOTICE: special://xbmcbin/ is mapped to: /usr/lib/arm-linux-gnueabihf/kodi
          2021-05-25 11:00:41.491 T:2967576976  NOTICE: special://xbmcbinaddons/ is mapped to: /usr/lib/arm-linux-gnueabihf/kodi/addons
          2021-05-25 11:00:41.491 T:2967576976  NOTICE: special://masterprofile/ is mapped to: /home/odroid/.kodi/userdata
          2021-05-25 11:00:41.491 T:2967576976  NOTICE: special://envhome/ is mapped to: /home/odroid
          2021-05-25 11:00:41.491 T:2967576976  NOTICE: special://home/ is mapped to: /home/odroid/.kodi
          2021-05-25 11:00:41.491 T:2967576976  NOTICE: special://temp/ is mapped to: /home/odroid/.kodi/temp
          2021-05-25 11:00:41.491 T:2967576976  NOTICE: special://logpath/ is mapped to: /home/odroid/.kodi/temp
          2021-05-25 11:00:41.491 T:2967576976  NOTICE: The executable running is: /usr/lib/arm-linux-gnueabihf/kodi/kodi.bin
          2021-05-25 11:00:41.491 T:2967576976  NOTICE: Local hostname: odroid
          2021-05-25 11:00:41.491 T:2967576976  NOTICE: Log File is located: /home/odroid/.kodi/temp/kodi.log
          2021-05-25 11:00:41.492 T:2967576976  NOTICE: -----------------------------------------------------------------------
          2021-05-25 11:00:41.520 T:2967576976    INFO: loading settings
          2021-05-25 11:00:41.524 T:2967576976  NOTICE: special://profile/ is mapped to: special://masterprofile/
          2021-05-25 11:00:41.540 T:2967576976   DEBUG: CSkinSettings: no <skinsettings> tag found
          2021-05-25 11:00:41.540 T:2967576976  NOTICE: No settings file to load (special://xbmc/system/advancedsettings.xml)
          2021-05-25 11:00:41.540 T:2967576976  NOTICE: No settings file to load (special://masterprofile/advancedsettings.xml)
          2021-05-25 11:00:41.540 T:2967576976  NOTICE: Default Video Player: VideoPlayer
          2021-05-25 11:00:41.540 T:2967576976  NOTICE: Default Audio Player: paplayer
          2021-05-25 11:00:41.540 T:2967576976  NOTICE: Disabled debug logging due to GUI setting. Level 1.
          2021-05-25 11:00:41.540 T:2967576976  NOTICE: Log level changed to "LOG_LEVEL_DEBUG"
          2021-05-25 11:00:41.545 T:2967576976    INFO: creating subdirectories
          2021-05-25 11:00:41.545 T:2967576976    INFO: userdata folder: special://masterprofile/
          2021-05-25 11:00:41.545 T:2967576976    INFO: recording folder:
          2021-05-25 11:00:41.545 T:2967576976    INFO: screenshots folder:
          2021-05-25 11:00:41.557 T:2967576976   DEBUG: open_restricted - grab requested, but failed for /dev/input/event0 (Device or resource busy)
          2021-05-25 11:00:41.559 T:2967576976   DEBUG: open_restricted - grab requested, but failed for /dev/input/event1 (Device or resource busy)
          2021-05-25 11:00:41.561 T:2967576976   DEBUG: open_restricted - grab requested, but failed for /dev/input/event2 (Device or resource busy)
          2021-05-25 11:00:41.620 T:2967576976   DEBUG: open_restricted - grab requested, but failed for /dev/input/event3 (Device or resource busy)
          2021-05-25 11:00:41.962 T:2967576976  NOTICE: PulseAudio: Server found running - will try to use Pulse
          2021-05-25 11:00:41.966 T:2890920800   DEBUG: Thread libinput start, auto delete: false
          2021-05-25 11:00:41.988 T:2967576976  NOTICE: Running database version Addons27
          2021-05-25 11:00:42.160 T:2967576976    INFO: ADDON: cpluff: 'Could not open plug-in directory /usr/lib/arm-linux-gnueabihf/kodi/addons: No such file or directory'
          2021-05-25 11:00:42.161 T:2967576976   DEBUG: ADDON: cpluff: 'Not all directories were successfully scanned.'
          2021-05-25 11:00:42.161 T:2967576976  NOTICE: ADDON: audioencoder.kodi.builtin.aac v1.0.0 installed
          2021-05-25 11:00:42.161 T:2967576976  NOTICE: ADDON: audioencoder.kodi.builtin.wma v1.0.0 installed
          2021-05-25 11:00:42.161 T:2967576976  NOTICE: ADDON: game.controller.default v1.0.8 installed
          2021-05-25 11:00:42.161 T:2967576976  NOTICE: ADDON: game.controller.snes v1.0.8 installed
          2021-05-25 11:00:42.161 T:2967576976  NOTICE: ADDON: inputstream.adaptive v2.4.5 installed
          2021-05-25 11:00:42.161 T:2967576976  NOTICE: ADDON: kodi.binary.global.audioengine v1.0.1 installed
          2021-05-25 11:00:42.161 T:2967576976  NOTICE: ADDON: kodi.binary.global.filesystem v1.0.2 installed
          2021-05-25 11:00:42.161 T:2967576976  NOTICE: ADDON: kodi.binary.global.general v1.0.3 installed
          2021-05-25 11:00:42.161 T:2967576976  NOTICE: ADDON: kodi.binary.global.gui v5.12.0 installed
          2021-05-25 11:00:42.161 T:2967576976  NOTICE: ADDON: kodi.binary.global.main v1.0.14 installed
          2021-05-25 11:00:42.161 T:2967576976  NOTICE: ADDON: kodi.binary.global.network v1.0.0 installed
          2021-05-25 11:00:42.161 T:2967576976  NOTICE: ADDON: kodi.binary.instance.audiodecoder v2.0.0 installed
          2021-05-25 11:00:42.161 T:2967576976  NOTICE: ADDON: kodi.binary.instance.audioencoder v2.0.0 installed
          2021-05-25 11:00:42.161 T:2967576976  NOTICE: ADDON: kodi.binary.instance.game v1.1.0 installed
          2021-05-25 11:00:42.161 T:2967576976  NOTICE: ADDON: kodi.binary.instance.imagedecoder v2.0.0 installed
          2021-05-25 11:00:42.161 T:2967576976  NOTICE: ADDON: kodi.binary.instance.inputstream v2.0.8 installed
          2021-05-25 11:00:42.161 T:2967576976  NOTICE: ADDON: kodi.binary.instance.peripheral v1.3.7 installed
          2021-05-25 11:00:42.161 T:2967576976  NOTICE: ADDON: kodi.binary.instance.pvr v5.10.3 installed
          2021-05-25 11:00:42.161 T:2967576976  NOTICE: ADDON: kodi.binary.instance.screensaver v2.0.0 installed
          2021-05-25 11:00:42.161 T:2967576976  NOTICE: ADDON: kodi.binary.instance.vfs v2.0.0 installed
          2021-05-25 11:00:42.161 T:2967576976  NOTICE: ADDON: kodi.binary.instance.videocodec v1.0.1 installed
          2021-05-25 11:00:42.161 T:2967576976  NOTICE: ADDON: kodi.binary.instance.visualization v2.0.1 installed
          2021-05-25 11:00:42.161 T:2967576976  NOTICE: ADDON: kodi.resource v1.0.0 installed
          2021-05-25 11:00:42.161 T:2967576976  NOTICE: ADDON: metadata.album.universal v3.1.4 installed
          2021-05-25 11:00:42.161 T:2967576976  NOTICE: ADDON: metadata.artists.universal v4.3.3 installed
          2021-05-25 11:00:42.161 T:2967576976  NOTICE: ADDON: metadata.common.allmusic.com v3.2.2 installed
          2021-05-25 11:00:42.161 T:2967576976  NOTICE: ADDON: metadata.common.fanart.tv v3.6.3 installed
          2021-05-25 11:00:42.161 T:2967576976  NOTICE: ADDON: metadata.common.imdb.com v3.1.6 installed
          2021-05-25 11:00:42.161 T:2967576976  NOTICE: ADDON: metadata.common.musicbrainz.org v2.2.4 installed
          2021-05-25 11:00:42.161 T:2967576976  NOTICE: ADDON: metadata.common.theaudiodb.com v2.0.2 installed
          2021-05-25 11:00:42.161 T:2967576976  NOTICE: ADDON: metadata.common.themoviedb.org v3.2.14 installed
          2021-05-25 11:00:42.161 T:2967576976  NOTICE: ADDON: metadata.local v1.0.0 installed
          2021-05-25 11:00:42.161 T:2967576976  NOTICE: ADDON: metadata.themoviedb.org v5.2.6 installed
          2021-05-25 11:00:42.161 T:2967576976  NOTICE: ADDON: metadata.tvshows.themoviedb.org v3.1.0 installed
          2021-05-25 11:00:42.161 T:2967576976  NOTICE: ADDON: peripheral.joystick v1.4.9 installed
          2021-05-25 11:00:42.161 T:2967576976  NOTICE: ADDON: pvr.hts v4.4.21 installed
          2021-05-25 11:00:42.161 T:2967576976  NOTICE: ADDON: pvr.vuplus v3.28.9 installed
          2021-05-25 11:00:42.161 T:2967576976  NOTICE: ADDON: repository.xbmc.org v3.1.6 installed
          2021-05-25 11:00:42.162 T:2967576976  NOTICE: ADDON: resource.images.weathericons.default v1.1.8 installed
          2021-05-25 11:00:42.162 T:2967576976  NOTICE: ADDON: resource.language.en_gb v2.0.1 installed
          2021-05-25 11:00:42.162 T:2967576976  NOTICE: ADDON: resource.uisounds.kodi v1.0.0 installed
          2021-05-25 11:00:42.162 T:2967576976  NOTICE: ADDON: screensaver.xbmc.builtin.black v1.0.33 installed
          2021-05-25 11:00:42.162 T:2967576976  NOTICE: ADDON: screensaver.xbmc.builtin.dim v1.0.59 installed
          2021-05-25 11:00:42.162 T:2967576976  NOTICE: ADDON: script.module.inputstreamhelper v0.4.4 installed
          2021-05-25 11:00:42.162 T:2967576976  NOTICE: ADDON: script.module.kodi-six v0.1.2 installed
          2021-05-25 11:00:42.162 T:2967576976  NOTICE: ADDON: script.module.pil v1.1.7 installed
          2021-05-25 11:00:42.162 T:2967576976  NOTICE: ADDON: script.module.pycryptodome v3.4.3 installed
          2021-05-25 11:00:42.162 T:2967576976  NOTICE: ADDON: service.xbmc.versioncheck v0.4.6 installed
          2021-05-25 11:00:42.162 T:2967576976  NOTICE: ADDON: skin.estouchy v2.0.28 installed
          2021-05-25 11:00:42.162 T:2967576976  NOTICE: ADDON: skin.estuary v2.0.27 installed
          2021-05-25 11:00:42.162 T:2967576976  NOTICE: ADDON: visualization.shadertoy v1.1.8 installed
          2021-05-25 11:00:42.162 T:2967576976  NOTICE: ADDON: visualization.spectrum v2.0.3 installed
          2021-05-25 11:00:42.162 T:2967576976  NOTICE: ADDON: visualization.waveform v2.0.1 installed
          2021-05-25 11:00:42.162 T:2967576976  NOTICE: ADDON: webinterface.default v18.x-2.4.6 installed
          2021-05-25 11:00:42.162 T:2967576976  NOTICE: ADDON: xbmc.addon v18.7.0 installed
          2021-05-25 11:00:42.162 T:2967576976  NOTICE: ADDON: xbmc.core v0.1.0 installed
          2021-05-25 11:00:42.162 T:2967576976  NOTICE: ADDON: xbmc.gui v5.14.0 installed
          2021-05-25 11:00:42.162 T:2967576976  NOTICE: ADDON: xbmc.json v10.3.0 installed
          2021-05-25 11:00:42.162 T:2967576976  NOTICE: ADDON: xbmc.metadata v2.1.0 installed
          2021-05-25 11:00:42.162 T:2967576976  NOTICE: ADDON: xbmc.python v2.26.0 installed
          2021-05-25 11:00:42.162 T:2967576976  NOTICE: ADDON: xbmc.webinterface v1.0.0 installed
          2021-05-25 11:00:42.167 T:2890920800   DEBUG: CLibInputHandler::DeviceAdded - keyboard type device added: gpio_keys (event4)
          2021-05-25 11:00:42.167 T:2890920800   DEBUG: CLibInputKeyboard::GetRepeat - could not get key repeat for event4 (Function not implemented)
          2021-05-25 11:00:42.167 T:2890920800   DEBUG: CLibInputKeyboard::GetRepeat - delay: 400ms repeat: 80ms for gpio_keys (event4)
          2021-05-25 11:00:42.180 T:2890920800   DEBUG: CLibInputHandler::DeviceAdded - pointer type device added: Logitech USB Optical Mouse (event0)
          2021-05-25 11:00:42.180 T:2890920800   DEBUG: CLibInputHandler::DeviceAdded - keyboard type device added: Chicony USB Keyboard (event1)
          2021-05-25 11:00:42.180 T:2890920800   DEBUG: CLibInputKeyboard::GetRepeat - delay: 250ms repeat: 33ms for Chicony USB Keyboard (event1)
          2021-05-25 11:00:42.203 T:2967576976   DEBUG: CFavourites::Load - no system favourites found, skipping
          2021-05-25 11:00:42.203 T:2967576976   DEBUG: CFavourites::Load - no userdata favourites found, skipping
          2021-05-25 11:00:42.205 T:2967576976   DEBUG: DBus method call to org.freedesktop.ConsoleKit.Manager.CanStop at /org/freedesktop/ConsoleKit/Manager of org.freedesktop.ConsoleKit failed: org.freedesktop.DBus.Error.ServiceUnknown - The name org.freedesktop.ConsoleKit was not provided by any .service files
          2021-05-25 11:00:42.205 T:2967576976    INFO: Selected Logind/UPower as PowerSyscall
          2021-05-25 11:00:42.206 T:2967576976   ERROR: DBus error: org.freedesktop.DBus.Error.ServiceUnknown - The name org.freedesktop.UPower was not provided by any .service files
          2021-05-25 11:00:42.206 T:2967576976    INFO: LogindUPowerSyscall - UPower not found, battery information will not be available
          2021-05-25 11:00:42.212 T:2890920800   DEBUG: CLibInputHandler::DeviceAdded - keyboard type device added: Chicony USB Keyboard (event2)
          2021-05-25 11:00:42.212 T:2890920800   DEBUG: CLibInputKeyboard::GetRepeat - could not get key repeat for event2 (Function not implemented)
          2021-05-25 11:00:42.212 T:2890920800   DEBUG: CLibInputKeyboard::GetRepeat - delay: 400ms repeat: 80ms for Chicony USB Keyboard (event2)
          2021-05-25 11:00:42.228 T:2967576976   DEBUG: LogindUPowerSyscall - inhibit lock taken, fd 20
          2021-05-25 11:00:42.228 T:2890920800   DEBUG: CLibInputHandler::DeviceAdded - pointer type device added: Chicony USB Keyboard (event3)
          2021-05-25 11:00:42.229 T:2967576976   DEBUG: DBus method call to org.freedesktop.UPower.EnumerateDevices at /org/freedesktop/UPower of org.freedesktop.UPower failed: org.freedesktop.DBus.Error.ServiceUnknown - The name org.freedesktop.UPower was not provided by any .service files
          2021-05-25 11:00:42.230 T:2958029664   DEBUG: Thread ActiveAE start, auto delete: false
          2021-05-25 11:00:42.230 T:2947543904   DEBUG: Thread AESink start, auto delete: false
          2021-05-25 11:00:42.231 T:2958029664   DEBUG: PulseAudio: Context authorizing
          2021-05-25 11:00:42.233 T:2958029664   DEBUG: PulseAudio: Context setting name
          2021-05-25 11:00:42.233 T:2958029664   DEBUG: PulseAudio: Context ready
          2021-05-25 11:00:42.234 T:2958029664 WARNING: Pulseaudio module module-allow-passthrough not loaded - opening PT devices might fail
          2021-05-25 11:00:42.234 T:2937058144   DEBUG: PulseAudio: Found Dummy Output with devicestring auto_null
          2021-05-25 11:00:42.235 T:2958029664  NOTICE: Found 1 Lists of Devices
          2021-05-25 11:00:42.235 T:2958029664  NOTICE: Enumerated PULSE devices:
          2021-05-25 11:00:42.235 T:2958029664  NOTICE:     Device 1
          2021-05-25 11:00:42.235 T:2958029664  NOTICE:         m_deviceName      : Default
          2021-05-25 11:00:42.235 T:2958029664  NOTICE:         m_displayName     : Default
          2021-05-25 11:00:42.235 T:2958029664  NOTICE:         m_displayNameExtra: Default Output Device (PULSEAUDIO)
          2021-05-25 11:00:42.235 T:2958029664  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
          2021-05-25 11:00:42.235 T:2958029664  NOTICE:         m_channels        : FL, FR
          2021-05-25 11:00:42.235 T:2958029664  NOTICE:         m_sampleRates     : 5512,8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000,384000
          2021-05-25 11:00:42.235 T:2958029664  NOTICE:         m_dataFormats     : AE_FMT_U8,AE_FMT_S16NE,AE_FMT_S24NE3,AE_FMT_S24NE4,AE_FMT_S32NE,AE_FMT_FLOAT
          2021-05-25 11:00:42.235 T:2958029664  NOTICE:         m_streamTypes     : No passthrough capabilities
          2021-05-25 11:00:42.235 T:2958029664  NOTICE:     Device 2
          2021-05-25 11:00:42.235 T:2958029664  NOTICE:         m_deviceName      : auto_null
          2021-05-25 11:00:42.235 T:2958029664  NOTICE:         m_displayName     : Dummy Output
          2021-05-25 11:00:42.235 T:2958029664  NOTICE:         m_displayNameExtra: Dummy Output (PULSEAUDIO)
          2021-05-25 11:00:42.235 T:2958029664  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
          2021-05-25 11:00:42.235 T:2958029664  NOTICE:         m_channels        : FL, FR
          2021-05-25 11:00:42.235 T:2958029664  NOTICE:         m_sampleRates     : 5512,8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000,384000
          2021-05-25 11:00:42.235 T:2958029664  NOTICE:         m_dataFormats     : AE_FMT_U8,AE_FMT_S16NE,AE_FMT_S24NE3,AE_FMT_S24NE4,AE_FMT_S32NE,AE_FMT_FLOAT
          2021-05-25 11:00:42.235 T:2958029664  NOTICE:         m_streamTypes     : No passthrough capabilities
          2021-05-25 11:00:42.235 T:2947543904    INFO: CActiveAESink::OpenSink - initialize sink
          2021-05-25 11:00:42.235 T:2947543904   DEBUG: CActiveAESink::OpenSink - trying to open device Default
          2021-05-25 11:00:42.235 T:2947543904   DEBUG: CActiveAESink::OpenSink - trying to open device PULSE:Default
          2021-05-25 11:00:42.236 T:2947543904   DEBUG: PulseAudio: Context authorizing
          2021-05-25 11:00:42.237 T:2947543904   DEBUG: PulseAudio: Context setting name
          2021-05-25 11:00:42.238 T:2947543904   DEBUG: PulseAudio: Context ready
          2021-05-25 11:00:42.239 T:2947543904   DEBUG: PulseAudio: Stream ready
          2021-05-25 11:00:42.239 T:2947543904  NOTICE: PulseAudio: Opened device Default in pcm mode with Buffersize 300 ms
          2021-05-25 11:00:42.239 T:2937058144   DEBUG: Sink changed
          2021-05-25 11:00:42.240 T:2947543904   DEBUG: CActiveAESink::OpenSink - PULSE Initialized:
          2021-05-25 11:00:42.240 T:2947543904   DEBUG:   Output Device : Default
          2021-05-25 11:00:42.240 T:2947543904   DEBUG:   Sample Rate   : 44100
          2021-05-25 11:00:42.240 T:2947543904   DEBUG:   Sample Format : AE_FMT_FLOAT
          2021-05-25 11:00:42.240 T:2947543904   DEBUG:   Channel Count : 2
          2021-05-25 11:00:42.240 T:2947543904   DEBUG:   Channel Layout: FL, FR
          2021-05-25 11:00:42.240 T:2947543904   DEBUG:   Frames        : 4410
          2021-05-25 11:00:42.240 T:2947543904   DEBUG:   Frame Size    : 8
          2021-05-25 11:00:42.258 T:2937058144   DEBUG: Sink changed
          2021-05-25 11:00:42.262 T:2967576976    INFO: CKeyboardLayoutManager: loading keyboard layouts from special://xbmc/system/keyboardlayouts...
          2021-05-25 11:00:42.265 T:2967576976   DEBUG: CKeyboardLayoutManager: keyboard layout "Slovenian QWERTZ" successfully loaded
          2021-05-25 11:00:42.266 T:2967576976   DEBUG: CKeyboardLayoutManager: keyboard layout "Czech QWERTZ" successfully loaded
          2021-05-25 11:00:42.267 T:2967576976   DEBUG: CKeyboardLayoutManager: keyboard layout "Greek QWERTY" successfully loaded
          2021-05-25 11:00:42.267 T:2967576976   DEBUG: CKeyboardLayoutManager: keyboard layout "Swedish QWERTY" successfully loaded
          2021-05-25 11:00:42.268 T:2967576976   DEBUG: CKeyboardLayoutManager: keyboard layout "Hebrew QWERTY" successfully loaded
          2021-05-25 11:00:42.268 T:2967576976   DEBUG: CKeyboardLayoutManager: keyboard layout "Hebrew ABC" successfully loaded
          2021-05-25 11:00:42.269 T:2967576976   DEBUG: CKeyboardLayoutManager: keyboard layout "Arabic QWERTY" successfully loaded
          2021-05-25 11:00:42.272 T:2967576976   DEBUG: CKeyboardLayoutManager: keyboard layout "Danish QWERTY" successfully loaded
          2021-05-25 11:00:42.273 T:2967576976   DEBUG: CKeyboardLayoutManager: keyboard layout "Romanian QWERTY" successfully loaded
          2021-05-25 11:00:42.274 T:2967576976   DEBUG: CKeyboardLayoutManager: keyboard layout "Lithuanian AZERTY" successfully loaded
          2021-05-25 11:00:42.274 T:2967576976   DEBUG: CKeyboardLayoutManager: keyboard layout "Lithuanian QWERTY" successfully loaded
          2021-05-25 11:00:42.278 T:2967576976   DEBUG: CKeyboardLayoutManager: keyboard layout "Hungarian QWERTZ" successfully loaded
          2021-05-25 11:00:42.279 T:2967576976   DEBUG: CKeyboardLayoutManager: keyboard layout "Italian QWERTY" successfully loaded
          2021-05-25 11:00:42.280 T:2967576976   DEBUG: CKeyboardLayoutManager: keyboard layout "Silesian QWERTY" successfully loaded
          2021-05-25 11:00:42.280 T:2967576976   DEBUG: CKeyboardLayoutManager: keyboard layout "Polish QWERTY" successfully loaded
          2021-05-25 11:00:42.281 T:2967576976   DEBUG: CKeyboardLayoutManager: keyboard layout "English QWERTY" successfully loaded
          2021-05-25 11:00:42.281 T:2967576976   DEBUG: CKeyboardLayoutManager: keyboard layout "English AZERTY" successfully loaded
          2021-05-25 11:00:42.282 T:2967576976   DEBUG: CKeyboardLayoutManager: keyboard layout "English ABC" successfully loaded
          2021-05-25 11:00:42.282 T:2967576976   DEBUG: CKeyboardLayoutManager: keyboard layout "Thai Kedmanee" successfully loaded
          2021-05-25 11:00:42.283 T:2967576976   DEBUG: CKeyboardLayoutManager: keyboard layout "Russian ЙЦУКЕН" successfully loaded
          2021-05-25 11:00:42.283 T:2967576976   DEBUG: CKeyboardLayoutManager: keyboard layout "Russian АБВ" successfully loaded
          2021-05-25 11:00:42.284 T:2967576976   DEBUG: CKeyboardLayoutManager: keyboard layout "Portuguese (Portugal) QWERTY" successfully loaded
          2021-05-25 11:00:42.285 T:2967576976   DEBUG: CKeyboardLayoutManager: keyboard layout "Turkish QWERTY" successfully loaded
          2021-05-25 11:00:42.286 T:2967576976   DEBUG: CKeyboardLayoutManager: keyboard layout "Spanish QWERTY" successfully loaded
          2021-05-25 11:00:42.286 T:2967576976   DEBUG: CKeyboardLayoutManager: keyboard layout "Slovak QWERTZ" successfully loaded
          2021-05-25 11:00:42.287 T:2967576976   DEBUG: CKeyboardLayoutManager: keyboard layout "Slovak QWERTY" successfully loaded
          2021-05-25 11:00:42.287 T:2967576976   DEBUG: CKeyboardLayoutManager: keyboard layout "Slovak ABC" successfully loaded
          2021-05-25 11:00:42.288 T:2967576976   DEBUG: CKeyboardLayoutManager: keyboard layout "German QWERTZ" successfully loaded
          2021-05-25 11:00:42.288 T:2967576976   DEBUG: CKeyboardLayoutManager: keyboard layout "German ABC" successfully loaded
          2021-05-25 11:00:42.289 T:2967576976   DEBUG: CKeyboardLayoutManager: keyboard layout "Chinese BasePY" successfully loaded
          2021-05-25 11:00:42.289 T:2967576976   DEBUG: CKeyboardLayoutManager: keyboard layout "Chinese BaiduPY" successfully loaded
          2021-05-25 11:00:42.290 T:2967576976   DEBUG: CKeyboardLayoutManager: keyboard layout "Icelandic QWERTY" successfully loaded
          2021-05-25 11:00:42.290 T:2967576976   DEBUG: CKeyboardLayoutManager: keyboard layout "Bulgarian ЯВЕРТЪ" successfully loaded
          2021-05-25 11:00:42.291 T:2967576976   DEBUG: CKeyboardLayoutManager: keyboard layout "Bulgarian АБВ" successfully loaded
          2021-05-25 11:00:42.291 T:2967576976   DEBUG: CKeyboardLayoutManager: keyboard layout "Croatian QWERTY" successfully loaded
          2021-05-25 11:00:42.292 T:2967576976   DEBUG: CKeyboardLayoutManager: keyboard layout "French AZERTY" successfully loaded
          2021-05-25 11:00:42.293 T:2967576976   DEBUG: CKeyboardLayoutManager: keyboard layout "Norwegian QWERTY" successfully loaded
          2021-05-25 11:00:42.294 T:2967576976   DEBUG: CKeyboardLayoutManager: keyboard layout "Ukrainian ЙЦУКЕН" successfully loaded
          2021-05-25 11:00:42.294 T:2967576976   DEBUG: CKeyboardLayoutManager: keyboard layout "Ukrainian АБВ" successfully loaded
          2021-05-25 11:00:42.295 T:2967576976   DEBUG: CKeyboardLayoutManager: keyboard layout "Korean ㄱㄴㄷ" successfully loaded
          2021-05-25 11:00:42.295 T:2967576976   DEBUG: DBus method call to org.freedesktop.DBus.Peer.Ping at /org/freedesktop/UDisks2 of org.freedesktop.UDisks2 failed: org.freedesktop.DBus.Error.ServiceUnknown - The name org.freedesktop.UDisks2 was not provided by any .service files
          2021-05-25 11:00:42.296 T:2967576976   DEBUG: DBus method call to org.freedesktop.UDisks.EnumerateDevices at /org/freedesktop/UDisks of org.freedesktop.UDisks failed: org.freedesktop.DBus.Error.ServiceUnknown - The name org.freedesktop.UDisks was not provided by any .service files
          2021-05-25 11:00:42.296 T:2967576976   DEBUG: Selected UDev as storage provider
          2021-05-25 11:00:42.298 T:2967576976    INFO: RetroPlayer[PROCESS]: Registering process control for GBM
          2021-05-25 11:00:42.298 T:2967576976    INFO: RetroPlayer[RENDER]: Registering renderer factory for GBM
          2021-05-25 11:00:42.298 T:2967576976    INFO: RetroPlayer[RENDER]: Registering renderer factory for OpenGLES
          2021-05-25 11:00:42.298 T:2967576976   ERROR: CWinSystemGbm::InitWindowSystem - failed to initialize Atomic DRM
          2021-05-25 11:00:42.298 T:2967576976   DEBUG: CDRMUtils::DestroyDrm - failed to drop drm master: Bad file descriptor
          2021-05-25 11:00:42.298 T:2967576976   ERROR: CWinSystemGbm::InitWindowSystem - failed to initialize Legacy DRM
          2021-05-25 11:00:42.298 T:2967576976   DEBUG: CDRMUtils::DestroyDrm - failed to drop drm master: Bad file descriptor
          2021-05-25 11:00:42.298 T:2967576976   ERROR: CWinSystemGbm::InitWindowSystem - failed to initialize off screen DRM
          2021-05-25 11:00:42.298 T:2967576976   FATAL: CApplication::Create: Unable to init windowing system
          2021-05-25 11:00:42.298 T:2967576976  NOTICE: Stopping player
          2021-05-25 11:00:42.298 T:2967576976  NOTICE: Storing total System Uptime
          2021-05-25 11:00:42.298 T:2967576976  NOTICE: Saving settings
          2021-05-25 11:00:42.303 T:2967576976  NOTICE: Saving skin settings
          2021-05-25 11:00:42.303 T:2967576976  NOTICE: Stopping all
          2021-05-25 11:00:42.303 T:2967576976   DEBUG: NetworkMessage - Signaling network services to stop
          2021-05-25 11:00:42.308 T:2967576976   DEBUG: NetworkMessage - Waiting for network services to stop
          2021-05-25 11:00:42.311 T:2967576976    INFO: CZeroconfAvahi::clientCallback: avahi server not available. But may become later...
          2021-05-25 11:00:42.311 T:2958029664   DEBUG: Thread ActiveAE 2958029664 terminating
          2021-05-25 11:00:44.062 T:2947543904   DEBUG: Thread AESink 2947543904 terminating
          2021-05-25 11:00:44.568 T:2967576976  NOTICE: Application stopped
          2021-05-25 11:00:44.768 T:2967576976  NOTICE: unload skin
          2021-05-25 11:00:44.768 T:2967576976    INFO: Unloading old skin ...
          2021-05-25 11:00:44.768 T:2967576976 WARNING: CGBMUtils::DestroySurface - surface already destroyed
          2021-05-25 11:00:44.768 T:2967576976   DEBUG: CWinSystemGbmEGLContext::DestroyWindow - deinitialized GBM
          2021-05-25 11:00:44.768 T:2967576976  NOTICE: unload sections
          2021-05-25 11:00:44.769 T:2967576976   DEBUG: LogindUPowerSyscall - delay lock sleep released
          2021-05-25 11:00:44.771 T:2967576976    INFO: ADDON: cpluff: 'An unreleased information object was encountered at address 0x3429180 with reference count 1 when destroying the associated plug-in context. Not releasing the object.'
          2021-05-25 11:00:44.771 T:2967576976    INFO: ADDON: cpluff: 'An unreleased information object was encountered at address 0x340d1c8 with reference count 1 when destroying the associated plug-in context. Not releasing the object.'
          2021-05-25 11:00:44.771 T:2967576976    INFO: ADDON: cpluff: 'An unreleased information object was encountered at address 0x3335848 with reference count 1 when destroying the associated plug-in context. Not releasing the object.'
          2021-05-25 11:00:44.771 T:2967576976    INFO: ADDON: cpluff: 'An unreleased information object was encountered at address 0x3425310 with reference count 1 when destroying the associated plug-in context. Not releasing the object.'
          2021-05-25 11:00:44.771 T:2967576976    INFO: ADDON: cpluff: 'An unreleased information object was encountered at address 0x3343760 with reference count 1 when destroying the associated plug-in context. Not releasing the object.'
          2021-05-25 11:00:44.771 T:2967576976    INFO: ADDON: cpluff: 'An unreleased information object was encountered at address 0x343fca8 with reference count 1 when destroying the associated plug-in context. Not releasing the object.'
          2021-05-25 11:00:44.771 T:2967576976    INFO: ADDON: cpluff: 'An unreleased information object was encountered at address 0x34277b0 with reference count 1 when destroying the associated plug-in context. Not releasing the object.'
          2021-05-25 11:00:44.771 T:2967576976    INFO: ADDON: cpluff: 'An unreleased information object was encountered at address 0x3367cf0 with reference count 1 when destroying the associated plug-in context. Not releasing the object.'
          2021-05-25 11:00:44.772 T:2967576976   DEBUG: object 0 --> 0 instances
          2021-05-25 11:00:44.772 T:2967576976   DEBUG: object 1 --> 0 instances
          2021-05-25 11:00:44.772 T:2967576976   DEBUG: object 2 --> 0 instances
          2021-05-25 11:00:44.772 T:2967576976   DEBUG: object 3 --> 0 instances
          2021-05-25 11:00:44.772 T:2967576976   DEBUG: object 4 --> 0 instances
          2021-05-25 11:00:44.772 T:2967576976   DEBUG: object 5 --> 0 instances
          2021-05-25 11:00:44.772 T:2967576976   DEBUG: object 6 --> 0 instances
          2021-05-25 11:00:44.772 T:2967576976   DEBUG: object 7 --> 0 instances
          2021-05-25 11:00:44.772 T:2967576976   DEBUG: object 8 --> 0 instances
          2021-05-25 11:00:44.772 T:2967576976   DEBUG: object 9 --> 0 instances
          2021-05-25 11:00:44.772 T:2967576976 WARNING: CGBMUtils::DestroyDevice - device already destroyed
          2021-05-25 11:00:44.772 T:2967576976   DEBUG: CWinSystemGbm::DestroyWindowSystem - deinitialized DRM
          2021-05-25 11:00:44.841 T:2890920800   DEBUG: Thread libinput 2890920800 terminating
          2021-05-25 11:00:45.001 T:2967561056   DEBUG: Thread Announce 2967561056 terminating
          

          AreaScout
          Posts: 1677
          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: 293 times
          Contact:

          Re: Kodi 18.7 final packages + Mali GBM driver testing on Ubuntu 18.04 minimal image

          Post by AreaScout »

            Ok Pulseaudio is running but the DRM subsystem is not ready at this boot stage, please add a new section to the kodi.service file

            Code: Select all

            [Unit]
            Requires=dev-dri-card0.device
            After=dev-dri-card0.device
            
            That should start kodi only if the DRM subsystem is ready ( I hope )

            RG

            Nuts_
            Posts: 22
            Joined: Thu May 20, 2021 4:09 pm
            languages_spoken: english, russian
            ODROIDs: XU4, N2
            Has thanked: 15 times
            Been thanked: 0
            Contact:

            Re: Kodi 18.7 final packages + Mali GBM driver testing on Ubuntu 18.04 minimal image

            Post by Nuts_ »

            AreaScout wrote:
            Tue May 25, 2021 8:09 pm
            Ok Pulseaudio is running but the DRM subsystem is not ready at this boot stage, please add a new section to the kodi.service file
            no - same result :(

            Code: Select all

            2021-05-25 11:12:42.477 T:2949636960  NOTICE: PulseAudio: Opened device Default in pcm mode with Buffersize 300 ms
            2021-05-25 11:12:42.527 T:2967929232   ERROR: CWinSystemGbm::InitWindowSystem - failed to initialize Atomic DRM
            2021-05-25 11:12:42.527 T:2967929232   ERROR: CWinSystemGbm::InitWindowSystem - failed to initialize Legacy DRM
            2021-05-25 11:12:42.527 T:2967929232   ERROR: CWinSystemGbm::InitWindowSystem - failed to initialize off screen DRM
            2021-05-25 11:12:42.527 T:2967929232   FATAL: CApplication::Create: Unable to init windowing system
            
            Last edited by Nuts_ on Tue May 25, 2021 8:26 pm, edited 1 time in total.

            AreaScout
            Posts: 1677
            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: 293 times
            Contact:

            Re: Kodi 18.7 final packages + Mali GBM driver testing on Ubuntu 18.04 minimal image

            Post by AreaScout »

              And you are sure your TV is on while you are at reboot ? Because if the TV is off the DRM subsystem will not be initialised, that could be another reason, switch your TV on to any TV channel broadcasting because some TV's are switching off the HDMI connection status if no signal is detected for some time

              Nuts_
              Posts: 22
              Joined: Thu May 20, 2021 4:09 pm
              languages_spoken: english, russian
              ODROIDs: XU4, N2
              Has thanked: 15 times
              Been thanked: 0
              Contact:

              Re: Kodi 18.7 final packages + Mali GBM driver testing on Ubuntu 18.04 minimal image

              Post by Nuts_ »

              AreaScout wrote:
              Tue May 25, 2021 8:19 pm
                And you are sure your TV is on while you are at reboot ?
                Ammm.. Not TV - monitor BTW, i can check it with real TV....
                but i can see all boot {kernel} log of Ubuntu while starting, no blank screen

                Nuts_
                Posts: 22
                Joined: Thu May 20, 2021 4:09 pm
                languages_spoken: english, russian
                ODROIDs: XU4, N2
                Has thanked: 15 times
                Been thanked: 0
                Contact:

                Re: Kodi 18.7 final packages + Mali GBM driver testing on Ubuntu 18.04 minimal image

                Post by Nuts_ »

                and But

                Code: Select all

                root@odroid:~# systemctl status kodi.service
                ● kodi.service - Kodi Media Center
                   Loaded: loaded (/lib/systemd/system/kodi.service; enabled; vendor preset: enabled)
                   Active: inactive (dead)
                
                May 25 11:13:58 odroid systemd[1]: Dependency failed for Kodi Media Center.
                May 25 11:13:58 odroid systemd[1]: kodi.service: Job kodi.service/start failed with result 'dependency'.
                

                AreaScout
                Posts: 1677
                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: 293 times
                Contact:

                Re: Kodi 18.7 final packages + Mali GBM driver testing on Ubuntu 18.04 minimal image

                Post by AreaScout »

                  Hmmm interesting, well with the 18.04 minimal image autostart with crontab was working for me, it was as easy as that and it worked for others too because they wrote it did, fact is that the /dev/dri/card0 device is not there in that boot stage as the log tells it, maybe a update from systemd broke it, I have to try it on my setup, but that could take 2 or 3 days after I have time to access to my SBC

                  RG
                  These users thanked the author AreaScout for the post:
                  Nuts_ (Tue May 25, 2021 8:42 pm)

                  Nuts_
                  Posts: 22
                  Joined: Thu May 20, 2021 4:09 pm
                  languages_spoken: english, russian
                  ODROIDs: XU4, N2
                  Has thanked: 15 times
                  Been thanked: 0
                  Contact:

                  Re: Kodi 18.7 final packages + Mali GBM driver testing on Ubuntu 18.04 minimal image

                  Post by Nuts_ »

                  AreaScout wrote:
                  Tue May 25, 2021 8:31 pm
                  autostart with crontab was working for me
                  i just cheked crontab again but with debug

                  Code: Select all

                  root@odroid:~# crontab -l -u odroid
                  @reboot /usr/bin/kodi --debug
                  
                  same result

                  Code: Select all

                  2021-05-25 11:45:17.645 T:2968056208   ERROR: CWinSystemGbm::InitWindowSystem - failed to initialize Atomic DRM
                  2021-05-25 11:45:17.645 T:2968056208   DEBUG: CDRMUtils::DestroyDrm - failed to drop drm master: Bad file descriptor
                  2021-05-25 11:45:17.645 T:2968056208   ERROR: CWinSystemGbm::InitWindowSystem - failed to initialize Legacy DRM
                  2021-05-25 11:45:17.645 T:2968056208   DEBUG: CDRMUtils::DestroyDrm - failed to drop drm master: Bad file descriptor
                  2021-05-25 11:45:17.645 T:2968056208   ERROR: CWinSystemGbm::InitWindowSystem - failed to initialize off screen DRM
                  2021-05-25 11:45:17.645 T:2968056208   FATAL: CApplication::Create: Unable to init windowing system
                  

                  AreaScout
                  Posts: 1677
                  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: 293 times
                  Contact:

                  Re: Kodi 18.7 final packages + Mali GBM driver testing on Ubuntu 18.04 minimal image

                  Post by AreaScout »

                    Yes same error with crontab :(

                    Ah I forgot, to make the unit section work from within the service you have to create a udev rule with this content /etc/udev/rules.d/drm.rules

                    Code: Select all

                    SUBSYSTEM=="drm", TAG+="systemd"
                    And execute this command as root udevadm control --reload-rules && udevadm trigger

                    I hope that does the trick !

                    RG

                    Nuts_
                    Posts: 22
                    Joined: Thu May 20, 2021 4:09 pm
                    languages_spoken: english, russian
                    ODROIDs: XU4, N2
                    Has thanked: 15 times
                    Been thanked: 0
                    Contact:

                    Re: Kodi 18.7 final packages + Mali GBM driver testing on Ubuntu 18.04 minimal image

                    Post by Nuts_ »

                    AreaScout wrote:
                    Tue May 25, 2021 8:50 pm
                    I forgot, to make the unit section work from within the service you have to create a udev rule with this content
                    Nop :(

                    Code: Select all

                    root@odroid:~# cat /etc/udev/rules.d/drm.rules
                    SUBSYSTEM=="drm", TAG+="systemd"
                    
                    With or contab or with serviced same error

                    Code: Select all

                    2021-05-25 11:56:05.887 T:2968101264   ERROR: CWinSystemGbm::InitWindowSystem - failed to initialize Atomic DRM
                    2021-05-25 11:56:05.888 T:2968101264   DEBUG: CDRMUtils::DestroyDrm - failed to drop drm master: Bad file descriptor
                    2021-05-25 11:56:05.888 T:2968101264   ERROR: CWinSystemGbm::InitWindowSystem - failed to initialize Legacy DRM
                    2021-05-25 11:56:05.888 T:2968101264   DEBUG: CDRMUtils::DestroyDrm - failed to drop drm master: Bad file descriptor
                    2021-05-25 11:56:05.888 T:2968101264   ERROR: CWinSystemGbm::InitWindowSystem - failed to initialize off screen DRM
                    2021-05-25 11:56:05.888 T:2968101264   FATAL: CApplication::Create: Unable to init windowing system
                    

                    AreaScout
                    Posts: 1677
                    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: 293 times
                    Contact:

                    Re: Kodi 18.7 final packages + Mali GBM driver testing on Ubuntu 18.04 minimal image

                    Post by AreaScout »

                      And this inside the drm.rules file ACTION=="add", SUBSYSTEM=="drm", KERNEL=="card0", TAG+="systemd" :roll:

                      Nuts_
                      Posts: 22
                      Joined: Thu May 20, 2021 4:09 pm
                      languages_spoken: english, russian
                      ODROIDs: XU4, N2
                      Has thanked: 15 times
                      Been thanked: 0
                      Contact:

                      Re: Kodi 18.7 final packages + Mali GBM driver testing on Ubuntu 18.04 minimal image

                      Post by Nuts_ »

                      AreaScout wrote:
                      Tue May 25, 2021 9:00 pm
                      And this inside the drm.rules file
                      Nop, same error again, with

                      Code: Select all

                      root@odroid:~# cat /etc/udev/rules.d/drm.rules
                      ACTION=="add", SUBSYSTEM=="drm", KERNEL=="card0", TAG+="systemd"
                      
                      Not shure that is right way. As can run kodi via command line - DRM working somehow/

                      AreaScout
                      Posts: 1677
                      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: 293 times
                      Contact:

                      Re: Kodi 18.7 final packages + Mali GBM driver testing on Ubuntu 18.04 minimal image

                      Post by AreaScout »

                        Of course it is working when boot is finished, it seems the DRM subsystem is ONLY available when boot is finished that is the problem, kodi get's a bad pointer because he can't open the device in boot stage, without GPU access no picture, can't help you more now because we are on a point where I have to reproduce it naturally on real hardware

                        RG
                        These users thanked the author AreaScout for the post:
                        Nuts_ (Tue May 25, 2021 9:30 pm)

                        User avatar
                        mad_ady
                        Posts: 9471
                        Joined: Wed Jul 15, 2015 5:00 pm
                        languages_spoken: english
                        ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
                        Location: Bucharest, Romania
                        Has thanked: 604 times
                        Been thanked: 679 times
                        Contact:

                        Re: Kodi 18.7 final packages + Mali GBM driver testing on Ubuntu 18.04 minimal image

                        Post by mad_ady »

                        How about a hack?

                        Code: Select all

                        ExecStartPre=/bin/sleep 60
                        

                        AreaScout
                        Posts: 1677
                        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: 293 times
                        Contact:

                        Re: Kodi 18.7 final packages + Mali GBM driver testing on Ubuntu 18.04 minimal image

                        Post by AreaScout »

                        mad_ady wrote:
                        Tue May 25, 2021 10:46 pm
                        How about a hack?

                        Code: Select all

                        ExecStartPre=/bin/sleep 60
                        
                        In the worst case you are just adding 60 seconds on top before the DRM subsystem is starting

                        Nuts_
                        Posts: 22
                        Joined: Thu May 20, 2021 4:09 pm
                        languages_spoken: english, russian
                        ODROIDs: XU4, N2
                        Has thanked: 15 times
                        Been thanked: 0
                        Contact:

                        Re: Kodi 18.7 final packages + Mali GBM driver testing on Ubuntu 18.04 minimal image

                        Post by Nuts_ »

                        AreaScout wrote:
                        Wed May 26, 2021 1:05 am
                        mad_ady wrote:
                        Tue May 25, 2021 10:46 pm
                        How about a hack?
                        ExecStartPre=/bin/sleep 60
                        it was my 1st idea. i tested sleep commands with crontab and with service to, but no success

                        AreaScout
                        Posts: 1677
                        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: 293 times
                        Contact:

                        Re: Kodi 18.7 final packages + Mali GBM driver testing on Ubuntu 18.04 minimal image

                        Post by AreaScout »

                          @Nuts_

                          You know what ?
                          1. I installed the 18.04 image, installed Kodi, added @reboot /usr/bin/kodi to crontab ---> works !!
                          2. Did a apt update / upgrade, systemd with other ~3.000.000 packages got updates
                          3. Rebooted to test if systemd is now broken ----> Nope, it works, Kodi is still starting !
                          My conclusion is this -> :o

                          .... check your DNS config, something is strange with the DNS config on this image .... problems with name resolution = no timeserver name resolution available = no RTC info from internet servers = no real clock = system gets nuts

                          Please add google nameservers with:

                          vi /etc/resolvconf/resolv.conf.d/head

                          nameserver 8.8.8.8
                          nameserver 8.8.4.4

                          Save and restart the service

                          systemctl restart resolvconf.service

                          Reboot and pray :roll:

                          Nuts_
                          Posts: 22
                          Joined: Thu May 20, 2021 4:09 pm
                          languages_spoken: english, russian
                          ODROIDs: XU4, N2
                          Has thanked: 15 times
                          Been thanked: 0
                          Contact:

                          Re: Kodi 18.7 final packages + Mali GBM driver testing on Ubuntu 18.04 minimal image

                          Post by Nuts_ »

                          AreaScout wrote:
                          Thu May 27, 2021 1:33 am
                          system gets nuts
                          Nuts_ gets nuts too :)
                          Well Looks like DNS not solution but i repeated all instaling stages (without reflash) and now its working! (via crontab)
                          Thinking problem was here:
                          usermod -aG sudo,adm,audio,operator,input,video,tty,staff,games,users,plugdev,netdev,disk odroid

                          AreaScout
                          Posts: 1677
                          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: 293 times
                          Contact:

                          Re: Kodi 18.7 final packages + Mali GBM driver testing on Ubuntu 18.04 minimal image

                          Post by AreaScout »

                            Didn't had permissions on my trouble shooting list because you told that manually you can start kodi -> anyway, cool that it works now

                            Post Reply

                            Return to “Projects”

                            Who is online

                            Users browsing this forum: No registered users and 1 guest