Suspend problem, pm-utils involved

Discussions about Linux installation and configuration on Samsung laptops
Post Reply
postblue
Newbie
Newbie
Posts: 2
Joined: 15 Aug 2014, 21:47

Suspend problem, pm-utils involved

Post by postblue »

As smrtg suggested it in samsung-tools-git comments, pm-utils has to be removed from the dependencies: it seems to conflict with systemd's LidSwitch.

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"
DPM:

Code: Select all

ACTION=="add", SUBSYSTEM=="scsi_host", KERNEL=="host*", ATTR{link_power_management_policy}="min_power"
Etc... We can even make them depending on power supply events.
Post Reply