Created attachment 582964 [details]
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
Lenovo Thinkpad X230
sda: Samsung SSD 850 EVO 500GB
sdb: Samsung SSD 860 EVO mSATA 250GB
It seems to be a bug like this:
Perhaps a similar issue like this:
(In reply to Lars Wendler (Polynomial-C) from comment #1)
> Perhaps a similar issue like this:
Yes, it seems to be similar issue. And one more:
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.