# Can't save hotend PID autotune after deleting from bottom of printer.cfg

**URL:** <https://klipper.discourse.group/t/cant-save-hotend-pid-autotune-after-deleting-from-bottom-of-printer-cfg/8676>\
**Category:** General Discussion\
**Created:** [May 30, 2023, 10:00am UTC](https://klipper.discourse.group/t/cant-save-hotend-pid-autotune-after-deleting-from-bottom-of-printer-cfg/8676 "2023-05-30T10:00:49Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tooks](https://avatars.discourse-cdn.com/v4/letter/t/7bcc69/32.png) [@Tooks](https://klipper.discourse.group/u/Tooks)\
**Post date:** [May 30, 2023, 10:00am UTC](https://klipper.discourse.group/t/cant-save-hotend-pid-autotune-after-deleting-from-bottom-of-printer-cfg/8676/1 "2023-05-30T10:00:49Z")

</div>

### Basic Information:

Printer Model: Voron 2.4  
 MCU / Printerboard: Fysetc Spider  
 `klippy.log`  
[klippy.log](https://klipper.discourse.group/uploads/short-url/nsnahasN86aizcmyFmOtRe43owY.log) (5.1 MB)

Alright so I just tore down my V2.4 with around 5000 hours on it and did the R2 upgrade, as well as CANBus. In terms of firmware, I just ran the original instance of Klipper and Mainsail that I installed originally and upgraded all packages etc. through the web UI.

Like an idiot, I deleted alot of stuff from the very bottom of the printer.cfg file thinking I wouldn’t need it i.e. where it says ‘DO NOT EDIT THIS BLOCK OR BELOW’ such as bed meshes, skew correction values, etc. I also deleted my hotend PID tuning info from here, and now I’m having issues when I try to SAVE\_CONFIG after PID autotuning. The heatbed is fine, because I guess I didn’t delete this, but once I PID autotune the hotend and try to save I get the following error:

SAVE\_CONFIG section ‘extruder’ option ‘control’ conflicts with included value

Have I broken the SAVE\_CONFIG function for my hotend PID autotuning, as well as all the other stuff that was there that got deleted i.e. aforementioned skew correction. bed mesh, etc? Do I need to reinstall Klipper? No matter how much I try to manually uncomment out the PID values in my extruder section I can’t get the new values to autosave.

For now, I’ve just been pasting the values back in manually, but that’s kinda annoying long-term.

TIA, klippy log is attached.

---

<div class="post-metadata">

**Author:** ![EddyMI3D](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/eddymi3d/32/1981_2.png) [@EddyMI3D](https://klipper.discourse.group/u/EddyMI3D)\
**Post date:** [May 30, 2023, 10:04am UTC](https://klipper.discourse.group/t/cant-save-hotend-pid-autotune-after-deleting-from-bottom-of-printer-cfg/8676/2 "2023-05-30T10:04:24Z")

</div>

Hello @Tooks !

Can you upload the `printer.cfg` please?

---

<div class="post-metadata">

**Author:** ![Tooks](https://avatars.discourse-cdn.com/v4/letter/t/7bcc69/32.png) [@Tooks](https://klipper.discourse.group/u/Tooks)\
**Post date:** [May 30, 2023, 10:18am UTC](https://klipper.discourse.group/t/cant-save-hotend-pid-autotune-after-deleting-from-bottom-of-printer-cfg/8676/3 "2023-05-30T10:18:11Z")

</div>

Hey @EddyMI3D, thanks for the quick reply!

Sure, I’ll attached that here:  
[printer.cfg](https://klipper.discourse.group/uploads/short-url/jqmxV4oqMZgE4eA5wlIOxjb1DIS.cfg) (19.2 KB)

I can confirm, bed mesh ISN’T broken, you’ll see that it saved to the correct area, but I just tried to PID autotune the hotend again and no dice.

---

<div class="post-metadata">

**Author:** ![EddyMI3D](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/eddymi3d/32/1981_2.png) [@EddyMI3D](https://klipper.discourse.group/u/EddyMI3D)\
**Post date:** [May 30, 2023, 10:20am UTC](https://klipper.discourse.group/t/cant-save-hotend-pid-autotune-after-deleting-from-bottom-of-printer-cfg/8676/4 "2023-05-30T10:20:59Z")

</div>

Un-remark these lines in your `[extruder]` section and try again:

```auto
#control: pid
#pid_kp: 21.788
#pid_ki: 2.046
#pid_kd: 58.012

```

---

<div class="post-metadata">

**Author:** ![Tooks](https://avatars.discourse-cdn.com/v4/letter/t/7bcc69/32.png) [@Tooks](https://klipper.discourse.group/u/Tooks)\
**Post date:** [May 30, 2023, 10:27am UTC](https://klipper.discourse.group/t/cant-save-hotend-pid-autotune-after-deleting-from-bottom-of-printer-cfg/8676/5 "2023-05-30T10:27:27Z")

</div>

Same issue unfortunately, very weird

---

<div class="post-metadata">

**Author:** ![Sineos](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/sineos/32/18_2.png) [@Sineos](https://klipper.discourse.group/u/Sineos)\
**Post date:** [May 30, 2023, 11:40am UTC](https://klipper.discourse.group/t/cant-save-hotend-pid-autotune-after-deleting-from-bottom-of-printer-cfg/8676/6 "2023-05-30T11:40:34Z")

</div>

See if this helps: [SAVE\_CONFIG section 'bltouch' option 'z\_offset' conflicts with included value](https://klipper.discourse.group/t/save-config-section-bltouch-option-z-offset-conflicts-with-included-value/6640)

---

<div class="post-metadata">

**Author:** ![Tooks](https://avatars.discourse-cdn.com/v4/letter/t/7bcc69/32.png) [@Tooks](https://klipper.discourse.group/u/Tooks)\
**Post date:** [May 30, 2023, 8:51pm UTC](https://klipper.discourse.group/t/cant-save-hotend-pid-autotune-after-deleting-from-bottom-of-printer-cfg/8676/7 "2023-05-30T20:51:30Z")

</div>

No luck unfortunately, there are no other instances in of PID control for the hotend, and also no luck if I try to just paste new values at the very bottom in the SAVE\_CONFIG section

---

<div class="post-metadata">

**Author:** ![Sineos](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/sineos/32/18_2.png) [@Sineos](https://klipper.discourse.group/u/Sineos)\
**Post date:** [May 30, 2023, 8:52pm UTC](https://klipper.discourse.group/t/cant-save-hotend-pid-autotune-after-deleting-from-bottom-of-printer-cfg/8676/8 "2023-05-30T20:52:15Z")

</div>

Please post your entire cfg files

---

<div class="post-metadata">

**Author:** ![Tooks](https://avatars.discourse-cdn.com/v4/letter/t/7bcc69/32.png) [@Tooks](https://klipper.discourse.group/u/Tooks)\
**Post date:** [May 30, 2023, 9:10pm UTC](https://klipper.discourse.group/t/cant-save-hotend-pid-autotune-after-deleting-from-bottom-of-printer-cfg/8676/9 "2023-05-30T21:10:01Z")

</div>

Problem solved guys - I went back and checked my canbus-ebb36.cfg folder and there was till some heater\_extruder PID control information uncommented that Klipper was not able to overwrite with the SAVE\_CONFIG function.

If anyone is having a similar issue, check all your .cfg files.

Appreciate the help from all.

---

<div class="post-metadata">

**Author:** ![NAPCAL](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/napcal/32/1794_2.png) [@NAPCAL](https://klipper.discourse.group/u/NAPCAL)\
**Post date:** [October 25, 2024, 5:13pm UTC](https://klipper.discourse.group/t/cant-save-hotend-pid-autotune-after-deleting-from-bottom-of-printer-cfg/8676/10 "2024-10-25T17:13:16Z")

</div>

The issue is if there are two tune settings for the same heater, Klipper reads them from the top of the .cfg file until it finds the first set commented or not commented and ignores the rest for the same heater.

I would assume Klipper builds one cfg file in its memory starting with the printer.cfg. If it finds an include, that file is inserted at that line (so these entries will be before the rest of the printer.cfg). If no other includes are found, then the rest of the printer.cfg will be appended until the end of the file.

Remove, leaving only one PID settings for all .cfg files for each heater PID setting.

SAVE will put the tune setting at the bottom of the printer.cfg with comment # in front of those settings, along with any saved mesh.

---

<div class="post-metadata">

**Author:** ![EddyMI3D](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/eddymi3d/32/1981_2.png) [@EddyMI3D](https://klipper.discourse.group/u/EddyMI3D)\
**Post date:** [October 25, 2024, 5:25pm UTC](https://klipper.discourse.group/t/cant-save-hotend-pid-autotune-after-deleting-from-bottom-of-printer-cfg/8676/11 "2024-10-25T17:25:35Z")

</div>

Thanks for your input @NAPCAL !

But there is no reason to dig out a solved thread that is over one year old.

---

<div class="post-metadata">

**Author:** ![EddyMI3D](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/eddymi3d/32/1981_2.png) [@EddyMI3D](https://klipper.discourse.group/u/EddyMI3D)\
**Post date:** [October 25, 2024, 5:26pm UTC](https://klipper.discourse.group/t/cant-save-hotend-pid-autotune-after-deleting-from-bottom-of-printer-cfg/8676/12 "2024-10-25T17:26:09Z")

</div>


