[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080429232606.GA14261@dose.home.local>
Date: Wed, 30 Apr 2008 01:26:06 +0200
From: Tino Keitel <tino.keitel@....de>
To: linux-kernel@...r.kernel.org, linux-scsi@...r.kernel.org
Subject: Hack to fix not working spindown over Firewire
Hi folks,
I like the manage_start_stop feature of the SD driver to spin down the
hard disks (SATA and USB) during suspend. However, it didn't work with
my Firewire hard disk.
After some research I found out that I can spin down the disk with
sg_start --pc=2, and spin it up with sg_start --pc=1. I adopted this
into sd_start_stop_device() with the vendor name of the device
hardcoded (see the attached patch) and now my Firewire hard disk spins
down on suspend and spins up on resume.
Is there any chance to get this behaviour without such ugly changes to
the kernel? I had to make it conditional by checking the device as
otherwise the SATA disk reports an error.
Regards,
Tino
View attachment "start_stop_unit_set_power_condition_v2.diff" of type "text/x-diff" (593 bytes)
Powered by blists - more mailing lists