On Fri, Sep 28, 2007 at 12:58:09PM -0700, Robert Denton wrote:
> Really? You say:
>
> Bcharge attempts to work around this by writing to the
> /sys/.../device/power/state file to attempt to turn this suspend off, but
> this is not always successful.
>
> Why cannot I go in and manually turn it off in the same manner that bcharge
> is attempting to do? Do you have a brief instruction set for this?
You can do it manually. Search under /sys/class/usb_device/*/device/power
for the file "state". You can then use commands like this to disable
it on a per-device basis:
echo -n 0 > /sys/..../power/state
Fortunately, there is a way to do it globally as well! Thanks to a quick
response from Chuck Ebbert on the kernel mailing list. I've pasted it
below.
- Chris
From: Chuck Ebbert <[EMAIL PROTECTED]>
To: Chris Frey <[EMAIL PROTECTED]>
CC: [EMAIL PROTECTED]
Subject: Re: Temporarily disabling CONFIG_USB_SUSPEND
On 09/28/2007 03:42 PM, Chris Frey wrote:
> Hi,
>
> Is there a global means to disable the CONFIG_USB_SUSPEND feature, perhaps
> through /proc or /sysfs?
>
> I know this can be done, in a semi-reliable manner, on a per-device
> basis by writing 0 or 2 to the /sys/.../device/power/state file, but
> I'm looking for something that will have the same effect as disabling
> CONFIG_USB_SUSPEND, but without recompiling the kernel.
>
Kernel boot option usbcore.autosuspend=-1 if usbcore is built-in.
# modprobe usbcore autosuspend=-1
(0 now means suspend immediately)
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Barry-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/barry-devel