How can I disable the mouse from waking my monitor?

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.

The mouse should have a power switch. Turn it of when you put the system to sleep then back on when you want to use it. (saves battery power as well)

I have a similar setup with logitech keyboard & mouse with unified receiver.

I am well aware I could do that. It’s just feels like more hassle than it needs to be. ChatGPT did suggest a way like this:

sudo nano /etc/udev/rules.d/90-disable-mouse-wake.rules

Add

# Disable wake for Logitech mouse on Unifying Receiver
ACTION=="add", SUBSYSTEM=="input", ATTR{name}=="Logitech *Mouse*", ATTR{device/power/wakeup}="disabled"

Reload

sudo udevadm control --reload-rules

However, I couldn’t get it to work.