With Samsung Tools installed, resuming from a LidSwitch suspend leads back to suspend a few seconds later.
Without Samsung Tools installed, so without pm-utils installed, suspend is working as expected.
AFAIK it would lead to some code refactoring, as VM writeback, Devices Power Management and USB autosuspend are pm-hooks.
Those can be handled by UDEV rules, as described in Arch wiki's Power Saving page.
Powersaving:
Code: Select all
ACTION=="add", SUBSYSTEM=="usb", TEST=="power/control", ATTR{power/control}="auto"
ACTION=="add", SUBSYSTEM=="usb", TEST=="power/autosuspend" ATTR{power/autosuspend}="2"
ACTION=="add", SUBSYSTEM=="pci", TEST=="power/control", ATTR{power/control}="auto"
Code: Select all
ACTION=="add", SUBSYSTEM=="scsi_host", KERNEL=="host*", ATTR{link_power_management_policy}="min_power"