From: Wu Zhangjin <wuzhangjin@gmail.com>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: linux-pm@lists.linux-foundation.org
Subject: Re: How to wakup system from standby via USB keyboard
Date: Sun, 23 Aug 2009 21:00:10 +0800 [thread overview]
Message-ID: <1251032410.7203.83.camel@falcon> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0908221005140.5241-100000@netrider.rowland.org>
On Sat, 2009-08-22 at 10:08 -0400, Alan Stern wrote:
> On Sat, 22 Aug 2009, Wu Zhangjin wrote:
>
> > > I think the interface you're looking for is
> > >
> > > /sys/bus/usb/devices/usbN/../power/wakeup
> > >
> > > where N is the USB bus number. This file defaults to "disabled"; if
> > > you write "enabled" to it then the USB host controller will be enabled
> > > as a wakeup source. This should work even without ACPI; it uses the
> > > PCI PME mechanism.
> > >
> >
> > I checked the /sys/bus/usb.../wakeup interfaces, seems the
> > usbN/power/wakeup interfaces are enabled by default in my machine, but
> > the usbN/N-X:Y/power/wakeup is not available. so, I can not wakeup the
> > system via any USB devices.
> >
> > Here is the output:
> >
> > $ find /sys/bus/usb/devices/usb1/ -name "wakeup" -exec echo {} \; -exec
> > cat '{}' \;
> > /sys/bus/usb/devices/usb1/power/wakeup
> > enabled
> ...
>
> You did not read what I wrote.
>
> You shouldn't look at: /sys/bus/usb/devices/usb1/power/wakeup.
> You should look at: /sys/bus/usb/devices/usb1/../power/wakeup.
>
> The N-X:Y/power/wakeup interfaces don't matter; the kernel doesn't
> use them.
>
Sorry, I at first thought .. is only an ellipsis, because the TAB key of
keyboard can not list the files(Seems only symbol links to pci/
directories) :-)
There is really a such file in system of FuLoong2F, but seems the USB
controller is 'not' a PCI one(sorry for my mistake in the last E-mail),
this USB interface is integrated in the CS5536 southbridge, and
CS5536(from AMD) is connected to the PCI bus.
the connection is like this:
----------------------------------------
| Loongson2F |
| | -------------
| CPU internal northbridge | | |
|(bonito64 compatiable, PCI controller)| <----PCI BUS -->| AMD CS5536 |
--------------------------------------- |(USB inside)|
--------------
$ cat /sys/bus/usb/devices/usb1/../power/wakeup
[empty here]
but in YeeLoong System, for there is a NEC USB controller connect to PCI
BUS directly.
----------------------------------------
| Loongson2F |
| | | -------------
| CPU internal northbridge | | |
|(bonito64 compatiable, PCI controller)| <----PCI BUS -->| AMD CS5536 |
--------------------------------------- | |(USB inside)|
| --------------
---- USB HC
and the wakeup interface is really there:
$ cat /sys/bus/usb/devices/usb1/../power/wakeup
disabled
but after I enabled it,
$ echo enabled > /sys/bus/usb/devices/usb1/../power/wakeup
and ensured the USB interrupt is not disabled in the northbridge, but
unfortunately, I can NOT wakeup YeeLoong from standby mode via the
keyboard or mouse connect to NEC USB interface :-(
BTW: I have tested this wakeup interface on two different X86 machines,
both of them can be waked up from a USB keyboard or Mouse.
perhaps I have missed something else.
Thanks & Regards,
Wu Zhangjin
prev parent reply other threads:[~2009-08-23 13:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-21 13:47 How to wakup system from standby via USB keyboard Wu Zhangjin
2009-08-21 22:06 ` Rafael J. Wysocki
2009-08-22 2:06 ` Wu Zhangjin
2009-08-22 2:35 ` Alan Stern
2009-08-22 4:13 ` Wu Zhangjin
2009-08-22 14:08 ` Alan Stern
2009-08-23 13:00 ` Wu Zhangjin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1251032410.7203.83.camel@falcon \
--to=wuzhangjin@gmail.com \
--cc=linux-pm@lists.linux-foundation.org \
--cc=stern@rowland.harvard.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox