Skip to contentSkip to conversation

Temporarily disabling CONFIG_USB_SUSPEND

DISCUSSION Chris Frey 2 participants 2 messages Sep 28, 2007

lore
Share & tools
lore

Chris Frey

author
#0 lore raw

Hi,

Is there a global means to disable the CONFIG_USB_SUSPEND feature, perhaps through /proc or /sysfs?

I know this can be done, in a semi-reliable manner, on a per-device basis by writing 0 or 2 to the /sys/.../device/power/state file, but I'm looking for something that will have the same effect as disabling CONFIG_USB_SUSPEND, but without recompiling the kernel.

Thanks,
- Chris

#1 lore raw
Quoted 10 lines · Chris Frey

Hi,

Is there a global means to disable the CONFIG_USB_SUSPEND feature, perhaps through /proc or /sysfs?

I know this can be done, in a semi-reliable manner, on a per-device basis by writing 0 or 2 to the /sys/.../device/power/state file, but I'm looking for something that will have the same effect as disabling CONFIG_USB_SUSPEND, but without recompiling the kernel.

Kernel boot option usbcore.autosuspend=-1 if usbcore is built-in.

# modprobe usbcore autosuspend=-1

(0 now means suspend immediately)