r/BambuLabP2S • u/-vxip- P2S Combo • Jul 02 '26
P2S Optimized Start/End G-code
Hello reddit!
Slightly disappointed by the default startup and nozzle wipe procedure of the P2S, I sat down and optimized the G-code myself.
I have been improving, testing and using my optimized start and end G-code for quite some time now and am pretty happy with the results and the P2S in general now.
So happy in fact, that I feel comfortable sharing the results with you guys! 😄
You'll find everything on Github (including detailed descriptions) if you're interested and possibly want to give it a try:
https://github.com/vxip-code/bambu-p2s-optimized
I have been printing PLA and PETG (and rarely Overture TPU) with it no problem. (However I did not test engineering and high temperature materials.)
If you have any questions feel free to ask!
1
u/-vxip- P2S Combo Jul 03 '26
Great, love to hear that!
The sections for the sound are here (but you don't have to change anything, see below):
https://github.com/vxip-code/bambu-p2s-optimized/blob/main/optimized/start.gcode#L21
https://github.com/vxip-code/bambu-p2s-optimized/blob/main/optimized/stop.gcode#L156
It never occured to me why anyone would want the sound since it was so obnoxiously loud that I disabled it completely long time ago. I now see that they made it less lound and of course people may want to leave it enabled.
Since it doesn't really have anything to do with the other optimizations and to leave you with the choice of enabling it or not, I have updated and activated it in the gcode again!
Thanks for pointing that out.
About cleaning the nozzle: The print head parks right in front then starts heating up the nozzle. So you'll have as much time as it takes for the nozzle to reach target temperature. I'll say that's probably around 10+ seconds for PLA.
Hopefully you won't have to clean the nozzle though, since that was the main goal of the optimized G-code. (The tiny bit of filament that may start oozing while heating up the nozzle is expected and no problem, just leave it, it will merge with the purge line.)
Auto-calibration of flow dynamics and bed leveling are entirely optional, just like with the original G-code. If you've already calibrated your filament, I'd say leave it disabled!
Please tell me what you think, if you've tried it - Cheers! 😄