id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc 91,"smartctl, standby mode not detected properly on FreeBSD",drsweety,Dan Lukes,"Hi! I've enabled the standby timer on all my harddisks with ""''camcontrol standby adaX -t 900''"" (=which sends the STANDBY ATA cmd to the drive (=idle now, arm standby timer to 900s)). This works fine and ""''smartctl''"" recognises that the drive is in standby mode: {{{ # smartctl -A -n standby /dev/ada3 smartctl 5.39.1 2010-01-28 r3054 [FreeBSD 8.1-RELEASE amd64] (local build) Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net Device is in STANDBY mode, exit(2) # camcontrol cmd ada3 -a ""E5 00 00 00 00 00 00 00 00 00 00 00"" -r - 50 00 00 00 00 40 00 00 00 00 00 }}} However, if a drive is currently active it still thinks that the drive is in standby mode even though it clearly is not: {{{ # dd if=/dev/ada0 of=/dev/null count=1 1+0 records in 1+0 records out 512 bytes transferred in 0.034235 secs (14955 bytes/sec) # ./smartctl -A -n standby /dev/ada0 smartctl 5.39.1 2010-01-28 r3054 [FreeBSD 8.1-RELEASE amd64] (local build) Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net Power mode: 00 Device is in STANDBY mode, exit(2) # camcontrol cmd ada0 -a ""E5 00 00 00 00 00 00 00 00 00 00 00"" -r - 50 00 00 00 00 00 00 00 00 FF 00 # }}} Note that the ""''Power mode: 00''"" output was added by me to ''atacmds.cpp'' for debugging purposes. It outputs the value of ""''result''"" from within ""''ataCheckPowerMode''"". As you can see from the ""''camcontrol''"" output the device is active (sector count=FF). I'm not sure why the output for sector count from ""''camcontrol''"" and ""''smartctl''"" differ... Is this working as designed?",defect,closed,minor,Release 5.40,all,5.39.1,fixed,freebsd,