Suspend problem, pm-utils involved

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

Suspend problem, pm-utils involved

Post by postblue » 15/08/2014, 22:28

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.


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"
Etc... We can even make them depending on power supply events.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest