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

Could not run kodi container on pure wayland machine #26

Open
kanyck opened this issue Jun 16, 2019 · 8 comments
Open

Could not run kodi container on pure wayland machine #26

kanyck opened this issue Jun 16, 2019 · 8 comments

Comments

@kanyck
Copy link

kanyck commented Jun 16, 2019

Trying to setup a HTPC. It's a fresh Void Linux install with wayland+weston+elogind on a spare NUC. (I want to add LMS there and probably some other stuff later on, that's why I did not used LibreELEC for this, which would be quite straightforward).
So, weston starts okay and seemingly works (didn't go beyond the successful start for I actually don't need it).
However I can't make the dockerized kodi start.
My most successful test setup so far was like this
x11docker -- wayland -- tty --gpu --alsa --homedir /home/docker
which gets
invalid volume specification: '/run/user/1000/:/:rw' invalid mount config for type "bind": destination can't be '/'.
Adding "-v /run/user/1000:/tmp:rw" doesn't help.
XDG_RUNTIME_DIR is manually set and exported on a host machine.
I'm not quite familiar with docker yet so I probably would need some directions...
UPDATE: XDG_RUNTIME_DIR being unset makes the "/:/:rw" instead

@mviereck
Copy link

This is a bug in x11docker, not from the kodi image. I have fixed it in x11docker master branch, should work now. Please update and try out.

However, I doubt that kodi itself runs on Wayland, but I am not sure about that.

@kanyck
Copy link
Author

kanyck commented Jun 17, 2019

@mviereck So I reported to the wrong place. Sorry for that.
Updated with x11docker --update-master, now on 6.0.0-beta. Still no change, I got the same error.
Kodi is claimed to run on Wayland. I always was curious to try...

@mviereck
Copy link

So I reported to the wrong place. Sorry for that.

No problem. :-)

Updated with x11docker --update-master, now on 6.0.0-beta. Still no change, I got the same error.

That's odd. Could you please open a ticket at https://github.com/mviereck/x11docker and attach the x11docker.log file?

Kodi is claimed to run on Wayland. I always was curious to try...

ok, I wasn't aware of that.

@ehough
Copy link
Owner

ehough commented Jun 17, 2019

@mviereck Thanks, as always, for your help! As @kanyck pointed out, Kodi is indeed supposed to work via Wayland.

Closing this ticket as the issue is more with x11docker, but feel free to continue the discussion here.

@ehough ehough closed this as completed Jun 17, 2019
@kanyck
Copy link
Author

kanyck commented Jun 17, 2019

OK, closing it here. New issue is
mviereck/x11docker#166

@mviereck
Copy link

On x11docker side the bug is basically fixed.
However, kodi fails with:

$ x11docker --wayland erichough/kodi

---> starting Kodi with command: kodi-standalone
Error: /usr/lib/x86_64-linux-gnu/kodi/kodi-gbm not found
Error: /usr/lib/x86_64-linux-gnu/kodi/kodi-gbm not found
Error: /usr/lib/x86_64-linux-gnu/kodi/kodi-gbm not found
/usr/bin/kodi --standalone  has exited in an unclean state 3 times in the last 0 seconds.
Something is probably wrong
---> Kodi does not appear to be running. Exiting.

Maybe there is a kodi Wayland library missing.

@ehough ehough reopened this Jun 19, 2019
@mviereck
Copy link

I've added RUN apt-get install -y kodi-gbm and get a different message:

---> starting Kodi with command: kodi-standalone
ERROR: Unable to create GUI. Exiting

ERROR: Unable to create GUI. Exiting
ERROR: Unable to create GUI. Exiting
/usr/bin/kodi --standalone  has exited in an unclean state 3 times in the last 36 seconds.
Something is probably wrong
---> Kodi does not appear to be running. Exiting.

I am not sure how to proceed. Maybe kodi needs an option to be set to run on Wayland?

@p-hash
Copy link

p-hash commented Nov 20, 2020

Hi @mviereck

GBM stands for generic buffer manager and kodi-gbm is there to run kodi standalone with neither xserver nor wayland present.

Adding kodi-wayland package to the image solved the issue for me.

@p-hash p-hash mentioned this issue Nov 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants