"systemctl suspend" operation inhibited by "gnome-session-b"

Hello Friends

In a LAN for a laptop with Debian 13 normally I execute the following command:

  • sleep 10 && systemctl suspend

And it works fine

Since March to now the following scenario happened (therefore it is the 2nd time)

$ sleep 10 && systemctl suspend
Operation inhibited by "manueljordan" (PID 1728 "gnome-session-b", user manueljordan), reason is "user session inhibited".
Please retry operation after closing inhibitors and logging out other users.
'systemd-inhibit' can be used to list active inhibitors.
Alternatively, ignore inhibitors and users with 'systemctl suspend -i'.

Therefore the OS does not suspend

Questions

  1. Why happens this? (It about "gnome-session-b")
  2. Is possible replicate it just for experimental purposes?
  3. What is the best approach to fix it?

For question 3 I know the output offers 2 options but I want avoid any kind of complications

Thanks in advance

What’s the purpose of this exercise?

What’s the purpose of this exercise?

Learn and understood in detail “1” and thus apply “2” and “3” any times for testing as need it.