Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible x11docker X server options #3

Open
mviereck opened this issue Apr 12, 2018 · 5 comments
Open

Possible x11docker X server options #3

mviereck opened this issue Apr 12, 2018 · 5 comments
Labels
enhancement New feature or request

Comments

@mviereck
Copy link

mviereck commented Apr 12, 2018

I tried some different possible X server setups for kodi.

  • Within already running X:
    • quite well:
      • --hostdisplay --gpu
      • --hostdisplay --trusted --hostipc
      • --weston-xwayland with and without --gpu
    • less of interest:
      • --xephyr (stable but slow because it does not support --gpu)
      • --xpra (terribly slow without --gpu; with --gpu it would use --weston-xwayland in background).
    • crashes:
      • --nxagent
  • From console:
    • quite well with and without --gpu:
      • --xorg
      • --weston-xwayland
  • Within pure Wayland without X/Xwayland:
    • quite well:
      • --weston-xwayland
    • issues with non-covered panels of Wayland compositor:
      • --xwayland

Dependencies to check:
--weston-xwayland: weston and Xwayland
--xorg: xorg (console or, within X, setup of /etc/X11/Xwrapper.config
--hostdisplay: already running X server (environment DISPLAY)
--xephyr: Xephyr and already running X server
--xwayland: Xwayland and already running Wayland (environment WAYLAND_DISPLAY)

--gpu: works well with open source drivers on host.
Pitfall: NVIDIA cards run quite well with nouveau 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 and Xwayland are rarely installed already.

@ehough ehough added the enhancement New feature or request label Apr 13, 2018
@mviereck
Copy link
Author

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.

@SicLuceatLux
Copy link

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.

@mviereck
Copy link
Author

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?

@ehough
Copy link
Owner

ehough commented Aug 14, 2019

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.

@SicLuceatLux
Copy link

thx for your answers !
have to recheck it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants