如何禁用特定设备以将计算机从挂起状态唤醒?

我想在移动鼠标时禁止从暂停唤醒。

I am aware of the file /proc/acpi/wakeup. I can disable one particular pci and thus disable a wakeup by the mouse. The problem is that this also disables wakeup by a keyboard which is not desired. Both the mouse and the keyboard are wireless devices with two separate wifi dongles connected to two different usb ports in the machine (no other usb ports available, so preferably the solution should work even when they are both plugged in one USB hub). When I run lshw I can see both devices listed under the same pci which seems to be the problem.

Is there anything that can be done to achieve this? Any other way how to disable a device from waking up the machine? I haven't found anything useful in the BIOS.

如果该系统很重要,则它是带有KDE桌面的Debian Bullseye。