try going to control centre -hardware - power settings
in there - you can configure, what settings you want.
if you are using a laptop, set to hibernate, when the lid is closed.
if a desktop, set it to operate when the screen saver cuts in.
what you can do, does depend on what Mint version, you use.
Please edit your original post title
to include [SOLVED] - when your problem is solved!