At this point the klipper daemon seems to be working and seeing the proper devices but I have not connected stepper motors because I haven’t got the klipperscreen add on working in order to control them. It hasn’t worked from the first boot. The HDMI output shows the klipper splash screen and says it’s initializing but never completes. Stopping the klipperscreen service returns the HDMI output to a console login. I have not been able to access the moonraker api yet either using
http://<printer_ip>:7125/printer/info
per the moonraker setup instructions. I believe both problems are related. The moonraker api never connects and the klipperscreen.log and daemon status both show the following websocket connection refused error 111:
Code: Select all
hominoid@odroid-c4:/etc/default$ sudo service klipperscreen status
● klipperscreen.service - KlipperScreen
Loaded: loaded (/lib/systemd/system/klipperscreen.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2021-05-08 14:57:39 EDT; 24s ago
Main PID: 2574 (xinit)
Tasks: 28 (limit: 3463)
Memory: 58.8M
CGroup: /system.slice/klipperscreen.service
├─2574 /usr/bin/xinit /usr/bin/python3 /usr/lib/python3.8/dist-packages/klipperscreen/screen.py --configfile /usr/lib/python3.8/d>
├─2575 /usr/lib/xorg/Xorg :0
└─2603 /usr/bin/python3 /usr/lib/python3.8/dist-packages/klipperscreen/screen.py --configfile /usr/lib/python3.8/dist-packages/kl>
May 08 14:58:03 odroid-c4 xinit[2603]: 2021-05-08 14:58:03,440 - KlipperScreen.KlipperWebsocket - DEBUG - Websocket error: [Errno 111] Connect>
May 08 14:58:03 odroid-c4 xinit[2603]: 2021-05-08 14:58:03,442 - KlipperScreen.KlipperWebsocket - DEBUG - Connection already closed
May 08 14:58:03 odroid-c4 xinit[2603]: 2021-05-08 14:58:03,931 - KlipperScreen.KlipperWebsocket - DEBUG - Attempting to reconnect
May 08 14:58:03 odroid-c4 xinit[2603]: 2021-05-08 14:58:03,932 - KlipperScreen.KlippyRest - DEBUG - Sending request to http://127.0.0.1:7125/a>
May 08 14:58:03 odroid-c4 xinit[2603]: 2021-05-08 14:58:03,943 - KlipperScreen.KlipperWebsocket - DEBUG - Websocket error: [Errno 111] Connect>
May 08 14:58:03 odroid-c4 xinit[2603]: 2021-05-08 14:58:03,945 - KlipperScreen.KlipperWebsocket - DEBUG - Connection already closed
May 08 14:58:04 odroid-c4 xinit[2603]: 2021-05-08 14:58:04,432 - KlipperScreen.KlipperWebsocket - DEBUG - Attempting to reconnect
May 08 14:58:04 odroid-c4 xinit[2603]: 2021-05-08 14:58:04,432 - KlipperScreen.KlippyRest - DEBUG - Sending request to http://127.0.0.1:7125/a>
May 08 14:58:04 odroid-c4 xinit[2603]: 2021-05-08 14:58:04,442 - KlipperScreen.KlipperWebsocket - DEBUG - Websocket error: [Errno 111] Connect>
May 08 14:58:04 odroid-c4 xinit[2603]: 2021-05-08 14:58:04,444 - KlipperScreen.KlipperWebsocket - DEBUG - Connection already closed
Code: Select all
#f = open("/home/pi/.moonraker_api_key", "r")
api_key = "" #f.readline()
#f.close()
@tobetter, do you have any suggestions? All the configuration files look correct. Is it possible for you to try a fresh copy of your os image and see if the klipperscreen service initializes and displays an interface? I even tried a vu7 and it looses video signal all together, like no display at all after the klipperscreen service starts. The printer.cfg file below has two corrections that should be in /usr/share/klipper/config/generic-odroidc4.cfg The heater_pin gpio# swap between the heated bed and extruder and the Odroid-N2/N2plus reference in the top comments changed to Odroid-C4.
/etc/default/moonraker.conf
/usr/lib/python3.8/dist-packages/klipperscreen/ks_include/KlipperScreen.conf