2021-03-07, 17:32
@flos06 have you added these lines to config.txt ?
Code:
dtoverlay=vc4-kms-v3d,cma-256
dtoverlay=rpivid-v4l2
dtoverlay=vc4-kms-v3d,cma-256
dtoverlay=rpivid-v4l2
(2021-03-07, 17:32)asavah Wrote: @flos06 have you added these lines to config.txt ?
Code:dtoverlay=vc4-kms-v3d,cma-256
dtoverlay=rpivid-v4l2
(2021-03-08, 12:29)flos06 Wrote: (really annoying that I can't edit my posts why is that?)
(2022-01-15, 13:54)labtopia Wrote: I tried the gbm version and it builds after finding some missing dependencies. however the bbuild wont start from ./kodi-gbm it gives the "ERROR: Unable to create GUI. Exitinggbm can't run with desktop running. You can switch VT away from X (e.g. ctrl-alt-F3) and then launch it (or boot to console).
Segmentation fault
(2022-07-20, 14:21)bendsch Wrote: has this script already been written? kodi-gbm works fine for me on rpi4 buster if i boot to console. thanx for the nice work at this point.Yes. The script, if you are running on RPiOS bullseye, is /usr/bin/kodi.
i would be able to flexibly switch in between kodi and desktop without rebooting though. Is there a good guid to that?
(2022-07-21, 16:27)popcornmix Wrote:thank for the reply, i built the gdm-version so i guess for me it's /usr/local/bin/kodi. i figured i was using it already without really being aware what it does (thought it was the executable binary).(2022-07-20, 14:21)bendsch Wrote: has this script already been written? kodi-gbm works fine for me on rpi4 buster if i boot to console. thanx for the nice work at this point.Yes. The script, if you are running on RPiOS bullseye, is /usr/bin/kodi.
i would be able to flexibly switch in between kodi and desktop without rebooting though. Is there a good guid to that?
If you grep that for "chvt" you can confirm it has support for switching VT if deskop is running.
You can read here for the history behind the build and launcher script.
Quote:[Unit]
Description = Kodi Media Center
After = remote-fs.target network-online.target
Wants = network-online.target
[Service]
User = pi
Group = pi
Type = simple
TTYPath=/dev/tty3
Environment=WINDOWING=gbm
ExecStart = /usr/local/bin/kodi-standalone
ExecStop = //usr/bin/killall --user pi --exact --wait kodi-gbm
#ExecStart = /usr/bin/kodi-standalone
Restart = on-abort
StandardInput=tty
RestartSec = 5
[Install]
WantedBy = graphical.target
Quote:[Unit]on exit i get several messages and warning about python scripts interrupted by user or failed to stop but the application is closing. i guess they have been there before though ...
Description = Kodi Media Center
After = remote-fs.target network-online.target
Wants = network-online.target
[Service]
User = pi
Group = pi
Type = simple
TTYPath=/dev/tty3
Environment=WINDOWING=gbm
ExecStart = /usr/local/bin/kodi-standalone
ExecStop = /usr/bin/curl -X POST -H "content-type:application/json" http://localhost:9191/jsonrpc -d '{"jsonrpc":"2.0","method":"Application.Quit"}'
Restart = on-abort
StandardInput=tty
RestartSec = 5
[Install]
WantedBy = graphical.target
Quote:2022-07-25 19:14:39.274 T:2552 WARNING <CWebserver[9191]>: invalid response data with range start at 1 and end at 0
2022-07-25 19:14:39.285 T:2406 INFO <general>: Stopping player
2022-07-25 19:14:39.285 T:2406 INFO <general>: Storing total System Uptime
2022-07-25 19:14:39.285 T:2406 INFO <general>: Saving settings
2022-07-25 19:14:39.298 T:2406 INFO <general>: Saving skin settings
2022-07-25 19:14:39.299 T:2406 INFO <general>: Stopping all
2022-07-25 19:14:39.300 T:2406 INFO <general>: ES: Stopping event server
2022-07-25 19:14:39.300 T:2406 INFO <general>: stopping zeroconf publishing
2022-07-25 19:14:39.304 T:2406 INFO <CWebserver[9191]>: Stopped
2022-07-25 19:14:40.126 T:2478 INFO <general>: ES: UDP Event server stopped
2022-07-25 19:14:40.129 T:2406 INFO <general>: stop dvd detect media
2022-07-25 19:14:40.134 T:2406 INFO <general>: CServiceAddonManager: failed to stop inputstream.ffmpegdirect (may have ended)
2022-07-25 19:14:40.135 T:2470 INFO <general>: CPythonInvoker(1, /home/pi/.kodi/addons/plugin.video.youtube/resources/lib/startup.py): script successfully run
2022-07-25 19:14:40.602 T:2470 INFO <general>: Python interpreter interrupted by user
2022-07-25 19:14:41.102 T:2471 INFO <general>: CPythonInvoker(2, /home/pi/.kodi/addons/script.common.plugin.cache/resources/lib/entry_point.py): script successfully run
2022-07-25 19:14:41.486 T:2471 INFO <general>: Python interpreter interrupted by user
2022-07-25 19:14:41.586 T:2472 INFO <general>: CPythonInvoker(3, /home/pi/.kodi/addons/script.cu.lrclyrics/default.py): script successfully run
2022-07-25 19:14:41.979 T:2472 WARNING <general>: CPythonInvoker(3, /home/pi/.kodi/addons/script.cu.lrclyrics/default.py): the python script "/home/pi/.kodi/addons/script.cu.lrclyrics/default.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon9xbmcaddon5AddonE,N9XBMCAddon7xbmcgui6WindowE
2022-07-25 19:14:41.990 T:2472 INFO <general>: Python interpreter interrupted by user
2022-07-25 19:14:41.993 T:2473 INFO <general>: [script.tubecast] ssdp: Stopping SSDP server
2022-07-25 19:14:42.091 T:2473 INFO <general>: CPythonInvoker(4, /home/pi/.kodi/addons/script.tubecast/main.py): script successfully run
2022-07-25 19:14:42.360 T:2473 INFO <general>: Python interpreter interrupted by user
2022-07-25 19:14:42.543 T:2474 INFO <general>: CPythonInvoker(5, /home/pi/.kodi/addons/script.xbmcbackup/service.py): script successfully run
2022-07-25 19:14:42.802 T:2474 INFO <general>: Python interpreter interrupted by user
2022-07-25 19:14:42.802 T:2475 INFO <general>: CPythonInvoker(6, /home/pi/.kodi/addons/service.takealug.epg-grabber/service.py): script successfully run
2022-07-25 19:14:42.968 T:2475 INFO <general>: Python interpreter interrupted by user
2022-07-25 19:14:42.968 T:2406 INFO <general>: CServiceAddonManager: failed to stop service.xbmc.versioncheck (may have ended)