Unable to wake Intel NUC after installing Debian 12

The root login screen is not available on an Intel NUC13 after the sleep timeout expires for no activity. Unable to wake from keyboard or mouse. The only way to get back to the root login screen is via ssh or by rebooting the system. This has not happened previously with CentOS or Sang7 installations.

Is your keyboard/mouse connected via direct USB or an interim wireless dongle?

either way, when you get it back, mask the sleep functions, they don’t belong on a server which NEEDS to be in S0

systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

and check F2

My keyboard and mouse are both corded USB devices.
I am somewhat familiar with CentOS and the cli with Sangoma7. I am really new at Debian. I assume that the information you sent to me is comprised of multiple commands. Please advise if this should be entered as a single command.
“systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target”

I have been reading a bit more and it seems like I need to enter 4 commands like the following:
systemctl mask sleep.target
systemctl mask suspend.target
systemctl mask hibernate.target
systemctl mask hybrid-sleep.target

I really appreciate your feedback as I am being forced to learn this more quickly than I planned.

Actually better done on the NUC bios, (F2) on boot, disable S1 or above, it should never go to sleep and all USB ports of any color will always be listened to . . .

No, systemctl will concatenate all the commands just as I posted, but you can do them one by one if you feel more comfortable with that

man systemctl

I needed to make a change in bios that allowed me to wake the USB port, then it was able to wake the NUC.