How to disable at boot Autosuspend USB port?

Hi

How should I automatically disable at boot this Powertop option?
“Autosuspend for USB device 2.4G Mouse”

When I boot the USB port where I have the mouse connected is disabled after 2 seconds of inactivity.
I want to turn this off with a script / automatically.
How should I do it?

Thanks!

You don’t need to write a script for this. You can use usbcore.autosuspend=-1 kernel parameter to disable usb autosuspend completely.

If you want, you can create udev rules for particular devices Power management - ArchWiki

1 Like