The disclosure relates to a method for operating a reciprocating piston engine having a valve controller, the method comprising five operating phases (Ph, Ph, Ph, Ph, Ph), namely a regular combustion engine operation (Ph), an overrun operation (Ph), a shutdown process (Ph), a restart (Ph), as well…