1 |
Am 15.10.2011 13:57, schrieb Jonas de Buhr: |
2 |
> Am Sat, 15 Oct 2011 00:54:48 -0700 |
3 |
> schrieb Canek Peláez Valdés <caneko@×××××.com>: |
4 |
> |
5 |
>> On Sat, Oct 15, 2011 at 12:49 AM, Alain Didierjean |
6 |
>> <alain.didierjean@××××.fr> wrote: |
7 |
>>> * Messages for package sys-fs/udisks-1.0.4-r1: |
8 |
>>> |
9 |
>>> * CONFIG_USB_SUSPEND: is not set when it should be. |
10 |
>>> |
11 |
>>> As the message above from emerge says, no way to update |
12 |
>>> sys-fs/udisks as CONFIG_USB_SUSPEND is not set. The problem is |
13 |
>>> where to find that option. Not in linux/.config, so where ? |
14 |
> i think it only shows up there if it is already set. AFAIK the |
15 |
> kernel options are defined in the various Kconfig files spread |
16 |
> throughout the source tree. in this case |
17 |
> |
18 |
> drivers/usb/core/Kconfig |
19 |
> |
20 |
> when searching for an option you can do |
21 |
> |
22 |
> find /usr/src/linux/ -name Kconfig \ |
23 |
> -exec grep USB_SUSPEND {} /dev/null \; |
24 |
> |
25 |
> which gives you two hits: |
26 |
> |
27 |
> /usr/src/linux/drivers/usb/core/Kconfig:config USB_SUSPEND |
28 |
> /usr/src/linux/drivers/usb/core/Kconfig: depends on USB_SUSPEND |
29 |
> |
30 |
> and |
31 |
> |
32 |
> grep -A 20 'config USB_SUSPEND' /usr/src/linux/drivers/usb/core/Kconfig |
33 |
> |
34 |
> giving you description and help: |
35 |
> |
36 |
> config USB_SUSPEND |
37 |
> bool "USB runtime power management (autosuspend) and wakeup" |
38 |
> depends on USB && PM_RUNTIME |
39 |
> help |
40 |
> If you say Y here, you can use driver calls or the sysfs |
41 |
> "power/control" file to enable or disable autosuspend for |
42 |
> individual USB peripherals (see |
43 |
> Documentation/usb/power-management.txt for more details). |
44 |
> |
45 |
> Also, USB "remote wakeup" signaling is supported, whereby some |
46 |
> USB devices (like keyboards and network adapters) can wake up |
47 |
> their parent hub. That wakeup cascades up the USB tree, and |
48 |
> could wake the system from states like suspend-to-RAM. |
49 |
> |
50 |
> If you are unsure about this, say N here. |
51 |
> |
52 |
> |
53 |
>> Cool tip for the future: Go to /usr/src/linux, type "make menuconfig". |
54 |
>> Then type "/" (slash). Then type SUSPEND and ENTER. It will show you |
55 |
>> all the kernel options with SUSPEND on them. |
56 |
> or this, of course ;) |
57 |
This is my preferred way of searching the config. Note that you can't |
58 |
select "USB runtime and power management (autosuspend) and wakeup", if |
59 |
"Power management and ACPI options -> Run-time PM core functionality" is |
60 |
not set. |
61 |
|
62 |
I forgot that some time ago, leading to some errors while unmounting USB |
63 |
sticks with udisks (although most of udisks works without this option |
64 |
set, it just can't power down USB devices after they are unmounted). |
65 |
>> In particular, for USB_SUSPEND it says: |
66 |
>> |
67 |
>> Symbol: USB_SUSPEND [=y] |
68 |
>> Type : boolean |
69 |
>> Prompt: USB runtime power management (autosuspend) and wakeup |
70 |
>> Defined at drivers/usb/core/Kconfig:93 |
71 |
>> Depends on: USB_SUPPORT [=y] && USB [=y] && PM_RUNTIME [=y] |
72 |
>> Location: |
73 |
>> -> Device Drivers |
74 |
>> -> USB support (USB_SUPPORT [=y]) |
75 |
>> -> Support for Host-side USB (USB [=y]) |
76 |
>> |
77 |
>> So there, is in Device Drivers -> USB support -> Support for |
78 |
>> Host-side USB. |
79 |
>> |
80 |
>> Regards. |