r/BambuLab • u/MediocreHornet2318 • Apr 07 '26
General Troubleshooting/Help! P2S first layer under extrusion -- root cause found after 68 test prints
After extensive testing I found the root cause of the random first layer under extrusion that many P2S owners are seeing. Here is what is happening and how to fix it.
The root cause
After the nozzle cleaning sequence the printer does a center bed probe to establish the z offset for that print. This probe uses an additive trim system -- it adjusts relative to the previous value rather than setting an absolute position. If any filament is on the nozzle tip at that moment the probe returns a wrong value and that error compounds across prints causing random under extrusion. This is why it felt random and why adjusting flow ratio or z offset didn't always stick -- the trim was drifting a different amount every print depending on how much residue was on the nozzle at that specific moment.
Why the stock gcode makes the nozzle dirty
Stock gcode sends the nozzle to the metal cleaning plate while still near full printing temp. The warm soft filament strand deforms and curls back onto the nozzle instead of cutting cleanly. The fix is cooling to 140C first so the strand is near solid before hitting the plate, creating a clean break point on contact. If any filament is left it's removed by the wipes at the silicone brushes as the cooler parts snag better.
The fix -- replace this in your start gcode:
G91
G1 Y-16 F12000 ; move away from the trash bin
G90
M400
M104 S{nozzle_temperature_initial_layer[initial_no_support_extruder]-80} A
With this:
G150.3 ; park over trash bin
M106 P1 S255 ; fan on to speed cooldown
M109 S140 A ; wait blocking for nozzle to reach 140C
M106 P1 S0 ; fan off
G91
G1 Y-16 F12000 ; move to staging position
G90
M400
Also do a maintenance bed level from the printer menu after making this change to reset any accumulated drift.
Full write-up: https://github.com/bambulab/BambuStudio/issues/8851#issuecomment-4195587660
19
u/Iamz01 Apr 07 '26
Interesting. I haven't noticed the random underextrusion problem, but I have definitely seen the plastic oozing just before wiping and the residue after the wipe.
9
u/Reverse_Entropy_ Apr 07 '26
I'm glad you figured it out. So if I understand correctly, cleaning the nozzle tip and continued calibration with a clean nozzle will allow for the calibration to self correct over time, but modifying the gcode provides a better self clean and will mitigate the root cause that began propagating the error in the first place?
3
u/stonkytonkys Apr 07 '26
Great find. I’m wondering if this is also the cause for first layer under extrusion on the H2D and H2C as well.
3
u/EpicInki Apr 07 '26 edited Apr 07 '26
Wait is this what causes the random dips on the bottom layer perhaps? I made some light boxes and some holes exist
2
u/Juno_keebs Apr 07 '26
Going to try this as I occasionally have issues.
I literally just replace those 6 lines with your 8 lines exactly as described?
2
u/Gutokoro Apr 07 '26
Does this apply only to the first layer? I ask because I saw random under extrusion mid print
2
u/kawasaki22db Apr 09 '26
Could this cause a first layer adhesion issue also? Total noob here that occasionally will have a bad adhesion even after cleaning the plate. I had chalked it up to bad models but haven't been able to definitely narrow it down. I even did the glue stick on my plate after cleaning and still failed a first layer multiple times on a model today.
2
u/XZlayeD Apr 09 '26
Has the new p2s firmware done anything to counter this issue?
17
u/Legitimate-Cat-8323 Apr 07 '26
What are the chances of getting bambulab attention to apply this fix on next releases?
8
u/Dj_double_you Apr 07 '26
Amazing write up and test process. Bravo. 👏l
I have been losing mind calibrating my printer, getting it dialed and then all of a sudden first layer is shit or top layer looks horrible. I am new to printing so I wasn’t sure wtf was going on. If this fixes it I will be pumped.
Sounds very plausible to me.
Will test and report back.
5
u/Vverg X2D Combo + AMS HT Apr 07 '26
I noticed today as well with PETG HF on the display cover these gaps between lines on my Glacier plate. With the PEI one it was not that obvious, so didnt really care. But with a smoother plate its definitely noticeable.
So I just changed the G code and did the calibration and so far it does seem to have been improved. I still dont have a 100% perfect layer, but it definitely is better now. Not sure if its just matter of luck, but I time will tell if my next prints are also better.
1
u/dexmox Apr 07 '26
My issue was offset in start gcode for petg is set to +0.01 and my perfect layers are at -0.025, consistent prints now. If ur nozzle probes while unclean yes you expect it to be wrong, otherwise what am I missing op ?
1
u/UpriseZeus Apr 07 '26
If I am going to switch print plates, should I run a maintenance bed level calibration as well? Or can I just swap plates from one print to another without doing your recommended maintenance calibration ?
1
u/snileyryder Apr 08 '26
Would this apply to other P series printers or just P2S?
1
u/OddElder Apr 14 '26
First, just want to confirm that the M104 command at the bottom of the original GCode is intentionally left off of second code block, and should not be reimplemented?
Second, is it possible to put this GCode somewhere in the slicer settings to permanently affect all prints? I’m aware you can edit individual files, but is there somewhere I can put it to apply to all files in some way? Seems time consuming and complicated to have to manually fix this on every single print—since Bambu doesn’t want to acknowledge the information you put up on the GitHub issue.
3
u/KashEsq H2C & P2S Apr 07 '26
I only experience nozzle build up when printing PETG. So I've gotten into the habit of pulling out the build plate after a print finishes then while it's cooling I pull off the silicone sock, heat the nozzle to 200°C, and manually scrub it with a brass brush to remove all the PETG build up. With this method I never experience any first layer issues.
2
u/fwburch2 P2S + AMS2 Combo Apr 07 '26
Very interesting
2
u/nm3109 Apr 07 '26
I'm glad someone else found this too. I've mentioned it a few times on here to folks that this is a bed leveling issue and that a re do of the bed leveling solves it, but I've never had time to really dive into the code on it. Thanks for the write up!
1
u/Livid_Strategy6311 P2S + AMS2 Combo Apr 07 '26
Tag
1
u/CarolTheCleaningLady Apr 07 '26 edited Apr 07 '26
Interesting, cant say i've noticed any issues myself but i will pay more attention. Just throwing this into the mix as well, take a look at the following post to make your printer quieter and quicker start up https://www.reddit.com/r/BambuLab/comments/1s8kneu/p2s_quirks_and_poorly_optimized_firmware_settings/
I noticed the noise level is way less and the whole unit doesnt move about as much when running at the standard speed setting.Bambu really need to review their start G-code
1
u/DevNullLife Apr 07 '26 edited Apr 08 '26
I've tried the z offset "trick", it helps but it doesnt fix my problem completely, i'll try your fix and see if it works better than changing the z offset.
My P2S has been giving me problems since day 1 .... i'm seriously regretting not buying a K2 instead.
EDIT:
Nop, didn't fix, back to editing z offset on the start gcode.
1
u/karadulis Apr 09 '26
Following this.