Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 689970 - app-laptop/laptop-mode-tools causes disks to stop and start again and again
Summary: app-laptop/laptop-mode-tools causes disks to stop and start again and again
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-16 13:30 UTC by Andrei Ruslantsev
Modified: 2019-11-29 09:22 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,5.43 KB, application/x-info)
2019-07-16 13:30 UTC, Andrei Ruslantsev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Ruslantsev 2019-07-16 13:30:21 UTC
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
Comment 1 Lars Wendler (Polynomial-C) gentoo-dev 2019-07-16 14:24:18 UTC
Perhaps a similar issue like this:

https://forums.gentoo.org/viewtopic-t-1089722.html
Comment 2 Andrei Ruslantsev 2019-07-16 14:52:15 UTC
(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.
Comment 3 Andrei Ruslantsev 2019-07-16 15:47:31 UTC
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.