And the app must write to internal energy-independent memory to be able to save the settings into the drive.
Just stick to the public standards, please - there is a standard ATA or SMART command to set the idle timer. SAMSUNG did it and are better in this area.