From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RNaxg-0003xU-CH for garchives@archives.gentoo.org; Tue, 08 Nov 2011 01:58:52 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 26EA821C0AE; Tue, 8 Nov 2011 01:58:38 +0000 (UTC) Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com [74.125.82.181]) by pigeon.gentoo.org (Postfix) with ESMTP id F131E21C109 for ; Tue, 8 Nov 2011 01:57:14 +0000 (UTC) Received: by wyg8 with SMTP id 8so8745wyg.40 for ; Mon, 07 Nov 2011 17:57:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=I+EEZWE8iY7gtL/dL/NAumd09BibYCNPhup6o68/Y/4=; b=bceZNZU3cDXgvDEs/ISj6vjOCMpCbLiWupeNhJFhfqVpo/lW1AHlAQyn2W+MCV+UCE lZtYyPv6II3x44JJxt2MedUnbAvO+5Hrmm8SWvfj7+eUOs0d0c/vXGgp+9RCgIMhEIKX KSHz547WwGadPHOeZRNF9rL9H2aPouqb8Lrtw= Received: by 10.180.5.234 with SMTP id v10mr10228897wiv.44.1320717434039; Mon, 07 Nov 2011 17:57:14 -0800 (PST) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.180.101.233 with HTTP; Mon, 7 Nov 2011 17:56:53 -0800 (PST) In-Reply-To: <4E997A23.8090103@desaster-games.com> References: <2def2136-95e0-4533-8d0a-fee5a5fca77c@zimbra59-e10.priv.proxad.net> <20111015135715.4b537f09@toxic.dbnet> <4E997A23.8090103@desaster-games.com> From: =?UTF-8?Q?Claudio_Roberto_Fran=C3=A7a_Pereira?= Date: Mon, 7 Nov 2011 23:56:53 -0200 Message-ID: Subject: Re: [gentoo-user] CONFIG_USB_SUSPEND, where ? To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary=f46d04138bf7812d8004b12f7db3 X-Archives-Salt: 1b24610e-2f17-4fc1-8918-3f48e5cfeedc X-Archives-Hash: 833b97cfa4bc2020abb3a71e6a9e30ab --f46d04138bf7812d8004b12f7db3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sat, Oct 15, 2011 at 09:18, Felix Kuperjans wr= ote: > Am 15.10.2011 13:57, schrieb Jonas de Buhr: > > Am Sat, 15 Oct 2011 00:54:48 -0700 > > schrieb Canek Pel=C3=A1ez Vald=C3=A9s : > > > >> On Sat, Oct 15, 2011 at 12:49 AM, Alain Didierjean > >> 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 [=3Dy] > >> Type : boolean > >> Prompt: USB runtime power management (autosuspend) and wakeup > >> Defined at drivers/usb/core/Kconfig:93 > >> Depends on: USB_SUPPORT [=3Dy] && USB [=3Dy] && PM_RUNTIME [=3Dy] > >> Location: > >> -> Device Drivers > >> -> USB support (USB_SUPPORT [=3Dy]) > >> -> Support for Host-side USB (USB [=3Dy]) > >> > >> 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. --f46d04138bf7812d8004b12f7db3 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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=C3=A1ez Vald=C3=A9s <caneko@gmail.com>:
>
>> On Sat, Oct 15, 2011 at 12:49 AM, Alain Didierjean
>> <alain.didierjean@f= ree.fr> wrote:
>>> * Messages for package sys-fs/udisks-1.0.4-r1:
>>>
>>> * =C2=A0 CONFIG_USB_SUSPEND: =C2=A0 =C2=A0 =C2=A0 =C2=A0 is no= t 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: =C2=A0 =C2=A0 =C2=A0depends o= n USB_SUSPEND
>
> and
>
> grep -A 20 'config USB_SUSPEND' /usr/src/linux/drivers/usb/cor= e/Kconfig
>
> giving you description and help:
>
> config USB_SUSPEND
> =C2=A0 =C2=A0 =C2=A0 bool "USB runtime power management (autosusp= end) and wakeup"
> =C2=A0 =C2=A0 =C2=A0 depends on USB && PM_RUNTIME
> =C2=A0 =C2=A0 =C2=A0 help
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 If you say Y here, you can use driver call= s or the sysfs
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 "power/control" file to enable o= r disable autosuspend for
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 individual USB peripherals (see
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 Documentation/usb/power-management.txt for= more details).
>
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 Also, USB "remote wakeup" signal= ing is supported, whereby some
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 USB devices (like keyboards and network ad= apters) can wake up
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 their parent hub. =C2=A0That wakeup cascad= es up the USB tree, and
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 could wake the system from states like sus= pend-to-RAM.
>
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 If you are unsure about this, say N here.<= br> >
>
>> Cool tip for the future: Go to /usr/src/linux, type "make men= uconfig".
>> Then type "/" (slash). Then type SUSPEND and ENTER. It w= ill 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 functionalit= y" 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_SUS= PEND it says:
>>
>> Symbol: USB_SUSPEND [=3Dy]
>> Type =C2=A0: boolean
>> Prompt: USB runtime power management (autosuspend) and wakeup
>> =C2=A0 =C2=A0Defined at drivers/usb/core/Kconfig:93
>> =C2=A0 =C2=A0Depends on: USB_SUPPORT [=3Dy] && USB [=3Dy] = && PM_RUNTIME [=3Dy]
>> =C2=A0 =C2=A0Location:
>> =C2=A0 =C2=A0 =C2=A0 -> Device Drivers
>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0-> USB support (USB_SUPPORT [= =3Dy])
>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 -> Support for Host-s= ide USB (USB [=3Dy])
>>
>> 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 modul= e), it's dependencies and short description.
--f46d04138bf7812d8004b12f7db3--