OK, so first a confession: I'm blundering mostly in darkness here and after delving beyond my depth into something like this it's easy to forget most of the details after a week or two. So I've tried to document what I'm doing in the two files just created. First, after imagining some comprehension of the Feb 10 at 9:03 post by cipricus here, I created this file:
sudo nano .toggleWakeFromSuspendInBoot.sh
# This file contains the device name(s) of anything you want Disabled or Enabled,
# for waking the PC from Suspend. For example, if your PC wakes from Suspend any
# time you touch the mouse you can put that device name in the line below. To get
# get a list of device names, copy and paste this line into in the Terminal app:
# cat /sys/bus/usb/devices/1-8/power/wakeup
# Any line with the word "enabled" contains the name of a device that will wake
# your PC from Suspend. For example, this line on a Dell PC running Ubuntu Mate
# 20.04.1 indicates the current wake from Suspend status of both the USB keyboard
# and a bluetooth mouse plugged into a different USB port:
# XHC S0 *enabled pci:0000:00:14.0
# Note that this status is unaffected by the BIOS setting chosen by the user, for
# selecting whether USB devices will wake the PC from Suspend. This status may be
# toggled between enabled and disabled with this line in the Terminal app (for
# the XHC device in this example):
# sudo sh -c "echo XHC > /proc/acpi/wakeup"
# After testing to ensure this is the device that prevents waking from Suspend as
# desired when toggled to "disabled" status, the following line was added without
# the hashtag start on every line in this description. This way the line is sent
# to the PC at every Startup or Restart, thus disabling the USB keyboard and
# mouse from waking the PC. More such lines may be added, to enable or disable
# any other devices in the "cat /sys/bus/usb/devices/1-8/power/wakeup" list.
# Note that this file is sent to the PC at Startup by the file named:
# /etc/systemd/system/wakeup-events.service
echo XHC > /proc/acpi/wakeup
My hope is that since I sometimes turn on dot files in Nemo when rummaging around my Home directory, this might help a forgetful future self by occasionally seeing the file or finding it via a Nemo (aka Files) search for "wake" as I've done during initial struggle with this issue. Since my PC is single user, you may want a different location. Anyway, I then created the file to call that one based on minimal understanding of cipricus' excellent post:
sudo nano /etc/systemd/system/wakeup-events.service
[Unit]
Description=Run script toggling wake from Suspend devices during system start
[Service]
Type=oneshot
ExecStart=/bin/bash ~/.toggleWakeFromSuspendInBoot.sh
[Install]
WantedBy=multi-user.target
Now I'm going to test all this and report back...