-
Notifications
You must be signed in to change notification settings - Fork 85
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
klipperscreen on android device #36
Comments
Figured this out on my own. First of all the android device needs to be passed to the container. Since it doesn't show up as a serial device under /dev/serial or something like /dev/ttyUSB0 it is necessary to pass the USB bus to the container. This can be done in your docker compose file like:
Then I had to manually modify the Dockerfile to allow me to run a couple of
(notice I changed the display number to :100 -- for some reason it wasn't working with :0) and my supervisord.conf file looks like this:
Since this doesn't require an x11 server on the host machine you can comment out the Make sure your device is plugged in, run @mkuf any interest in including the above as an option of some sort? Perhaps as an additional profile or an environment option or something? |
Hey there, The XServer XSDL App mentioned in the Docs is a fully featured XServer, that the klipperscreen container can conntect to, without any modifications. services:
klipperscreen:
environment:
DISPLAY: 10.0.0.167:0 Afterwards start the Stack and the klipperscreen container is connecting to your phone. The only requirement for this to work is that your phone is on the same network as your printer. -Markus |
@mkuf gonna level with you here.... that didn't even cross my mind. I'll try it when I'm back home. However, I'm also assuming that the connection might not be super stable or as fast as it could be over the network. Which is partially why I went the USB route. I'll do some testing and report back. |
That makes sense. The klipperscreen container is using the hosts network stack by Line 122 in 3f5b5ec
So you should be able to do the adb tunneling on the host itself and just let the container use the already established connection. -Markus |
@adrianocr did you try any of the suggestions or did you stick with your initial setup? |
@mkuf I not only stopped using this project (I spun up a VM as a fake "rpi" of sorts in proxmox) and installed klipper via kiauh, but I also stopped using klipperscreen because I realized I don't actually need it. |
Update MacOS Compatibility note
It is possible to use klipperscreen on an android device: https://klipperscreen.readthedocs.io/en/latest/Android/
I'm at a loss on how to connect it with the container in this repo though. The tutorial seems to rely on having access to certain scripts and a systemd service.
Is there a way to get the container to forward X11 to the android device?
The text was updated successfully, but these errors were encountered: