I have asked ChatGPT this but it wasted my time going on a ridiculous search for files that just didn’t exist so asking here if there is a way to disable waking the screen by keyboard only and ignoring the mouse? Bear in mind I use a Logitech keyboard and mouse that are connected with the same unified usb receiver.
The only solution I can find is disabling the unified receiver completely but I only want to disable the mouse.
# Disable wake for Logitech mouse on Unifying Receiver
ACTION=="add", SUBSYSTEM=="input", ATTR{name}=="Logitech *Mouse*", ATTR{device/power/wakeup}="disabled"