Kodi Community Forum
Headless Kodi - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+--- Thread: Headless Kodi (/showthread.php?tid=212061)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32


RE: Headless Kodi - celedhrim - 2018-03-30

Forgot to reply here

Thx for your patch !

https://github.com/Celedhrim/docker-kodi-server/commit/363fb7f1c0ebaf742ebd712cc642936dd2c9517c


RE: Headless Kodi - marantz - 2018-06-20

this patch does not work on master anymore 

xbmc$ patch -p1 < headless.patch 
patching file xbmc/AppParamParser.cpp
Hunk #1 succeeded at 100 (offset -37 lines).
patching file xbmc/Application.cpp
Hunk #1 FAILED at 278.
Hunk #2 FAILED at 4308.
2 out of 2 hunks FAILED -- saving rejects to file xbmc/Application.cpp.rej
patching file xbmc/Application.h
Hunk #1 FAILED at 342.
Hunk #2 FAILED at 479.
2 out of 2 hunks FAILED -- saving rejects to file xbmc/Application.h.rej
patching file xbmc/guilib/GUIDialog.cpp
Hunk #1 FAILED at 169.
1 out of 1 hunk FAILED -- saving rejects to file xbmc/guilib/GUIDialog.cpp.rej
patching file xbmc/platform/xbmc.cpp
Hunk #1 succeeded at 62 with fuzz 1 (offset 1 line).
patching file xbmc/settings/SettingConditions.cpp
Hunk #1 FAILED at 338.
1 out of 1 hunk FAILED -- saving rejects to file xbmc/settings/SettingConditions.cpp.rej
patching file xbmc/GUIInfoManager.cpp
Hunk #1 FAILED at 5615.
1 out of 1 hunk FAILED -- saving rejects to file xbmc/GUIInfoManager.cpp.rej


RE: Headless Kodi - Klojum - 2018-06-20

@pgjensen (and others)

We'd prefer it if you use pastebin websites to 'dump' any of your kodi or compilation logs etcetera, and keep the Kodi forum itself as lean & clean as possible. Just like it says just above the "Post Reply" button.

Thanks for your cooperation. Smile


RE: Headless Kodi - celedhrim - 2018-06-20

@marantz yes , maybe Smile

The patch work with alpha 1 , I only do patch for (git ) tag/release, never for master.


RE: Headless Kodi - pgjensen - 2018-06-25

I created an issue in Github for Alpha 2 not working with the most recent patch.  It may be a while before I can get to resolving, so hopefully someone else can take a look.


RE: Headless Kodi - sparklyballs - 2018-06-25

(2018-06-20, 13:34)celedhrim Wrote: @marantz yes , maybe Smile

The patch work with alpha 1 , I only do patch for (git ) tag/release, never for master.
 pinched your alpha2 patch here

https://github.com/linuxserver/docker-kodi-headless/blob/Leia/patches/Leia/headless.patch

for our  Leia branch build 

https://github.com/linuxserver/docker-kodi-headless/blob/Leia/Dockerfile

thanks Smile


RE: Headless Kodi - pgjensen - 2018-06-26

I am getting an error running kodi headless, compiled myself using the same kodi build info from the docker file, but for ubuntu 16.04.  I have some issues with docker, so I try and build myself and run straight on my server.  Thoughts?

If I build it with the patch applied I get to:
21:34:24.403 T:140737353537536  NOTICE: Log level changed to "LOG_LEVEL_DEBUG"
21:34:24.403 T:140737353537536  NOTICE: CMediaSourceSettings: loading media sources from special://masterprofile/sources.xml
21:34:24.404 T:140737353537536   DEBUG: CMediaSourceSettings: <games> tag is missing or sources.xml is malformed
21:59:45.107 T:140737353537536   FATAL: unable to load settings

If I build it without the patch applied I get further than the above (expected FATAL running without headless):
21:34:24.403 T:140737353537536  NOTICE: Log level changed to "LOG_LEVEL_DEBUG"
21:34:24.403 T:140737353537536  NOTICE: CMediaSourceSettings: loading media sources from special://masterprofile/sources.xml
21:34:24.404 T:140737353537536   DEBUG: CMediaSourceSettings: <games> tag is missing or sources.xml is malformed
21:34:24.406 T:140737353537536    INFO: creating subdirectories
...
...
...
21:34:24.457 T:140737353537536   FATAL: CApplication::Create: Unable to init windowing system



RE: Headless Kodi - sparklyballs - 2018-06-26

(2018-06-26, 04:28)pgjensen Wrote: I am getting an error running kodi headless, compiled myself using the same kodi build info from the docker file, but for ubuntu 16.04.  I have some issues with docker, so I try and build myself and run straight on my server.  Thoughts?

If I build it with the patch applied I get to:
21:34:24.403 T:140737353537536  NOTICE: Log level changed to "LOG_LEVEL_DEBUG"
21:34:24.403 T:140737353537536  NOTICE: CMediaSourceSettings: loading media sources from special://masterprofile/sources.xml
21:34:24.404 T:140737353537536   DEBUG: CMediaSourceSettings: <games> tag is missing or sources.xml is malformed
21:59:45.107 T:140737353537536   FATAL: unable to load settingsIf I build it without the patch applied I get further than the above (expected FATAL running without headless):
21:34:24.403 T:140737353537536  NOTICE: Log level changed to "LOG_LEVEL_DEBUG"
21:34:24.403 T:140737353537536  NOTICE: CMediaSourceSettings: loading media sources from special://masterprofile/sources.xml
21:34:24.404 T:140737353537536   DEBUG: CMediaSourceSettings: <games> tag is missing or sources.xml is malformed
21:34:24.406 T:140737353537536    INFO: creating subdirectories...
...
...
21:34:24.457 T:140737353537536   FATAL: CApplication::Create: Unable to init windowing system
same thing here using docker
just for consistency 
as for why i don't know


RE: Headless Kodi - docwra - 2018-06-27

Whats the current situation with Kodi master and this? Did these patches from @topfs2 every get merged?

Asking as I have a headless Raspberry Pi for music that crashes after a few months. I'd love to be able to reduce the power usage from the GUI as well.


RE: Headless Kodi - MrTarantula - 2018-06-29

I don't think that patch got merged, but this PR might be relevant to your interests.


RE: Headless Kodi - a1rwulf - 2018-06-30

(2018-06-29, 17:39)MrTarantula Wrote: I don't think that patch got merged, but this PR might be relevant to your interests.
 However it takes a different approach.
My patch renders to an off screen rendernode instead of not creating a gui at all and is tied to linux gbm.


RE: Headless Kodi - docwra - 2018-06-30

i remember a patch years ago that was rejected that simply reduced the framrate of the main render loop to 10fps or something. It reduced power usage significantly Smile


RE: Headless Kodi - pgjensen - 2018-07-02

Any updates on a working Alpha 2 patch?


RE: Headless Kodi - Gomez - 2018-07-06

(2018-06-30, 08:00)a1rwulf Wrote:
(2018-06-29, 17:39)MrTarantula Wrote: I don't think that patch got merged, but this PR might be relevant to your interests.
 However it takes a different approach.
My patch renders to an off screen rendernode instead of not creating a gui at all and is tied to linux gbm. 
Great to see people are working on this. I dont understand the use case. Are you running kodi in a headless server? Docker? Whats linux gbm? Some links could be enough for me.


RE: Headless Kodi - a1rwulf - 2018-07-09

(2018-07-06, 14:16)Gomez Wrote:
(2018-06-30, 08:00)a1rwulf Wrote:
(2018-06-29, 17:39)MrTarantula Wrote: I don't think that patch got merged, but this PR might be relevant to your interests.
 However it takes a different approach.
My patch renders to an off screen rendernode instead of not creating a gui at all and is tied to linux gbm.  
Great to see people are working on this. I dont understand the use case. Are you running kodi in a headless server? Docker? Whats linux gbm? Some links could be enough for me. 
 Linux GBM is kodi directly talking to the kernel graphics stack via drm/kms (no X server).
My use case is using kodi as musicplayer (analog audio) and control it via kore.
But your use cases would work as well if you have an intel gpu.