P2S nozzles not cooling down after print

Yes, G-code must be identical for any users, whether it’s on Windows, Mac, or any other system. It seems that Bambu works with different teams depending on the OS. That’s normal. But the fact that the G-code differs is much less so.:face_with_thermometer:

More puzzled than alarmed. I have already “fixed” it on my Windows machine by creating a custom profile using the Finish G-CODE from my Mac. Still interested to know why/how this difference has occured and why it seems to be inconsistent for different systems and users.

(Also, it is not a Firmware issue as far as I can see, but a Bambu Studio P2S Machine config issue - I would assume that rolling back to previous version of Bambu Studio would indeed fix it, but I haven’t tested this)

@Hired_Goons Rolling back Studio fixed it for me yesterday.

@R3d-Five Respectfully, rolling back firmware had zero impact on this issue. Manually editing gcode or rolling back studio work, but this has no impact on Handy, or for those who aren’t versed enough to take either action.

My bad. G-code. I knew that.

i did a rollback on bambulab studio aswell but it did not work for me

@Christian_Huber Very strange, and unfortunate to hear. Which version did you try?

Assume your End G-Code is the same as my (broken) PC version and not the working version I have on my Mac then?

Both versions below. I am not a G-Code expert, but assume there is some custom aspect in between the initial instructions to turn of heating/fan elements and the AMS filament retract section which is turning the nozzle back on in the first example?

Windows PC Version:

;======== P2S end gcode ==========
;===== 2026/04/01 =====
M400 ; wait for buffer to clear
G92 E0 ; zero the extruder

G90
G1 Z{max_layer_z + 0.4} F900 ; lower z a little
M1002 judge_flag timelapse_record_flag
M622 J1
G150.3
M400 ; wait all motion done
M991 S0 P-1 ;end smooth timelapse at safe pos
M400 S5 ;wait for last picture to be taken
M623 ;end of "timelapse_record_flag

G90
G1 Z{max_layer_z + 10} F900 ; lower z a little

M104 S0 ; turn off hotend
M140 S0 ; turn off bed
M106 S0 ; turn off fan
M106 P2 S0 ; turn off remote part cooling fan
M106 P3 S0 ; turn off chamber cooling fan
M106 P10 S0 ; turn off left aux fan

; pull back filament to AMS
M620 S65535
T65535
G150.1 F8000
M621 S65535

G150.3
M400 ; wait all motion done
M17 S
M17 Z0.4 ; lower z motor current to reduce impact if there is something in the bottom

Mac Version:

;======== P2S end gcode ==========
;===== 2026/04/01 =====
M400 ; wait for buffer to clear
G92 E0 ; zero the extruder

G90
G1 Z{max_layer_z + 0.4} F900 ; lower z a little
M1002 judge_flag timelapse_record_flag
M622 J1
G150.3
M400 ; wait all motion done
M991 S0 P-1 ;end smooth timelapse at safe pos
M400 S5 ;wait for last picture to be taken
M623 ;end of "timelapse_record_flag

G90
G1 Z{max_layer_z + 10} F900 ; lower z a little

M140 S0 ; turn off bed
M106 S0 ; turn off fan
M106 P2 S0 ; turn off remote part cooling fan
M106 P3 S0 ; turn off chamber cooling fan
M106 P10 S0 ; turn off left aux fan

; pull back filament to AMS
M620 S65535
T65535
G150.1 F8000
M621 S65535

G150.3
M104 S0 ; turn off hotend
M400 ; wait all motion done
M17 S
M17 Z0.4 ; lower z motor current to reduce impact if there is something in the bottom

Also happening to me. Tried printing from Mac app, Windows app, and Mobile iOS app, all with the same results

Below is the Windows 04/15/2026 hotfix code that was installed 12:30am pacific, which apparently may have broken other things for other users per @BitingChaos on Github: Nozzle not cooling after print on P2S · Issue #10235 · bambulab/BambuStudio · GitHub

They have come to a similar conclusion that the AMS code interferes with the M104 command.

;======== P2S end gcode ==========
;===== 2026/04/01 =====
M400 ; wait for buffer to clear
G92 E0 ; zero the extruder

G90
G1 Z{max_layer_z + 0.4} F900 ; lower z a little
M1002 judge_flag timelapse_record_flag
M622 J1
    G150.3
    M400 ; wait all motion done
    M991 S0 P-1 ;end smooth timelapse at safe pos
    M400 S5 ;wait for last picture to be taken
M623  ;end of "timelapse_record_flag

G90
G1 Z{max_layer_z + 10} F900 ; lower z a little

M140 S0 ; turn off bed
M106 S0 ; turn off fan
M106 P2 S0 ; turn off remote part cooling fan
M106 P3 S0 ; turn off chamber cooling fan
M106 P10 S0 ; turn off left aux fan

; pull back filament to AMS
M620 S65535
T65535
G150.1 F8000
M621 S65535

G150.3
M104 S0 ; turn off hotend
M400 ; wait all motion done
M17 S
M17 Z0.4 ; lower z motor current to reduce impact if there is something in the bottom

Good to see some consensus on the “why&what” then.

Still leaves me baffled as to where my Macbook version has got/retained the correct (or at least working) code here, given the same date version and Bambu Studio version

:smiley:

I can only assume that your Mac got the updated gcode file.

I have the original/broke gcode on my Mac.

The Mac & Windows version used the same (bad) file from source (where M104 is done before the AMS commands):

I just checked my G-Code and even though im on Windows it looks like to be the Correct G-Code

i am very confused at this point

Same here. This morning nozzle stuck in 38. After the Bambu slicer update.

Having the same issue after update

Looks like version 2.6.0.51 of Bambu Studio has just been released which apparently addresses this issue.

yeah i also got greeted with this just right now

Latest Bambu Studio update today resolves this issue. End gcode sequence has M104 command moved to after AMS filament retract on default profiles. A tiny bug, but some of the default profiles disappeared until I selected a different printer, then went back to the P2S.

Cheers!

I completely uninstalled the previous version before reinstalling the hotfix
version. 

No problems... 

I just finished two prints, everything is working perfectly again on my P2S.
 

:blush:

Ive got now the very latest Studio version, and im printing with PLA Tough, is its temps normally set at 245c for the nozzle? I just looked in the slicer, and thats its default, standard PLA is still 220c.

Nozzle temp 220 to 250 according to the specs

PLA is 190 - 230 °C