M600 in OctoPrint - How to?

What is the problem?

Using Marlin 2.0.5.x 32bit on a MKS SGENL V2 mainboard.
OctoPrint Version 1.4.2

I have M600 in my gCode on Layer 50
The printer pauses, moves the head to the park position and retracts the filament.
I put in the new filament but cannot initiate a Load or Resume the print.
The Control Tab is completely Greyed out and the Terminal Tabs just shows:
"echo:busy: paused for user"

What did you already try to solve it?

Googled and Googled.
Found one page in this forum that talked about enabling these lines in configuration_adv.h

#define ACTION_ON_PAUSE "pause"
#define ACTION_ON_RESUME "resume"

But those lines do not exist in Marlin 2.0.5.x in either configuration.h or configuration_adv.h

Complete Logs

"echo:busy: paused for user"

Additional information about your setup

OctoPrint v1.4.2
OctoPi v0.17.0
Raspberry Pi 3 Model A+ Rev `,0

Thanks for any/all help

Well, now it sorta almost works, but not really:

I found and enabled:

#define HOST_ACTION_COMMANDS

In configuration_adv.h

And that enables the "ACTION_ON_PAUSE" commands now found in host_actions.h

But now...

When I start a print, the bed heats up and then OctoPi switches the Print button to a RED "Restart" button and the Pause button changes to 'Resume'

Once I click on 'Resume' it finishing heating the hot-end and then starts printing.

Then when it gets to the M600 in the GCode, the printer pauses and retracts the filament, but the "Print" button in OctoPi is still depressed, and Pause and Cancel buttons are grayed out as are all the controls on the 'Control' tab

And the Terminal tab just shows:

Recv: echo:busy: paused for user
Recv: echo:busy: paused for user
[...]
Recv: echo:busy: paused for user
[...]
Recv: echo:Press button to heat nozzle
Recv: echo:busy: paused for user
[...]

And the hot-end shuts off because I can't do a dam thing...

Oddly, the 'State:" is Pausing

Argh!!

So, I enabled these in configuration_adv.h:

#define HOST_ACTION_COMMANDS          // DaHai : Enabled for OctoPrint M600 Support
#if ENABLED(HOST_ACTION_COMMANDS)
  #define HOST_PROMPT_SUPPORT         // DaHai : Enabled for OctoPrint M600 Support
#endif

And now it pops up with 'Print Paused' when it hits the M600 with a 'Dismiss' button.

I load the new filament and click on 'Dismiss'

Nothing happens

Then it says print head heater timeout, with a 'Reheat' button. So I click on it.

The print head continues to cool and the Terminal still shows:

Recv: echo:busy: paused for user

Is there ANY Documentation ANYWHERE on how to get M600 working with OctoPrint????

I think there was a bug on Marlin side that doesn't send the necessary to host command to OctoPrint to automatically resume when you press the buttons. If I remember correctly someone had submitted a PR to resolve that already, so might be in Marlin Bugfix branch.

I found this, but it refers to the M600 event being trigger due to the filament sensor detecting end of filament. And it was closed due to inactivity with no resolution:

I wonder if it's actually related to this issue...

That's a possibility. And it looks like it's in 2.0.6, but I have 2.0.5 from the makerbase fork as support for the mks sgenl V2 is not yet in the Marlin main branch. A PR was submitted, but not yet integrated.

So I'm going to patch my version with those changes and see if it helps.

Nope. That change is already in my code. Looks like MakerBase has been keeping their fork up-to-date. So that fix, being already implemented, doesn't affect this issue.

Any news on this issue ?

A bug was solved here: https://github.com/OctoPrint/OctoPrint/issues/3699