3. Are some fixes needed in the pm-utils package as well?
Can you reference other bug reports (with patches)?
I do remeber two things, first Bug #239419 (pm-utils)
"pm-utils has laptop-tools script which conflicts with laptop-mode-tools"
has been wrongly set as a duplicate of this bug, but is actually messing with laptop-mode-tools job.
IMHO the cleanest (and non misleading) fix would be to just remove the /usr/lib/pm-utils/power.d/laptop-tools script from pm-tools. (laptop-mode-tools does all that in a configurable way)
And as Alexey has pointed out in a comment, as this script has (and currently is) setting /proc/sys/vm/laptop_mode unconditionaly. So it is tested is may be time now to enable laptop-mode by default with package laptop-mode-tools. (It will still only activate laptop-mode on battery by default.)
But then finally Bug #59695 (High frequency of load/unload cycles on some hard disks may shorten lifetime) can be fixed. Simply by enabling CONTROL_HD_POWERMGMT=1 in laptop-mode.conf.
The NOLM_AC_HD_POWERMGMT=254 setting that is present will then disable head parking by default.
Hi Tormod,
you asked:
3. Are some fixes needed in the pm-utils package as well?
Can you reference other bug reports (with patches)?
I do remeber two things, first Bug #239419 (pm-utils)
"pm-utils has laptop-tools script which conflicts with laptop-mode-tools"
has been wrongly set as a duplicate of this bug, but is actually messing with laptop-mode-tools job.
IMHO the cleanest (and non misleading) fix would be to just remove the /usr/lib/ pm-utils/ power.d/ laptop- tools script from pm-tools. (laptop-mode-tools does all that in a configurable way)
And as Alexey has pointed out in a comment, as this script has (and currently is) setting /proc/sys/ vm/laptop_ mode unconditionaly. So it is tested is may be time now to enable laptop-mode by default with package laptop-mode-tools. (It will still only activate laptop-mode on battery by default.)
But then finally Bug #59695 (High frequency of load/unload cycles on some hard disks may shorten lifetime) can be fixed. Simply by enabling CONTROL_ HD_POWERMGMT= 1 in laptop-mode.conf. HD_POWERMGMT= 254 setting that is present will then disable head parking by default.
The NOLM_AC_