P2S: How to stop "optimised" G-code from purging filament?

Hello everyone, I’ve gone down a brain-breaking rabbit hole upon discovering (thanks to failing a purge calibration model) that the P2S has “optimised” default G-code that mandates an 𝑥 amount of flushed filament on every print start up & filament change. This results in a failed calibration gauge as the printer poops the material intended for the model:

I have the P2S Combo & this occurs even when Project Filament > Flushing Volumes are set to ‘0’. I’ve successfully tested a fix for the purge on P2S start (Step 2) when using the same filament across prints, but I also want to eliminate purging for filament changes so that everything is flushed into the calibration model & I can put them all in a neat lil’ tray.

I know that the G-code responsible for this flushing process is located in: Bambu Studio > Printer Settings > Machine gcode > Change filament G-code. My problem is that the P2S flushing G-code on filament change is different from P1S/other models. Any solution for reducing filament waste does not address these purges.

I’ve seen other users who end up stuck at this step. If I had to guess, it may be executing between; VFLUSH_START to ; VFLUSH_END:

I’m stumped for a solution short of becoming proficient in the G-code used. I eventually want to optimise my tubing & G-code for loading/unloading, filament changeovers, nozzle heating when idle, etc… so this is an inevitability, however I’m also still fairly new to 3D printing (:smiling_face_with_tear:). The P2S uses VG1, so I started looking into the similar G1 E1() F() function in other printer models but the reality is I’m out of my depth when it comes to testing these functions right now.

My only other option is contacting Bambu Labs, though from some of the posts on this forum, that might take as long as learning it myself. Use cases where I think a solution will benefit, for anyone in the same boat:

  • Using calibration models to fine tune filament purges for tricky or pigmented colours e.g. purge calibration gauges or ‘gradient’ prime towers.
  • Incorporating the filament gradient from colour changes in multi-colour prints e.g. flushing into object/supports.
  • Anything ‘zero waste’ for the P2S, i.e. actual optimisation of filament profiles & print presets.
  • Satisfying users whose brains are tickled by minutely accurate printer calibrations.

I just want to calibrate my filament purges without this wasteful “optimisation” in the way. Someone with the tenacity for code-level tinkering, please help!

Running Bambu Studio v2.5.0.66 & firmware v1.1.1.0.

5 Likes

Any updates? Same issue. I tried a lot of the same things.

1 Like

I’ve got the same issue on the X2D. Literally tried everything I can think of…

It’s sooooo stupid. Turn off auto calculate purge in settings. There’s 3 options, auto, color change, off. What it’s SUPPOSED to do is just calculate the purge numbers for you, like when you change a filament it’ll auto calculate it. But for some reason with it on, it ignores the values when set to 0. Not sure if it ignores all the values, but for sure it will ignore low values (I tired 0-10mm3 before figuring this out)

1 Like

Bambu needs to fix this. I’m seeing that people with the H2D we’re having the same problem back in June 2025. Apparently they still haven’t figured it out. I know I’m just being stingy with the purge waste, but I’d like the option to optimize them for my own satisfaction. Like why are the settings even there if they are totally ignored by the printer??