Il giorno mer, 14/09/2022 alle 22.47 +0100, Patrick O'Callaghan ha
scritto:
Are you sure it isn't the default?
Yes You're right.
On my system the flag is set to 1 by default:
[lesca@dodo ~]$ cat /sys/power/sync_on_suspend
1
And other flag is set to sync and suspend
[lesca@dodo ~]$ grep -i suspend /boot/config-$(uname -r)
CONFIG_ARCH_SUSPEND_POSSIBLE=y
CONFIG_SUSPEND=y
CONFIG_SUSPEND_FREEZER=y
CONFIG_PM_TEST_SUSPEND=y
CONFIG_OLD_SIGSUSPEND3=y
CONFIG_BT_HCIBTUSB_AUTOSUSPEND=y
CONFIG_CXL_SUSPEND=y
CONFIG_DRM_I915_USERFAULT_AUTOSUSPEND=250
CONFIG_USB_AUTOSUSPEND_DELAY=2
But sometime the suspend action do not work, also if I run:
[lesca@dodo ~]$ sudo sh -c 'sync; sync; systemctl suspend'
I must unplug all USB, then suspend.
There are some other thinks I can do?
Many Thanks
--
Dario Lesca
(inviato dal mio Linux Fedora 36 Workstation)