Open mviereck opened 6 years ago
Just a note: The automated X server choice of x11docker should fit well for erichough/kodi
.
Your current command example is
$ x11docker --xorg \
--vt 7 \
--pulseaudio \
--wm none \
--gpu \
--homedir /host/path/to/kodi/home \
-- -v /host/path/to/media:/media:ro -- \
erichough/kodi
You can reduce it to:
$ x11docker --pulseaudio \
--gpu \
--homedir /host/path/to/kodi/home \
-- -v /host/path/to/media:/media:ro -- \
erichough/kodi
You can still set --vt 7
, it does not hurt other X server options.
--wm=none
avoids to load a needless window manager with --xorg
, but can be disturbing if it is started on a desktop. x11docker would try to run in a nested X server that might not be available.
using the latest x11docker 6.1.1 (debian 9) "-- -v /host/path/to/media:/media:ro" does not work. I was only able to workaround with --share /path/to/destination/ ...of course then it is not bound as /media...but at least I could gain access to my media.
using the latest x11docker 6.1.1 (debian 9) "-- -v /host/path/to/media:/media:ro" does not work. I
It works here. Maybe you have missed the second --
in that line?
using the latest x11docker 6.1.1 (debian 9) "-- -v /host/path/to/media:/media:ro" does not work.
Also works normally for me. @SicLuceatLux if you're still having trouble please post your full x11docker run command so we can take a look.
thx for your answers ! have to recheck it
I tried some different possible X server setups for kodi.
--hostdisplay --gpu
--hostdisplay --trusted --hostipc
--weston-xwayland
with and without--gpu
--xephyr
(stable but slow because it does not support--gpu
)--xpra
(terribly slow without--gpu
; with--gpu
it would use--weston-xwayland
in background).--nxagent
--gpu
:--xorg
--weston-xwayland
--weston-xwayland
--xwayland
Dependencies to check:
--weston-xwayland
:weston
andXwayland
--xorg
:xorg
(console or, within X, setup of/etc/X11/Xwrapper.config
--hostdisplay
: already running X server (environmentDISPLAY
)--xephyr
:Xephyr
and already running X server--xwayland
:Xwayland
and already running Wayland (environmentWAYLAND_DISPLAY
)--gpu
: works well with open source drivers on host. Pitfall: NVIDIA cards run quite well withnouveau
driver on host. But with non-free-nvidia driver the very same nvidia driver version must be installed in image. (At this point I always think of Linus Thorvalds and his gesture towards NVIDIA ...).--fullscreen
enables fullscreen mode of--xephyr
and--weston-xwayland
. Without that it is also nice to see kodi catched in a window. :-p Though, if this window is closed, kodi crashes screechy.The most reliable option for all possible setups and situations is
--weston-xwayland
and it provides the best isolation from host while still being performant. Drawback:weston
andXwayland
are rarely installed already.