From: Pavel Machek <pavel-+ZI9xUNit7I@public.gmane.org>
To: Matthew Garrett <mjg59-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org>
Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: Driver Testing
Date: Thu, 24 Mar 2005 11:29:10 +0100 [thread overview]
Message-ID: <20050324102910.GA1635@elf.ucw.cz> (raw)
In-Reply-To: <1111064539.8136.165.camel@tyrosine>
Hi!
> > 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.
I'm surprised this even works ;-).
echo reboot > /sys/power/disk, then do echo disk > /sys/power/state in
a loop...
Pavel
--
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!
-------------------------------------------------------
This SF.net email is sponsored by Microsoft Mobile & Embedded DevCon 2005
Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows
Embedded(r) & Windows Mobile(tm) platforms, applications & content. Register
by 3/29 & save $300 http://ads.osdn.com/?ad_id=6883&alloc_id=15149&op=click
next prev parent reply other threads:[~2005-03-24 10:29 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
2005-03-24 10:29 ` Pavel Machek [this message]
-- 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=20050324102910.GA1635@elf.ucw.cz \
--to=pavel-+zi9xunit7i@public.gmane.org \
--cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=mjg59-1xO5oi07KQx4cg9Nei1l7Q@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