Created attachment 582964 [details] emerge --info laptop-mode-tools with default configuration causes SSD disks to start and stop again and again when detaching AC cable. dmesg consists of more than 2000 lines like: [21845.388162] sd 0:0:0:0: [sda] Synchronizing SCSI cache [21845.388845] sd 0:0:0:0: [sda] Stopping disk [21845.396629] sd 0:0:0:0: [sda] Starting disk [21845.396841] sd 0:0:0:0: [sda] Synchronizing SCSI cache [21845.397482] sd 0:0:0:0: [sda] Stopping disk [21845.405319] sd 0:0:0:0: [sda] Starting disk My hardware: Lenovo Thinkpad X230 sda: Samsung SSD 850 EVO 500GB sdb: Samsung SSD 860 EVO mSATA 250GB It seems to be a bug like this: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=889544
Perhaps a similar issue like this: https://forums.gentoo.org/viewtopic-t-1089722.html
(In reply to Lars Wendler (Polynomial-C) from comment #1) > Perhaps a similar issue like this: > > https://forums.gentoo.org/viewtopic-t-1089722.html Yes, it seems to be similar issue. And one more: https://github.com/rickysarraf/laptop-mode-tools/issues/123 But turning down AHCI power management is a bad solution for this problem.
Using `dm_mod.use_blk_mq=0 `scsi_mod.use_blk_mq=0` helped me, so I don't know is it a kernel bug, or laptop-mode bug. But now it works.