From: Matthew Garrett Subject: Re: Driver Testing Date: Thu, 17 Mar 2005 13:02:19 +0000 Message-ID: <1111064539.8136.165.camel@tyrosine> References: <20050317012151.36290.qmail@web31406.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit In-Reply-To: <20050317012151.36290.qmail-0gFffodynuCvuULXzWHTWIglqE1Y4D90QQ4Iyu8u01E@public.gmane.org> Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-acpi@vger.kernel.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