* [Buildroot] wake on ring support
2008-09-30 21:07 ` Will C
@ 2008-09-30 21:29 ` Bernhard Reutner-Fischer
2008-10-01 13:07 ` Muktabh Anchlia
2008-10-08 14:08 ` Muktabh Anchlia
2 siblings, 0 replies; 6+ messages in thread
From: Bernhard Reutner-Fischer @ 2008-09-30 21:29 UTC (permalink / raw)
To: buildroot
On Tue, Sep 30, 2008 at 09:07:06PM +0000, Will C wrote:
>> I am trying to get wake on ring working on an advantech
>> board with linux (built using buildroot, kernel version
>> 2.6.24). I can make linux go to sleep using the command echo
>> standby >/sys/power/state. But I am unable to wake it up
>> using wake on ring. Advantech documents applying 5 volts on
>> some pin to wake it up. Is there any parameter in buildroot
>> config which enables/disables this support? It does work
>> with windows Xp.
>
>I'm not sure if buildroot has specific support for this or not.
This is unrelated to buildroot per se.
I don't know what you mean with "ring", but, as Will wrote below, you
can possibly use either ether-wake and/or rtcwake both of which are
provided in busybox. Please refer to docs/README for further details on
how to configure busybox to suite your needs.
>
>If it works in XP then it should work in Linux without using +5v on that pin. What is the device you are using to wake up the board? If you know what kind of bus it is connected to (and are using acpi) look in
>/proc/acpi/wakeup to see if it is wakeup enabled:
>
>cat /proc/acpi/wakeup
>
>if not do (for example with PCI0 device) :
>
>echo PCI0 > /proc/acpi/wakeup
>
>then try going to standby. If it works you will probably want to add it to your init scipts so that it is enabled whenever it goes into standby.
>
>Of course if it is a NIC then you also need to use ethtool, e.g:
>
>/usr/sbin/ethtool -s eth0 wol g
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] wake on ring support
2008-09-30 21:07 ` Will C
2008-09-30 21:29 ` Bernhard Reutner-Fischer
@ 2008-10-01 13:07 ` Muktabh Anchlia
2008-10-08 14:08 ` Muktabh Anchlia
2 siblings, 0 replies; 6+ messages in thread
From: Muktabh Anchlia @ 2008-10-01 13:07 UTC (permalink / raw)
To: buildroot
Hi Will,
I will try to explain my problem in a little more detail. I am using
Advantech single board computer PCM-4153. My requirement is this: If my
application doesn't see action for a long time, I want the SBC to
sleep. I have an external start button, which when pressed should wake
this board up. I was thinking of using the wake-on-modem feature
available on the board. The board documentation says that if 5V is
applied to a particular pin (simulates wake on ring by a modem), it
will wake the board. Right now, I use a power supply to apply that 5V.
On XP, if i make it go to sleep and apply the voltage, it comes back
into action. But on buildroot linux, it doesn't come up. Also, once in
sleep mode, it doesn't wake even with keypresses or mouse clicks. I
have these enabled in the bios. I will try what you suggested, but the
difference is I am using an external voltage to wake the board up,
against a device.
Thank you
Muktabh
> Date: Tue, 30 Sep 2008 21:07:06 +0000
> From: willjcroz at yahoo.co.uk
> Subject: Re: [Buildroot] wake on ring support
> To: buildroot at uclibc.org
> CC: m_anchlia at hotmail.com
>
> > I am trying to get wake on ring working on an advantech
> > board with linux (built using buildroot, kernel version
> > 2.6.24). I can make linux go to sleep using the command echo
> > standby >/sys/power/state. But I am unable to wake it up
> > using wake on ring. Advantech documents applying 5 volts on
> > some pin to wake it up. Is there any parameter in buildroot
> > config which enables/disables this support? It does work
> > with windows Xp.
>
> I'm not sure if buildroot has specific support for this or not.
>
> If it works in XP then it should work in Linux without using +5v on that pin. What is the device you are using to wake up the board? If you know what kind of bus it is connected to (and are using acpi) look in
> /proc/acpi/wakeup to see if it is wakeup enabled:
>
> cat /proc/acpi/wakeup
>
> if not do (for example with PCI0 device) :
>
> echo PCI0 > /proc/acpi/wakeup
>
> then try going to standby. If it works you will probably want to add it to your init scipts so that it is enabled whenever it goes into standby.
>
> Of course if it is a NIC then you also need to use ethtool, e.g:
>
> /usr/sbin/ethtool -s eth0 wol g
>
>
> regards,
>
> Will Crozier
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20081001/4dc53cf3/attachment.htm
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] wake on ring support
2008-09-30 21:07 ` Will C
2008-09-30 21:29 ` Bernhard Reutner-Fischer
2008-10-01 13:07 ` Muktabh Anchlia
@ 2008-10-08 14:08 ` Muktabh Anchlia
2008-10-09 19:39 ` Will C
2 siblings, 1 reply; 6+ messages in thread
From: Muktabh Anchlia @ 2008-10-08 14:08 UTC (permalink / raw)
To: buildroot
Hi Will,
Is there a way I can wake up Linux from standby mode by keyboard? Even that doesn't seem to work. I have to restart to come out of standby.
Thanks
Muktabh
" I don't take sides, just the racing line "
> Date: Tue, 30 Sep 2008 21:07:06 +0000
> From: willjcroz at yahoo.co.uk
> Subject: Re: [Buildroot] wake on ring support
> To: buildroot at uclibc.org
> CC: m_anchlia at hotmail.com
>
> > I am trying to get wake on ring working on an advantech
> > board with linux (built using buildroot, kernel version
> > 2.6.24). I can make linux go to sleep using the command echo
> > standby >/sys/power/state. But I am unable to wake it up
> > using wake on ring. Advantech documents applying 5 volts on
> > some pin to wake it up. Is there any parameter in buildroot
> > config which enables/disables this support? It does work
> > with windows Xp.
>
> I'm not sure if buildroot has specific support for this or not.
>
> If it works in XP then it should work in Linux without using +5v on that pin. What is the device you are using to wake up the board? If you know what kind of bus it is connected to (and are using acpi) look in
> /proc/acpi/wakeup to see if it is wakeup enabled:
>
> cat /proc/acpi/wakeup
>
> if not do (for example with PCI0 device) :
>
> echo PCI0 > /proc/acpi/wakeup
>
> then try going to standby. If it works you will probably want to add it to your init scipts so that it is enabled whenever it goes into standby.
>
> Of course if it is a NIC then you also need to use ethtool, e.g:
>
> /usr/sbin/ethtool -s eth0 wol g
>
>
> regards,
>
> Will Crozier
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20081008/874f1118/attachment.htm
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] wake on ring support
2008-10-08 14:08 ` Muktabh Anchlia
@ 2008-10-09 19:39 ` Will C
0 siblings, 0 replies; 6+ messages in thread
From: Will C @ 2008-10-09 19:39 UTC (permalink / raw)
To: buildroot
Hi Muktabh,
> Is there a way I can wake up Linux from standby mode by
> keyboard? Even that doesn't seem to work. I have to
> restart to come out of standby.
Maybe you didn't get the email I sent you directly (not to the buildroot list as this issue is not directly related to buildroot).
Here is what I sent:
> Subject: RE: [Buildroot] wake on ring support
> To: "Muktabh Anchlia" <m_anchlia@hotmail.com>
> Date: Friday, 3 October, 2008, 4:38 PM
> OK, I took a look at your SBC manual and you are using the
> RI (ring indicator) line of a COM (serial) port, right?
>
> So what you need to do is identify the COM port you are
> using, and do `cat /proc/acpi/wakeup` and look for it there.
> If it is there check that it is wakeup enabled, if you have
> trouble identifying it use `lspci` to maybe match the
> pci id's (the device names in /proc/acpi/wakeup can be
> tough to decipher).
>
> The list you see from `cat /proc/acpi/wakeup` is a list of all devices
> that the kernel has found which can wake up the system. You
> should find entries for PCI slots, USB ports etc (and
> hopefully your COM ports, often listed as UART or UAR1 etc.)
>
> now activate it if not already enabled:
>
> e.g. : `echo UAR1 > /proc/acpi/wakeup` (replacing UAR1
> with the com port you are using)
>
> if you are in doubt do the echo command above for each of
> the devices listed, it should enable your keyboard wakeup
> also.
>
> That's the only thing I can think of which will get
> this working, if not you might want to try a more specific
> SBC mail list or forum for this issue.
Can you send me a copy of the output of `cat /proc/acpi/wakeup` and also from `lspci`. I might be able to help you get this working.
(email me directly - this list is for buildroot specific stuff)
Cheers,
Will
^ permalink raw reply [flat|nested] 6+ messages in thread