# Filament runout

**URL:** <https://klipper.discourse.group/t/filament-runout/1940>\
**Category:** General Discussion\
**Created:** [February 1, 2022, 1:33pm UTC](https://klipper.discourse.group/t/filament-runout/1940 "2022-02-01T13:33:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ntwifi](https://avatars.discourse-cdn.com/v4/letter/n/f07891/32.png) [@Ntwifi](https://klipper.discourse.group/u/Ntwifi)\
**Post date:** [February 1, 2022, 1:33pm UTC](https://klipper.discourse.group/t/filament-runout/1940/1 "2022-02-01T13:33:35Z")

</div>

I have a large print which ran out of filament in the middle of the night, Ireloaded filament and pressed the resume button. It immediately came back saying home axis first and cleared screen like it had failed. I couldn’t rehome anyway because print was in the way, it still has cordinates in it where it stopped, so is there a way to restart? What should I have done? Other than standing there and watching how do I keep this from happening?

---

<div class="post-metadata">

**Author:** ![TGC](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@TGC](https://klipper.discourse.group/u/TGC)\
**Post date:** [February 1, 2022, 8:37pm UTC](https://klipper.discourse.group/t/filament-runout/1940/2 "2022-02-01T20:37:36Z")

</div>

Add to filament\_switch\_sensor section:

```auto
pause_on_runout: False
runout_gcode:
    PAUSE

```

Documentation is wrong. Pause\_on\_runout don’t call PAUSE. It directly call default pause function. Then you call overriden resume and mess gcode state.

---

<div class="post-metadata">

**Author:** ![Ntwifi](https://avatars.discourse-cdn.com/v4/letter/n/f07891/32.png) [@Ntwifi](https://klipper.discourse.group/u/Ntwifi)\
**Post date:** [February 1, 2022, 8:46pm UTC](https://klipper.discourse.group/t/filament-runout/1940/3 "2022-02-01T20:46:03Z")

</div>

You are awsome

Thanks

---

<div class="post-metadata">

**Author:** ![Ntwifi](https://avatars.discourse-cdn.com/v4/letter/n/f07891/32.png) [@Ntwifi](https://klipper.discourse.group/u/Ntwifi)\
**Post date:** [February 1, 2022, 8:48pm UTC](https://klipper.discourse.group/t/filament-runout/1940/4 "2022-02-01T20:48:07Z")

</div>

> [@TGC](#):
>
> ```auto
> pause_on_runout: False
> runout_gcode:
> PAUS
> 
> ```

So im guessing there is no recovery on present print, which is ok if i5 is.
