Gentoo Archives: gentoo-user

From: Paul Hartman <paul.hartman+gentoo@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Powertop constantly tells me to enable USB suspend, but it is already enabled
Date: Thu, 22 Jan 2009 15:47:08
Message-Id: 58965d8a0901220745m6cde5ee3w6416d869c40586a7@mail.gmail.com
In Reply to: Re: [gentoo-user] Powertop constantly tells me to enable USB suspend, but it is already enabled by Eric Martin
1 On Thu, Jan 22, 2009 at 7:58 AM, Eric Martin <freak4uxxx@×××××.com> wrote:
2 > Paul Hartman wrote:
3 >> On Tue, Jan 20, 2009 at 8:06 PM, Eric Martin <freak4uxxx@×××××.com> wrote:
4 >>> Paul Hartman wrote:
5 >>>> Hi,
6 >>>>
7 >>>> As the subject line says, powertop constantly tells me my USB devices
8 >>>> (keyboard/mouse) are active 100% of the time and to enable USB
9 >>>> suspend, which I do, but it keeps telling me constantly. How can I
10 >>>> tell if:
11 >>>>
12 >>>> A) USB suspend is actually on or not
13 >>>> B) powertop is doing anything when I press "U"
14 >>>>
15 >>>> I've got USB Suspend/resume support in my kernel, and according to the
16 >>>> kernel docs the usbcore.usbsuspend default delay is 2 (powertop
17 >>>> suggests changing it to 1).
18 >>>>
19 >>>> Powertop's refresh delay is 5 seconds.
20 >>>>
21 >>>> Thanks,
22 >>>> Paul
23 >>>>
24 >>>>
25 >>> Check for USB_SUSPEND in /proc/config.gz
26 >>
27 >> I do not have a /proc/config.gz but i have this in /boot/config:
28 >>
29 >> CONFIG_USB_SUSPEND=y
30 >>
31 > Are you sure you're running a kernel with that configured? Why not
32 > enable kernel .config? It's [CONFIG_IKCONFIG] General Setup -> Kernel
33 > .config support. Obviously it adds more to your kernel images but it
34 > makes tracking down problems like this very easy. I too have a usb
35 > keyboard / mouse and I'm pretty sure powertop doesn't register 100% for
36 > those interfaces... Heck, unless you're 100% opposed to turning on
37 > kernel .config support (or can't reboot the server), turn it on,
38 > recompile, install, reboot and see if CONFIG_USB_SUSPEND is there, and
39 > see what powertop says.
40 >
41 > I was trying to chase down a similar problem (disabling kernel options)
42 > when I was getting vmalloc() errors with xfs and I discovered that they
43 > always weren't taking affect. My guess was I rebooted before cache
44 > could be written to disk.
45
46 Hi,
47
48 I actually had it enabled in my kernel, but as a module, and I have
49 never used it before so I didn't even realize it was there. I had to
50 dig a little to find out that "modprobe configs" is what I needed to
51 turn it on. I have this section:
52
53 #
54 # Miscellaneous USB options
55 #
56 CONFIG_USB_DEVICEFS=y
57 # CONFIG_USB_DEVICE_CLASS is not set
58 # CONFIG_USB_DYNAMIC_MINORS is not set
59 CONFIG_USB_SUSPEND=y
60 # CONFIG_USB_OTG is not set
61 # CONFIG_USB_MON is not set
62 # CONFIG_USB_WUSB is not set
63 # CONFIG_USB_WUSB_CBAF is not set
64
65 So it appears I do have it properly configured, at least.
66
67 Is there any way to tell whether or not a device is suspended, or if
68 autosuspend is kicking in? I don't know what's it's supposed to do,
69 really. Does the fact that I'm using a desktop computer mean that
70 there's a chance USB suspend isn't even available?
71
72 Thanks,
73 Paul

Replies