Device: X96 OS version: 9.2.5 on a tf card Problem: The box stuck on logo screen, can’t startup to Kodi, after a power down, though I can login with SSH. When it’s normal: It runs hundreds days with no problems, and the latesd update is several days ago. What I have done:
I logged in via SSH, do a manual update (9.2.5 to 9.2.5), problem stayed;
I do a fsck on the tf partion, no problem;
I run ps | grep kodi and found no kodi process, systemctl status kodi show it is inactive
I can run kodi manually with /usr/lib/kodi/kodi.sh
I found some inactived service as follow with systemctl list-units
CoreELEC:~ # systemctl list-units | grep -v "loaded active"
UNIT LOAD ACTIVE SUB JOB DESCRIPTION
kodi-aml-hdmimonitor.service loaded inactive dead start Kodi Amlogic HDMI connection monitor
kodi-autostart.service loaded activating start start Kodi user autostart script
kodi.service loaded inactive dead start Kodi Media Center
openvfd.service loaded inactive dead start OpenVFD Service
kodi.target loaded inactive dead start Kodi Mediacenter Interface
I don’t know why kodi can’t run on startup, please help.
It’s strange, I checked kodi.service and find requires graphical.target and network-online.target satisfied, and ExecStartPre scripts report no errors, no reason why service kodi stuck there.
CoreELEC:~ # systemctl list-units -t target
UNIT LOAD ACTIVE SUB JOB DESCRIPTION
basic.target loaded active active Basic System
graphical.target loaded active active Graphical Interface
kodi.target loaded inactive dead start Kodi Mediacenter Interface
local-fs.target loaded active active Local File Systems
multi-user.target loaded active active Multi-User System
network-online.target loaded active active Network is Online
network.target loaded active active Network
paths.target loaded active active Paths
rpcbind.target loaded active active RPC Port Mapper
slices.target loaded active active Slices
sockets.target loaded active active Sockets
sound.target loaded active active Sound Card
swap.target loaded active active Swap
sysinit.target loaded active active System Initialization
time-set.target loaded active active System Time Set
time-sync.target loaded active active System Time Synchronized
timers.target loaded active active Timers
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
JOB = Pending job for the unit.
17 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
Yes, kodi will start and screen lightened with the 2 commands.
I’m also confused why the service not started with OS and failed to run even with systemctl start cmd. I know little about coreelec and its filesystem.
If the problem stays unsolved, I will make a script containing the 2 commands and run it when OS needs a restart.
I have one udisk, which was used before I write OS to the tf card, but I tried just now and found it broken.
Problem solved, after I plug the VGA cable out of my laptop.
My monitor have one VGA and one HDMI port, X96 connected with the HDMI port, and several days ago I connected the VGA port with my laptop. I just plugged the VGA cable out of my laptop and rebooted CoreElec, now it worked.
I will keep the VGA cable connected with my laptop because I use it more often. When one more device connected to a same monitor with another video port, kodi fails to start, is it a known bug, will it be fixed?