Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
USB3 HDD does not power down with system
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
ese002
Tux's lil' helper
Tux's lil' helper


Joined: 20 Sep 2006
Posts: 115

PostPosted: Sat Jul 01, 2017 4:37 am    Post subject: USB3 HDD does not power down with system Reply with quote

I have had an external USB disk for a couple of years now. For most of that time, the disk was attached as USB2 because I was a dunce and failed to enable USB3 in the kernel. When I powered down my machine, the drive powered off too.

After enabling USB3 in the kernel, I found that the driver never powered off. When I power off my machine, the drive remains up making noise and burning power. If I plug the drive into a port that only support USB2, I get the earlier behaviour. When the machine powers off, the drive powers off. Nice but, of course, it is also running USB2 so it is a lot slower. Not desirable.

Does anyone know why this is and how to fix it?

Linux crab 4.4.26-gentoo #5 SMP Wed May 31 23:06:08 PDT 2017 x86_64 Intel(R) Core(TM) i5-3570 CPU @ 3.40GHz GenuineIntel GNU/Linux
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43186
Location: 56N 3W

PostPosted: Sat Jul 01, 2017 9:54 am    Post subject: Reply with quote

ese002,

I suspect that your USB3 port is powerd from the 5v Stby in the PC, so its always powered up.
Try this test.

Shut down the PC normally and confirm the HDD is still powered on.
Power off the PC by unplugging the power cable. This ensures that the 5v Stby is powered off.
Wait ... maybe several minutes and the HDD should go off too.
Plug the power cable back into the PC. The HDD will spin up too.

What to do about it?
Some motherboards have jumpers to choose the 5v power source for the USB connectors.
The intention is that 5v Stby is used for mice and keyboards that are intended to switch the PC back on after a 'soft off'
Others hard wire some USB ports to the normal 5v and others to the 5v Stby.
Change the jumper or USB port, so its powered off the normal 5v.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
ese002
Tux's lil' helper
Tux's lil' helper


Joined: 20 Sep 2006
Posts: 115

PostPosted: Tue Jul 04, 2017 9:43 pm    Post subject: Reply with quote

NeddySeagoon wrote:
ese002,

I suspect that your USB3 port is powerd from the 5v Stby in the PC, so its always powered up.
Try this test.

Shut down the PC normally and confirm the HDD is still powered on.
Power off the PC by unplugging the power cable. This ensures that the 5v Stby is powered off.
Wait ... maybe several minutes and the HDD should go off too.
Plug the power cable back into the PC. The HDD will spin up too.

What to do about it?
Some motherboards have jumpers to choose the 5v power source for the USB connectors.
The intention is that 5v Stby is used for mice and keyboards that are intended to switch the PC back on after a 'soft off'
Others hard wire some USB ports to the normal 5v and others to the 5v Stby.
Change the jumper or USB port, so its powered off the normal 5v.


Not sure where you are going with this. USB2 and USB3 use the same power rail. I don't think the bus is powering off and, anyway, one of my drives is powered by an external supply. It still spins down when connected as USB2. It looks to me like the OS is sending a command to spin down the drive. Only, for some reason, this is not happening with USB3. I've this manually with unmounted IDE and SATA drives. Works fine. For some reason, when I do this with a USB3 drive, the drives spins down and then immediately comes back up.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43186
Location: 56N 3W

PostPosted: Tue Jul 04, 2017 9:56 pm    Post subject: Reply with quote

ese002,

When the 5v from the USB port goes away, the drive spins down.
The 5v from the USB port may not go away. It depends on how the port is wired.

Did you perform the test I described?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
chiefbag
Guru
Guru


Joined: 01 Oct 2010
Posts: 542
Location: The Kingdom

PostPosted: Wed Jul 05, 2017 8:24 am    Post subject: Reply with quote

Your USB 3 port may support sleep and charge?

As Neddy said the power supply/signal sent to your HDD causes it to stay active thus spinning.

Code:
https://en.wikipedia.org/wiki/USB_3.0


Code:
Sleep-and-charge ports

A yellow USB port denoting sleep-and-charge
Sleep-and-charge USB ports can be used to charge electronic devices even when the computer is switched off. Normally, when a computer is powered off the USB ports are powered down, preventing phones and other devices from charging. Sleep-and-charge USB ports remain powered even when the computer is off. On laptops, charging devices from the USB port when it is not being powered from AC drains the laptop battery faster; most laptops have a facility to stop charging if their own battery charge level gets too low.[121] This feature has also been implemented on some laptop docking stations allowing device charging even when no laptop is present.[122]

Sleep-and-charge USB ports may be found colored differently than regular ports, mostly red or yellow, though that is not always the case.

On Dell and Toshiba laptops, the port is marked with the standard USB symbol with an added lightning bolt icon on the right side. Dell calls this feature PowerShare,[123] while Toshiba calls it USB Sleep-and-Charge.[124] On Acer Inc. and Packard Bell laptops, sleep-and-charge USB ports are marked with a non-standard symbol (the letters USB over a drawing of a battery); the feature is simply called Power-off USB.[125] On some laptops such as Dell and Apple MacBook models, it is possible to plug a device in, close the laptop (putting it into sleep mode) and have the device continue to charge.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum