Skip to content

Instantly share code, notes, and snippets.

@EduardoOliveira
Created February 3, 2022 09:32
Show Gist options
  • Save EduardoOliveira/d82a369211182cd3ba6883bce520865d to your computer and use it in GitHub Desktop.
Save EduardoOliveira/d82a369211182cd3ba6883bce520865d to your computer and use it in GitHub Desktop.
klipper screen over wifi
Download XServer XSDL for android https://m.apkpure.com/xserver-xsdl/x.org.server
Enable developer mode on the device
Enable debug over wifi
get the device ip to replace in screen.sh
create the log file /var/log/klipdroid.log
End result https://photos.app.goo.gl/d2XbsR74htF3N1nh7
[gcode_shell_command connect_screen_sh]
command: /home/pi/klipper_config/screen.sh
timeout: 60.
verbose: True
[gcode_macro CONNECT_SCREEEN]
gcode:
RUN_SHELL_COMMAND CMD=connect_screen_sh
#!/usr/bin/env bash
adb connect 192.168.2.131:5555
adb shell am start x.org.server/.MainActivity
echo "sleeping"
sleep 15
echo "well rested"
DISPLAY=192.168.2.131:0 $HOME/.KlipperScreen-env/bin/python $HOME/KlipperScreen/screen.py &> /var/log/klipdroid.log &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment