Summary: | genkernel: enable CONFIG_PM_RUNTIME and CONFIG_USB_SUSPEND | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Clemente Aguiar <clemente.aguiar> |
Component: | Current packages | Assignee: | Gentoo Genkernel Maintainers <genkernel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | serkan, sping |
Priority: | High | Keywords: | InVCS |
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Clemente Aguiar
2011-01-11 17:28:21 UTC
I'd just like to add: - It's sys-fs/udisks that need CONFIG_USB_SUSPEND. The udisks ebuild has a check for it. This would be an issue for GNOME too, since gvfs is using gnome-disk-utility which is using udisks. - On x86 and x86_64, kernel's default config has =y for CONFIG_USB_SUSPEND. Does genkernel somehow disable the kernel defaults? I really don't know, I've never used genkernel myself. It seems that if you're on x86 or amd64 you currently get a kernel with CONFIG_USB_SUSPEND disabled from genkernel: # fgrep -R CONFIG_USB_SUSPEND . ./defaults/kernel-config:# CONFIG_USB_SUSPEND is not set ./arch/ppc/kernel-config:CONFIG_USB_SUSPEND=y ./arch/x86_64/kernel-config:# CONFIG_USB_SUSPEND is not set ./arch/ia64/kernel-config:# CONFIG_USB_SUSPEND is not set ./arch/x86/kernel-config:# CONFIG_USB_SUSPEND is not set # fgrep -R CONFIG_PM_RUNTIME . I have now enabled CONFIG_USB_SUSPEN on x86/amd64 for you. Please test by emerging genkernel-99999 (five nines). http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commitdiff;h=954670ea2ffafa55e29c2b50aaf83a85eb3bf265 If needed, please re-open this bug. I have emerged genkernel-9999 and tested it, but unfortunately it is still not working for me. I am using latest stable gentoo-sources kernel (sys-kernel/gentoo-sources-2.6.36-r5) I run: $ genkernel all If I grep the config files in /usr/src/linux I get the following: $ grep CONFIG_PM_RUNTIME .config* .config:# CONFIG_PM_RUNTIME is not set The .config file has neither CONFIG_PM_RUNTIME nor CONFIG_USB_SUSPEND enabled. $ grep CONFIG_USB_SUSPEND .config* .config.old:CONFIG_USB_SUSPEND=y The .config.old file has the CONFIG_USB_SUSPEND enabled, but not CONFIG_PM_RUNTIME. When I look at the help for CONFIG_USB_SUSPEND of the "make menuconfig" I get the following information: Symbol: USB_SUSPEND [=n] Type : boolean Prompt: USB runtime power management (autosuspend) and wakeup Defined at drivers/usb/core/Kconfig:93 Depends on: USB_SUPPORT [=y] && USB [=m] && PM_RUNTIME [=y] Location: -> Device Drivers -> USB support (USB_SUPPORT [=y]) -> Support for Host-side USB (USB [=m]) From this I gather that CONFIG_USB_SUSPEND is dependent of CONFIG_PM_RUNTIME, which means that CONFIG_PM_RUNTIME has also to be enabled in genkernel, is this not so? I have applied "make oldconfig" of 2.6.36-gentoo-r5 to the config of x86_64 now http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commitdiff;h=43a68e89d1d2727b55093061ac1fa8688e4abb6c and enabled both switches using "make menuconfig" http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commitdiff;h=f0b5065d61578883f88d9623b0febe504591de06 Please re-emerge genkernel-99999 (five nines) and report back. genkernel 3.4.12.5 just hit the main tree, patches included. Please re-open this bug as needed. Tried both genkernel 99999 and 3.4.12.5 and now it is ok. $ grep CONFIG_PM_RUNTIME .config* .config:CONFIG_PM_RUNTIME=y .config.old:CONFIG_PM_RUNTIME=y $ grep CONFIG_USB_SUSPEND .config* .config:CONFIG_USB_SUSPEND=y .config.old:CONFIG_USB_SUSPEND=y thanks |