Package: laptop-mode-tools Version: 1.72-2 Severity: important Tags: patch
Laptop-mode-tools puts SATA drives in DEVSLP on battery. Waking drives then takes several seconds, rendering all disk-using applications (web browser, Vim editor, ...) unresponsive for few seconds every often. Reason is that recent kernels (linux-image-4.18.0-2, i.e. kernels 4.18.9 and 4.19) sets AHCI devices in DEVSLP mode when link_management_power_policy is set to 'min_power'. These kernels have 'med_power_with_dipm' setting which is near 'min_power' but without DEVSLP. This setting is introduced in kernel 4.15. I replaced line BATT_SATA_POLICY=min_power with line BATT_SATA_POLICY=med_power_with_dipm in /etc/laptop-mode/conf.d/intel-sata-powermgmt.conf and now everything works again. I suggest setting default to med_power_with_dipm as there will be only few users with kernel older than 4.15 especially when buster will become stable. Second option is to autodect support for 'min_power' based on kernel release (uname -r). -- System Information: Debian Release: buster/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.18.0-2-amd64 (SMP w/4 CPU cores) Locale: LANG=C, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8), LANGUAGE=C (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages laptop-mode-tools depends on: ii lsb-base 9.20170808 ii psmisc 23.2-1 ii util-linux 2.32.1-0.1 Versions of packages laptop-mode-tools recommends: ii ethtool 1:4.16-1 ii hdparm 9.58+ds-1 ii net-tools 1.60+git20180626.aebd88e-1 ii python3-pyqt5 5.11.3+dfsg-1+b1 ii rfkill 2.32.1-0.1 ii sdparm 1.10-1 ii udev 239-11 ii wireless-tools 30~pre9-13 Versions of packages laptop-mode-tools suggests: ii acpid 1:2.0.28-1+b1 -- Configuration Files: /etc/laptop-mode/conf.d/intel-sata-powermgmt.conf changed [not included] /etc/laptop-mode/laptop-mode.conf changed [not included] -- no debconf information