Comments (7)
Note to --gpu
: You can enable it always. If hardware acceleration fails, software rendering will be used automatically.
Latest x11docker master supports automated install of nvidia closed source drivers if the user provides the binary. x11docker gives instructions for this in terminal output if it detects closed source nvidia driver on host.
from docker-kodi.
This kaptain stuff is like wizardry! Quite impressive how it can create a GUI with such little code.
I like this idea of providing a helper script, GUI or otherwise, that can help users figure out the x11docker
invocation that would work well on their system. I'll start to tinker. Really appreciate the inspiration and pseudo-code. Thanks!
It could detect whether it runs on console or in X and decide whether to use --xorg or --weston-xwayland or --xephyr
This is a little out of my area of expertise. Do you think that if I study x11docker
's code I could learn ways to detect these environments? Any pointers would be appreciated.
from docker-kodi.
Do you think that if I study x11docker's code I could learn ways to detect these environments? Any pointers would be appreciated.
You can look at #### part: check multiple option interferences
begining at line 1746 where x11docker tries to autodetect the best available X server. But be warned: It is a quite confusing spaghetti part of the script. (At least there is no GOTO
inside ... cough).
I'll open a new ticket #3 for possible X server options and their pitfalls and dependencies.
from docker-kodi.
Thoughts for automated decision:
Sound:
Check the output of pax11publish -d
.
If that is empty or fails, use --alsa
.
If it contains keyword Server:
, use --pulseaudio
.
X server:
Check for availability of weston
and Xwayland
. If yes, use --weston-xwayland
.
Otherwise, check for environment variables DISPLAY
and WAYLAND_DISPLAY
.
If empty, use --xorg
.
If DISPLAY
is set, use --hostdisplay
.
Wayland:
If WAYLAND_DISPLAY
is set, but DISPLAY
is empty, best choice is --weston-xwayland
. (Note: --fullscreen
fails here, seems to be a weston issue).
--xwayland
is possible, but can look improper with panels. If none of this works, order the user to either install weston
and Xwayland
or to switch to console for --xorg
.
GPU:
Check for files /dev/nvidia*
. If they exist, don't use --gpu
, blame the user for using proprietary crap and recommend free nouveau
driver. Otherwise: enable --gpu
.
from docker-kodi.
Thank you! I'll start digging in over the next few days.
from docker-kodi.
Latest x11docker master supports automated install of nvidia closed source drivers if the user provides the binary. x11docker gives instructions for this in terminal output if it detects closed source nvidia driver on host.
I recommend to install kmod
and xz-utils
in erichough/kodi
. It significantly speeds up container startup if someone provides an nvidia installer to x11docker.
from docker-kodi.
I recommend to install
kmod
andxz-utils
inerichough/kodi
. It significantly speeds up container startup if someone provides an nvidia installer to x11docker.
Interesting. Thanks for the tip! I looked through the source of x11docker
and indeed see that kmod
and xz-utils
are needed for the closed-source Nvidia installer. I'm going to create a separate issue to ensure that these are installed in the image ahead of time.
from docker-kodi.
Related Issues (20)
- 100% CPU usage HOT 5
- Connection failure at startup HOT 9
- No emulators for retrogaming HOT 2
- Could not run kodi container on pure wayland machine HOT 8
- Bump Kodi to 18.5 HOT 2
- Guide for Dummies (like me ^^) HOT 11
- add locales HOT 9
- Playing DVD HOT 8
- --homedir is used but it is nowhere defined HOT 4
- [Discussion] Ideas / Improvements / In-Use HOT 3
- kodi-gdm HOT 7
- Will it also run on Raspberry Pi 4 ? HOT 18
- :leia tag not found on docker hub HOT 2
- kodi cpu cycling and video intermittent HOT 1
- Crash after entering Settings/System/Audio and Settings/System/Input
- VAAPI/vpp vaCreateConfig error: the requested VAProfile is not supported (12) HOT 1
- Tutorial to install
- Need to be upgarded to Kodi 19.0.3
- Airplay support
- Do we really need x11docker? (or how to use it with wsl2 on windows)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-kodi.