Driver Testing
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?
Appreciate any pointers!
-Nic
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------------------------------------------------
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
Quoted 6 lines · nicdev05 nic <nicdev05-/[email protected]> writes:
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?
You may want to try this:
http://acpi.sourceforge.net/documentation/alarm.html
Jason
-------------------------------------------------------
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
Quoted 6 lines · 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.
Signature · 9 lines
Matthew Garrett | [email protected] ------------------------------------------------------- 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
Hi!
Quoted 11 lines
Quoted 6 lines
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:
Quoted 8 lines
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
Signature · 9 lines
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