Am Sat, 15 Oct 2011 00:54:48 -0700
schrieb Canek Peláez Valdés <can...@gmail.com>:

> On Sat, Oct 15, 2011 at 12:49 AM, Alain Didierjean
> <alain.didierj...@free.fr> wrote:
> >
> > * Messages for package sys-fs/udisks-1.0.4-r1:
> >
> > *   CONFIG_USB_SUSPEND:         is not set when it should be.
> >
> > As the message above from emerge says, no way to update
> > sys-fs/udisks as CONFIG_USB_SUSPEND is not set. The problem is
> > where to find that option. Not in linux/.config, so where ?

i think it only shows up there if it is already set. AFAIK the
kernel options are defined in the various Kconfig files spread
throughout the source tree. in this case

drivers/usb/core/Kconfig

when searching for an option you can do

find /usr/src/linux/ -name Kconfig \
-exec grep USB_SUSPEND {} /dev/null \;

which gives you two hits:

/usr/src/linux/drivers/usb/core/Kconfig:config USB_SUSPEND
/usr/src/linux/drivers/usb/core/Kconfig:        depends on USB_SUSPEND

and

grep -A 20 'config USB_SUSPEND' /usr/src/linux/drivers/usb/core/Kconfig

giving you description and help:

config USB_SUSPEND
        bool "USB runtime power management (autosuspend) and wakeup"
        depends on USB && PM_RUNTIME
        help
          If you say Y here, you can use driver calls or the sysfs
          "power/control" file to enable or disable autosuspend for
          individual USB peripherals (see
          Documentation/usb/power-management.txt for more details).

          Also, USB "remote wakeup" signaling is supported, whereby some
          USB devices (like keyboards and network adapters) can wake up
          their parent hub.  That wakeup cascades up the USB tree, and
          could wake the system from states like suspend-to-RAM.

          If you are unsure about this, say N here.


> Cool tip for the future: Go to /usr/src/linux, type "make menuconfig".
> Then type "/" (slash). Then type SUSPEND and ENTER. It will show you
> all the kernel options with SUSPEND on them.

or this, of course ;)

> 
> In particular, for USB_SUSPEND it says:
> 
> Symbol: USB_SUSPEND [=y]
> Type  : boolean
> Prompt: USB runtime power management (autosuspend) and wakeup
>    Defined at drivers/usb/core/Kconfig:93
>    Depends on: USB_SUPPORT [=y] && USB [=y] && PM_RUNTIME [=y]
>    Location:
>       -> Device Drivers
>          -> USB support (USB_SUPPORT [=y])
>             -> Support for Host-side USB (USB [=y])
> 
> So there, is in Device Drivers -> USB support -> Support for
> Host-side USB.
> 
> Regards.

Reply via email to