public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Matthew Garrett <mjg59-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org>
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: Driver Testing
Date: Thu, 17 Mar 2005 13:02:19 +0000	[thread overview]
Message-ID: <1111064539.8136.165.camel@tyrosine> (raw)
In-Reply-To: <20050317012151.36290.qmail-0gFffodynuCvuULXzWHTWIglqE1Y4D90QQ4Iyu8u01E@public.gmane.org>

On Wed, 2005-03-16 at 17:21 -0800, nicdev05 nic wrote:
> Folks,
>   I am adding power management support to a network
> driver on Linux 2.6. I have a simple question, is
> there a tool I can use to test my PM support?
> Something that will put my PC (Dell Optiplex) to sleep
> and wakes it up after say 1-minute?

cd /sys/class/net/(whatever)/device/power

To suspend that device:

echo -n 3 >state

To resume it:

echo -n 0 >state

That doesn't necessarily check that you've got interrupt handling code
right, but it's a good start.

-- 
Matthew Garrett | mjg59-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

  parent reply	other threads:[~2005-03-17 13:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-17  1:21 Driver Testing nicdev05 nic
     [not found] ` <20050317012151.36290.qmail-0gFffodynuCvuULXzWHTWIglqE1Y4D90QQ4Iyu8u01E@public.gmane.org>
2005-03-17  1:45   ` Jason Dagit, Jason Dagit
2005-03-17 13:02   ` Matthew Garrett [this message]
2005-03-24 10:29     ` Pavel Machek
  -- strict thread matches above, loose matches on Subject: below --
2005-03-17  2:43 nicdev05 nic
     [not found] ` <20050317024304.95595.qmail-oqthl4G0bEevuULXzWHTWIglqE1Y4D90QQ4Iyu8u01E@public.gmane.org>
2005-03-17  6:27   ` Jason Dagit
2005-03-18 17:57 nicdev05 nic
     [not found] ` <20050318175743.66629.qmail-0gFffodynuCvuULXzWHTWIglqE1Y4D90QQ4Iyu8u01E@public.gmane.org>
2005-03-18 18:55   ` Jason Dagit

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=1111064539.8136.165.camel@tyrosine \
    --to=mjg59-1xo5oi07kqx4cg9nei1l7q@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    /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