Gentoo Archives: gentoo-user

From: Jonas de Buhr <jonas.de.buhr@×××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] CONFIG_USB_SUSPEND, where ?
Date: Sat, 15 Oct 2011 11:58:25
Message-Id: 20111015135715.4b537f09@toxic.dbnet
In Reply to: Re: [gentoo-user] CONFIG_USB_SUSPEND, where ? by "Canek Peláez Valdés"
1 Am Sat, 15 Oct 2011 00:54:48 -0700
2 schrieb Canek Peláez Valdés <caneko@×××××.com>:
3
4 > On Sat, Oct 15, 2011 at 12:49 AM, Alain Didierjean
5 > <alain.didierjean@××××.fr> wrote:
6 > >
7 > > * Messages for package sys-fs/udisks-1.0.4-r1:
8 > >
9 > > *   CONFIG_USB_SUSPEND:         is not set when it should be.
10 > >
11 > > As the message above from emerge says, no way to update
12 > > sys-fs/udisks as CONFIG_USB_SUSPEND is not set. The problem is
13 > > where to find that option. Not in linux/.config, so where ?
14
15 i think it only shows up there if it is already set. AFAIK the
16 kernel options are defined in the various Kconfig files spread
17 throughout the source tree. in this case
18
19 drivers/usb/core/Kconfig
20
21 when searching for an option you can do
22
23 find /usr/src/linux/ -name Kconfig \
24 -exec grep USB_SUSPEND {} /dev/null \;
25
26 which gives you two hits:
27
28 /usr/src/linux/drivers/usb/core/Kconfig:config USB_SUSPEND
29 /usr/src/linux/drivers/usb/core/Kconfig: depends on USB_SUSPEND
30
31 and
32
33 grep -A 20 'config USB_SUSPEND' /usr/src/linux/drivers/usb/core/Kconfig
34
35 giving you description and help:
36
37 config USB_SUSPEND
38 bool "USB runtime power management (autosuspend) and wakeup"
39 depends on USB && PM_RUNTIME
40 help
41 If you say Y here, you can use driver calls or the sysfs
42 "power/control" file to enable or disable autosuspend for
43 individual USB peripherals (see
44 Documentation/usb/power-management.txt for more details).
45
46 Also, USB "remote wakeup" signaling is supported, whereby some
47 USB devices (like keyboards and network adapters) can wake up
48 their parent hub. That wakeup cascades up the USB tree, and
49 could wake the system from states like suspend-to-RAM.
50
51 If you are unsure about this, say N here.
52
53
54 > Cool tip for the future: Go to /usr/src/linux, type "make menuconfig".
55 > Then type "/" (slash). Then type SUSPEND and ENTER. It will show you
56 > all the kernel options with SUSPEND on them.
57
58 or this, of course ;)
59
60 >
61 > In particular, for USB_SUSPEND it says:
62 >
63 > Symbol: USB_SUSPEND [=y]
64 > Type : boolean
65 > Prompt: USB runtime power management (autosuspend) and wakeup
66 > Defined at drivers/usb/core/Kconfig:93
67 > Depends on: USB_SUPPORT [=y] && USB [=y] && PM_RUNTIME [=y]
68 > Location:
69 > -> Device Drivers
70 > -> USB support (USB_SUPPORT [=y])
71 > -> Support for Host-side USB (USB [=y])
72 >
73 > So there, is in Device Drivers -> USB support -> Support for
74 > Host-side USB.
75 >
76 > Regards.

Replies

Subject Author
Re: [gentoo-user] CONFIG_USB_SUSPEND, where ? Felix Kuperjans <felix@××××××××××××××.com>