"so which mechanism switch the solenoid to merge?"
The ACC terminal , off when key is off , and off during start sequence , but ON during run.
It is also on in ACC position, so dockside once every few weeks simply leaving the key in Acc will allow the start batts to see the battery charger.
KISS