1 |
Felix Kuperjans wrote: |
2 |
> Dale wrote: |
3 |
>> Howdy, |
4 |
>> |
5 |
>> I was doing a update a while back and noticed a ewarn, enotice or |
6 |
>> something going by. I used the elogviewer to go back and dig it out. |
7 |
>> This is what it says: |
8 |
>> |
9 |
>> Found sources for kernel version: |
10 |
>> 3.5.0-gentoo |
11 |
>> Checking for suitable kernel configuration options... |
12 |
>> ERROR (setup) |
13 |
>> |
14 |
>> CONFIG_USB_SUSPEND: is not set when it should be. |
15 |
>> WARN (setup) |
16 |
> udisks will work without that, but if you try to safely unplug a USB |
17 |
> stick or other USB storage device, an error will occur because udisks is |
18 |
> unable to power off the device before unplugging. |
19 |
> The option is not required for its essential functionality, but it's |
20 |
> definitely useful and does not add any big overhead to the kernel, so I |
21 |
> always enable it and would recommend enabling it unless you have a |
22 |
> strong reason not to set it. |
23 |
|
24 |
|
25 |
Ahhh, this was helpful info. I do use sticks but right now that is the |
26 |
only storage thing I use on my system. Everything else is printer, |
27 |
camera etc etc. So, this will 'improve' how a USB stick works too. Neat. |
28 |
|
29 |
>> Please check to make sure these options are set correctly. |
30 |
>> Failure to do so may cause unexpected problems. |
31 |
>> |
32 |
>> So, I go into the kernel's menuconfig and find this: |
33 |
>> |
34 |
>> │ CONFIG_USB_SUSPEND: │ |
35 |
>> │ │ |
36 |
>> │ If you say Y here, you can use driver calls or the sysfs │ |
37 |
>> │ "power/control" file to enable or disable autosuspend for │ |
38 |
>> │ individual USB peripherals (see │ |
39 |
>> │ Documentation/usb/power-management.txt for more details). │ |
40 |
>> │ │ |
41 |
>> │ Also, USB "remote wakeup" signaling is supported, whereby some │ |
42 |
>> │ USB devices (like keyboards and network adapters) can wake up │ |
43 |
>> │ their parent hub. That wakeup cascades up the USB tree, and │ |
44 |
>> │ could wake the system from states like suspend-to-RAM. │ |
45 |
>> │ │ |
46 |
>> │ If you are unsure about this, say N here. │ |
47 |
> This message is on a lot of important stuff, it just means you will be |
48 |
> able to use USB (at least on *some* machines) without enabling it. |
49 |
> As soon as you have any reason to set it or know what it does, this |
50 |
> recommendation is superfluous. Only take care if the help message says |
51 |
> something like: |
52 |
> * This is usually not needed, so if unsure, say no |
53 |
> * This is highly experimental, ... |
54 |
> * only set this as module ... |
55 |
> * Do not enable unless ... |
56 |
> In such cases, you should be sure what you are doing and usually no |
57 |
> ebuild would require options like that. |
58 |
|
59 |
Yea, I just didn't know what it was for so I went with the unsure part. |
60 |
Generally, if I am unsure, I leave it out. Thing is, I had a package |
61 |
that hinted it would like to have it. Hence the question about what |
62 |
this was and such. I wanted to take the 'un' out of unsure. lol |
63 |
|
64 |
>> │ │ |
65 |
>> │ Symbol: USB_SUSPEND [=n] │ |
66 |
>> │ Type : boolean │ |
67 |
>> │ Prompt: USB runtime power management (autosuspend) and wakeup │ |
68 |
>> │ Defined at drivers/usb/core/Kconfig:41 │ |
69 |
>> │ Depends on: USB_SUPPORT [=y] && USB [=y] && PM_RUNTIME [=y] │ |
70 |
>> │ Location: │ |
71 |
>> │ -> Device Drivers │ |
72 |
>> │ -> USB support (USB_SUPPORT [=y]) │ |
73 |
>> │ -> Support for Host-side USB (USB [=y]) |
74 |
>> |
75 |
>> The important part is about 'if you are unsure about this, say N here'. |
76 |
>> Well, I don't think I need USB remote wakeup or anything so I don't |
77 |
>> think I need this but at the same time, udisk is giving me notice that |
78 |
>> it should be there. |
79 |
>> |
80 |
>> This is a desktop system not a laptop. Do I need to listen to me not |
81 |
>> needing it or udisk that says I do? |
82 |
> This option is only USB relevant and can be used on any laptop / desktop |
83 |
> system / whatever with USB support. |
84 |
|
85 |
I got that now. The info above helped on that one. |
86 |
|
87 |
>> Opinions? |
88 |
>> |
89 |
>> Dale |
90 |
>> |
91 |
>> :-) :-) |
92 |
>> |
93 |
>> P. S. The only things I have USB right now is my printer and a camera. I |
94 |
>> may have a UPS added to that when I get around to rebooting again. I'm |
95 |
>> not sure on how I will end up connecting it yet. |
96 |
> In case you have no USB sticks and never want to use any USB storage |
97 |
> device, you won't need udisks at all, try disabling the "udisks" USE |
98 |
> flags on your desktop packages (esp. gvfs). |
99 |
> |
100 |
> Regards, |
101 |
> Felix |
102 |
> |
103 |
> |
104 |
|
105 |
I do plan to get a external USB drive one of these days. So, it is |
106 |
enabled and I'm now 'sure' about it. ;-) You applied power to my |
107 |
light bulb. |
108 |
|
109 |
Dale |
110 |
|
111 |
:-) :-) |
112 |
|
113 |
-- |
114 |
I am only responsible for what I said ... Not for what you understood or how you interpreted my words! |