On Wed, 14 Sep 2022 20:30:11 +0200
Dario Lesca <d.lesca(a)solinos.it> wrote:
Il giorno mer, 14/09/2022 alle 08.31 -0700, stan via users ha
scritto:
> Summary: You have to either issue a sync before suspend, or turn on
> autosync in the kernel before suspend.
Thanks stan, I will try one of proposed solution.
A little question: why is this not the default behavior?
I don't know the answer. Apparently there were issues at some point
with this switch, so it was made optional. I don't even have the
sync_on_suspend file on my system, though that might be because I don't
use suspend. You could check in the /boot/config files what it is set at
for your system kernel by
grep -i suspend /boot/config* | less
I have
# CONFIG_SUSPEND is not set
CONFIG_USB_AUTOSUSPEND_DELAY=2
But my kernel is custom configured, so you should check your kernels.