FS#36673 - [laptop-mode-tools] HDD APM settings not reapplied after resume from sleep
Attached to Project:
Community Packages
Opened by Andrey Vihrov (andreyv) - Monday, 26 August 2013, 07:13 GMT
Last edited by Balló György (City-busz) - Wednesday, 08 January 2014, 17:15 GMT
Opened by Andrey Vihrov (andreyv) - Monday, 26 August 2013, 07:13 GMT
Last edited by Balló György (City-busz) - Wednesday, 08 January 2014, 17:15 GMT
|
Details
Sometimes, when my laptop is resumed from sleep, I notice
that the hard drive's APM level (corresponds to hdparm -B)
is 128, whereas it should be either 1 or 254, as set in
laptop-mode.conf:
CONTROL_HD_POWERMGMT="auto" BATT_HD_POWERMGMT=1 LM_AC_HD_POWERMGMT=254 NOLM_AC_HD_POWERMGMT=254 Following https://bbs.archlinux.org/viewtopic.php?id=149683 , I created and made executable a file /usr/lib/systemd/system-sleep/laptop-mode.sh with the following content: #!/bin/sh set -e case "$1" in pre) ;; post) /usr/bin/laptop_mode auto force ;; esac Though the file gets executed on resume, the problem still appears. If I manually execute "laptop_mode auto force" later, the settings are restored. Since the value 128 is not one of the preconfigured, and since this seems to happen not every time, there could be a race condition between this script and something else. Package versions: community/laptop-mode-tools 1.63-3 core/systemd 204-3 Steps to reproduce: * Set up laptop-mode to control HDD APM level * Suspend and resume the PC * Run hdparm -B on the drive to see that the level is not as configured |
This task depends upon
Closed by Balló György (City-busz)
Wednesday, 08 January 2014, 17:15 GMT
Reason for closing: Duplicate
Additional comments about closing: FS#33262
Wednesday, 08 January 2014, 17:15 GMT
Reason for closing: Duplicate
Additional comments about closing:
FS#33262. Please report this problem to the upstream developers of Laptop Mode Tools and the Linux kernel.