cancel
Showing results for 
Search instead for 
Did you mean: 

How to keep changes in /sys/module files after rebooting?

OBaselga
Associate III

Hi everyone,

I'm using STM32MP157F MPU and I'd like to set the "autosuspend" parameter. It's allocated in /sys/module/usbcore/parameters/autosuspend and its default value is 2. When I modify its value to 0 and press the reset button, it becomes 2 again. I'm following this post https://unix.stackexchange.com/questions/91027/how-to-disable-usb-autosuspend-on-kernel-3-7-10-or-above where users say to use grub, however that tool isn't available in OpenSTLinux.

Any ideas about how to keep "autosuspend" parameter modified after rebooting?

Thank you,

Oscar

1 REPLY 1
Olivier GALLIEN
ST Employee

Hi @Óscar Baselga​ ,

I'm not sure you are doing the right thing, but as first hint I would suggest to try a "sync" command prior to reset in order to force your change to be writen to your permanent storage.

Olivier

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.