Skip to main content
OBaselga
Associate II
July 17, 2021
Question

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

  • July 17, 2021
  • 1 reply
  • 585 views

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

This topic has been closed for replies.

1 reply

Olivier GALLIEN
ST Technical Moderator
July 19, 2021

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

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.