On 05/18/2018 10:07 PM, Rainer Dorsch wrote: > Package: hdparm > Version: 9.56+ds-1 > Followup-For: Bug #758988 > > Dear Maintainer, > > I see that behavior also in buster. > > What I understand is that > > /usr/lib/pm-utils/power.d/95hdparm-apm resume > > gets called during resume. > > To make it work for me, I had to comment these two if conditions > > # if [ -b $dev ] && hdparm_try_apm $dev ; then > > > # Check for APM support; discard errors since not all > > > # drives support HDIO_GET_IDENTITY (-i). > > > # if hdparm -i $dev 2> /dev/null | grep -q > 'AdvancedPM=yes' > > # then > > in resume_hdparm_spindown(). > > For reference the output of > > root@b370:~# hdparm -i /dev/sdb > > /dev/sdb: > > Model=SAMSUNG HD501LJ, FwRev=CR100-12, SerialNo=S0MUJ1FPB79563 > Config={ Fixed } > RawCHS=16383/16/63, TrkSize=34902, SectSize=554, ECCbytes=4 > BuffType=DualPortCache, BuffSize=16384kB, MaxMultSect=16, MultSect=off > CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=976773168 > IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120} > PIO modes: pio0 pio1 pio2 pio3 pio4 > DMA modes: mdma0 mdma1 mdma2 > UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5 *udma6 > AdvancedPM=no WriteCache=enabled > Drive conforms to: unknown: ATA/ATAPI-3,4,5,6,7 > > * signifies the current active mode
Thanks for reporting. The only solution I currently see is to add an option to hdparm.conf to allow forcibly set spindown time regardless APM support. /usr/lib/pm-utils/power.d/95hdparm-apm need to be modified to check for this option in resume_hdparm_spindown().