public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] CONFIG_USB_SUSPEND, where ?
       [not found] <aec8a3e6-67ac-4937-ad8d-ff3c69a79f0c@zimbra59-e10.priv.proxad.net>
@ 2011-10-15  7:49 ` Alain Didierjean
  2011-10-15  7:54   ` Canek Peláez Valdés
  0 siblings, 1 reply; 5+ messages in thread
From: Alain Didierjean @ 2011-10-15  7:49 UTC (permalink / raw
  To: gentoo-user


* 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 ?



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] CONFIG_USB_SUSPEND, where ?
  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
  0 siblings, 1 reply; 5+ messages in thread
From: Canek Peláez Valdés @ 2011-10-15  7:54 UTC (permalink / raw
  To: gentoo-user

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 ?

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.

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.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] CONFIG_USB_SUSPEND, where ?
  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
  0 siblings, 1 reply; 5+ messages in thread
From: Jonas de Buhr @ 2011-10-15 11:57 UTC (permalink / raw
  To: gentoo-user

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 ;)

> 
> 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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] CONFIG_USB_SUSPEND, where ?
  2011-10-15 11:57     ` Jonas de Buhr
@ 2011-10-15 12:18       ` Felix Kuperjans
  2011-11-08  1:56         ` Claudio Roberto França Pereira
  0 siblings, 1 reply; 5+ messages in thread
From: Felix Kuperjans @ 2011-10-15 12:18 UTC (permalink / raw
  To: gentoo-user

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.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] CONFIG_USB_SUSPEND, where ?
  2011-10-15 12:18       ` Felix Kuperjans
@ 2011-11-08  1:56         ` Claudio Roberto França Pereira
  0 siblings, 0 replies; 5+ messages in thread
From: Claudio Roberto França Pereira @ 2011-11-08  1:56 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 3587 bytes --]

On Sat, Oct 15, 2011 at 09:18, Felix Kuperjans <felix@desaster-games.com>wrote:

> 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.
>

That's extremely hardcore. Using / in menuconfig will not only give you the
menu where the option resides, but also state it's status (checked,
unchecked or module), it's dependencies and short description.

[-- Attachment #2: Type: text/html, Size: 4699 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-11-08  1:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [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
2011-11-08  1:56         ` Claudio Roberto França Pereira

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox