diff --git a/artillery-sidewinder-x2/README.md b/artillery-sidewinder-x2/README.md index aae2e24..fa95b7f 100644 --- a/artillery-sidewinder-x2/README.md +++ b/artillery-sidewinder-x2/README.md @@ -80,7 +80,8 @@ BED_MESH_OUTPUT | Brand | Filament desc | Printing temp | Build Plate temp | Retractation Distance | |-----------|---------------|---------------|------------------|-----------------------| -| Geeetech | Black | 205°C | 60°C | 0.75mm | +| Geeetech | Black | 200°C | 60°C | 0.75mm | +| Geeetech | White | 200°C | 60°C | 0.75mm | | Geeetech | Silk Silver | 205°C | 60°C | 0.75mm | ## PETG @@ -214,6 +215,47 @@ make flash FLASH_DEVICE=2e8a:0003 Once flashed, the board will automatically reboot and goes back in operation mode. +# OctoKlipper: Auto-reconnect printer after power-on +[Source](https://arnav.jain.se/2020/auto-restart-klipper-when-ender3-connected-to-pi/) by Arnav Jain. + +Start off by accessing Octopi using ssh. \ +Then create the `98-klipper.rules` file in the /etc/udev/rules.d/ folder: +``` +ssh octoprint +sudo touch /etc/udev/rules.d/98-klipper.rules +``` + +Retreive `idVendor` and `idProduct` for the Klipper MCU: +1. Retrieve Klipper MCU ID +``` +lusb +``` +![Find Klipper MCU ID](images/aswx2-find-mcu-id.png) + +2. Retrieve `idVendor` and `idProduct` using the Klipper MCU ID +``` +lsusb -v -d 1d50:614e | grep id +``` +![idVendor and idProduct](images/aswx2-klipper-mcu-idvendor-idproduct.png) + +Then add the following text into the `98-klipper.rules` file just created: + +1. Edit the `98-klipper.rules` file +``` +sudo nano /etc/udev/rules.d/98-klipper.rules +``` + +2. Add text (remove the `0x` at the begining of the IDs) +``` +## rule to restart klipper when the printer is connected via usb +SUBSYSTEM=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="614e", ACTION=="add", RUN+="/usr/bin/sudo -u pi /bin/sh -c '/bin/echo RESTART > /tmp/printer'" +``` + +Finally, re-load the udev rules: +``` +sudo udevadm control --reload-rules +``` + # Resources / Links * [Runout sensor bracket SIDEWINDER X2 by LeLudoLAb - Thingiverse](https://www.thingiverse.com/thing:5027268) diff --git a/artillery-sidewinder-x2/images/aswx2-find-mcu-id.png b/artillery-sidewinder-x2/images/aswx2-find-mcu-id.png new file mode 100644 index 0000000..0bedda6 Binary files /dev/null and b/artillery-sidewinder-x2/images/aswx2-find-mcu-id.png differ diff --git a/artillery-sidewinder-x2/images/aswx2-klipper-mcu-idvendor-idproduct.png b/artillery-sidewinder-x2/images/aswx2-klipper-mcu-idvendor-idproduct.png new file mode 100644 index 0000000..777d3ef Binary files /dev/null and b/artillery-sidewinder-x2/images/aswx2-klipper-mcu-idvendor-idproduct.png differ