Wake from sleep with keyboard/mouse when plugging in dock

I use a Thunderbolt 3 dock to connect my laptop to an external display, keyboard, and mouse. I also use this dock with my work MacBook. When the MacBook is asleep and I plug the dock into the Mac, mouse or keyboard input wakes it up. But plugging into my Linux machine while it’s already asleep, nothing wakes it up except for opening and closing the lid.

If the Linux laptop is plugged in and it goes to sleep (either timeout or manually sending it to sleep), I can wake with mouse/keyboard input. But not if it is asleep before I plug the dock in.

How can I have the laptop wake with mouse/keyboard input whether it was plugged into the dock or not when it went to sleep?

Kernel: 5.13.5-1
DE: KDE
Laptop: Razer Blade Advance 2020
GPU: NVIDIA GeForce RTX 2070 Super Max-Q
Driver: 470.57.02