Bug #2531

camcontrol fails to disable APM

Added by m.lombardi85 about 1 year ago. Updated about 1 year ago.

Status:NewStart date:03/23/2013
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

I installed dragonfly BSD on an AMD64 laptop but I have a problem.

The hard disk is continuously spinning up and down every few seconds;
on FreeBSD I normally execute the following command to disable APM

#camcontrol cmd ad0 -c "EF 85 00 00 00 00 00 00 00 00 00 00"

but unfortunately it fails on dragonfly with the following error message:

camcontrol: error sending command

dmesg (11.2 KB) m.lombardi85, 03/23/2013 05:23 AM

History

#1 Updated by swildner about 1 year ago

OK, I've pushed (and MFC'd) a fix that allows turning off APM for disks at least with nata(4).

I think in order to have have this for AHCI attached disks too (via camcontrol(8)), we'd have to integrate ATA into CAM like FreeBSD did. But I'm not 100% sure about this.

Also available in: Atom PDF