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 1RF3Dz-0007hY-IB for garchives@archives.gentoo.org; Sat, 15 Oct 2011 12:20:23 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C90C721C109; Sat, 15 Oct 2011 12:19:58 +0000 (UTC) Received: from mail.desaster-games.net (dns1.desaster-games.net [188.40.122.227]) by pigeon.gentoo.org (Postfix) with ESMTP id 464CB21C08D for ; Sat, 15 Oct 2011 12:18:45 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.desaster-games.net (Postfix) with ESMTP id B6CA31018E01 for ; Sat, 15 Oct 2011 14:19:43 +0200 (CEST) X-Virus-Scanned: Amavis at mail.desaster-games.com Received: from mail.desaster-games.net ([127.0.0.1]) by localhost (mail.desaster-games.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pGUCho+z8Ved for ; Sat, 15 Oct 2011 14:19:43 +0200 (CEST) Received: from [10.159.0.8] (main.felix.desaster-games.net [10.159.0.8]) by mail.desaster-games.net (Postfix) with ESMTPSA id 93C2F1018DE9 for ; Sat, 15 Oct 2011 14:19:43 +0200 (CEST) Message-ID: <4E997A23.8090103@desaster-games.com> Date: Sat, 15 Oct 2011 14:18:43 +0200 From: Felix Kuperjans Organization: Desaster Games e.V. User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.20) Gecko/20110918 Lightning/1.0b3pre Thunderbird/3.1.12 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 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] CONFIG_USB_SUSPEND, where ? References: <2def2136-95e0-4533-8d0a-fee5a5fca77c@zimbra59-e10.priv.proxad.net> <20111015135715.4b537f09@toxic.dbnet> In-Reply-To: <20111015135715.4b537f09@toxic.dbnet> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 7ac1073af55198e77bd34dc6671ef47b 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.