Instead of suspending, laptop logs off

After installing the Nvidia drivers my PC logs off instead of suspending. What can I do?

Try changing drivers. This is verified to occur with the Nvidia-460 driver, for example.

As I recall it from the other thread, @Nicolaco_08 is using kernel and driver that is old due to old laptop?

Correct! I'm using the 5.4 kernel with 390 drivers.