public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Felix Kuperjans <felix@desaster-games.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] CONFIG_USB_SUSPEND, where ?
Date: Sat, 15 Oct 2011 14:18:43 +0200	[thread overview]
Message-ID: <4E997A23.8090103@desaster-games.com> (raw)
In-Reply-To: <20111015135715.4b537f09@toxic.dbnet>

Am 15.10.2011 13:57, schrieb Jonas de Buhr:
> Am Sat, 15 Oct 2011 00:54:48 -0700
> schrieb Canek Peláez Valdés <caneko@gmail.com>:
>
>> On Sat, Oct 15, 2011 at 12:49 AM, Alain Didierjean
>> <alain.didierjean@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 ;)
This is my preferred way of searching the config. Note that you can't
select "USB runtime and power management (autosuspend) and wakeup", if
"Power management and ACPI options -> Run-time PM core functionality" is
not set.

I forgot that some time ago, leading to some errors while unmounting USB
sticks with udisks (although most of udisks works without this option
set, it just can't power down USB devices after they are unmounted).
>> 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	other threads:[~2011-10-15 12:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <aec8a3e6-67ac-4937-ad8d-ff3c69a79f0c@zimbra59-e10.priv.proxad.net>
2011-10-15  7:49 ` [gentoo-user] CONFIG_USB_SUSPEND, where ? Alain Didierjean
2011-10-15  7:54   ` Canek Peláez Valdés
2011-10-15 11:57     ` Jonas de Buhr
2011-10-15 12:18       ` Felix Kuperjans [this message]
2011-11-08  1:56         ` Claudio Roberto França Pereira

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E997A23.8090103@desaster-games.com \
    --to=felix@desaster-games.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox