The effect of weak external magnetic fields on the conditions for implementing optical bistability in the region of exciton absorption of layered semiconductors has been theoretically investigated. By the example of the 2 H polytype of lead diiodide, it is shown that, changing the strength of an external magnetic field, one can form conditions for implementing bistability and effectively control the position and sizes of the hysteresis loop of exciton absorption.