You are not logged in.

#1 2012-02-07 07:30:57

RaisedFist
Member
From: Romania
Registered: 2007-01-30
Posts: 553
Website

USB ports remain powered during suspend

After the last update I noticed that every time I suspend my laptop the USB ports are still powered. Does anyone know what changed?

Offline

#2 2012-02-08 07:54:25

RaisedFist
Member
From: Romania
Registered: 2007-01-30
Posts: 553
Website

Re: USB ports remain powered during suspend

bump?

Offline

#3 2012-02-08 08:21:36

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 6,816

Re: USB ports remain powered during suspend

I haven't used suspend in ages, but when I last did (a year ago?) the USB ports were still powered during suspend anyway (drained my battery overnight because of that and not noticing my cooler fan was still turned on).

So I'd say that's expected behaviour? Unless you're talking about suspend-to-DISK (hibernate) of course.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Online

#4 2012-02-08 08:38:31

RaisedFist
Member
From: Romania
Registered: 2007-01-30
Posts: 553
Website

Re: USB ports remain powered during suspend

This didn't happen to me before the last update, that's why I'm asking. When I suspended (to RAM) my laptop, the fan was powered down. Now I have it powered up all the time and I don't need that.

Offline

#5 2012-02-09 09:06:21

RaisedFist
Member
From: Romania
Registered: 2007-01-30
Posts: 553
Website

Re: USB ports remain powered during suspend

can a moderator move this to the Kernel & Hardware forum? Thanks in advance.

Offline

#6 2012-02-09 09:42:51

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,271

Re: USB ports remain powered during suspend

Done!


To know or not to know ...
... the questions remain forever.

Offline

#7 2012-03-11 14:22:06

LeCrayonVert
Member
Registered: 2010-09-01
Posts: 133

Re: USB ports remain powered during suspend

Same issue here, ever since I've upgraded from kernel 3.1.6 to 3.2.9...
There might be some options that have changed in the kernel config...


I believe in a world I can and do understand. A rational universe, explained through rational means.

Offline

#8 2012-03-11 14:46:53

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: USB ports remain powered during suspend

I noticed that since kernel 3.2 Wake-on-USB is enabled by default on my HTPC, I guess this is related.

see /proc/acpi/wakeup

you can toggle enabled/disabled by echoing the device into the file, e.g. echo USBE > /proc/acpi/wakeup. Although I don't know if this will also disable the power.

Offline

#9 2012-03-17 14:58:07

LeCrayonVert
Member
Registered: 2010-09-01
Posts: 133

Re: USB ports remain powered during suspend

I've tried to use acpitool -W to change the state in /proc/acpi/wakeup without any success...the USB ports remain powered.

What I've done so far :

acpitool -w

Returns :

 Device	S-state	  Status   Sysfs node
  ---------------------------------------
  ...
  8. EHC1	  S3	*enabled   pci:0000:00:1d.7
  9. USB3	  S3	*enabled   pci:0000:00:1a.0
  10. USB4	  S3	*enabled   pci:0000:00:1a.1
  ...

EHC1 is my targeted devices

acpitool -W 8

There might be some kernel options that changes this behavior ?


I believe in a world I can and do understand. A rational universe, explained through rational means.

Offline

#10 2012-03-17 19:10:44

LeCrayonVert
Member
Registered: 2010-09-01
Posts: 133

Re: USB ports remain powered during suspend

Unloading uhci-hcd modules seems to fix this issue...
So I've just added

SUSPEND_MODULES="uhci_hcd"

to /etc/pm/config.d/modules to have it automatically unloaded/reloaded on suspend/resume wink


I believe in a world I can and do understand. A rational universe, explained through rational means.

Offline

#11 2012-10-14 12:18:29

LeCrayonVert
Member
Registered: 2010-09-01
Posts: 133

Re: USB ports remain powered during suspend

With systemd, pm-utils hooks are no longer supported. So, you might want to add a file in /usr/lib/systemd/system-sleep containing :

#!/bin/sh
case $1/$2 in
  pre/*)
    echo "Going to $2..."
    /sbin/modprobe -r uhci_hcd
    ;;
  post/*)
    echo "Waking up from $2..."
    /sbin/modprobe uhci_hcd
    ;;
esac

I believe in a world I can and do understand. A rational universe, explained through rational means.

Offline

Board footer

Powered by FluxBB