Keeping your CPU's busy can be done with a script. Just run the following in 2 consoles:

yes > /dev/null

If you have more than 2 CPU's you need to run it in more consoles. Another option is to write a slightly more complicated script that uses multiprocessing but this is the simplest thing that will max out your CPUs.


If you can run utilities that cause moving parts to work, then that should drain a the battery fairly quickly. Writing CDs or DVDs, copying large amounts of data (such as with @Soumya92's suggestion in a Comment [to your Question] to convert videos which would also consume processing power), or even running a scan on your hard drive for bad sectors (which would require reading every sector) are some things that come to mind.

For using a script, you'd probably have to write your own. It could run in an endless loop copying large amounts of files to a RAM disk (that way when the power goes out, you won't have a corrupt disk to deal with since RAM disks don't matter), a partition used for temporary file storage, or a USB memory stick (or external hard drive).

Here's a more complete list of ideas:

  • Write CDs or DVDs
  • Copy large amounts of data
  • Convert videos (@Soumya92's suggestion in a Comment to the original Question)
  • Run a hard drive scan for bad sectors
  • Write a custom script that copies data to temporary storage, repeatedly
  • Turn up sound, brightness, and other features
  • Plug in a USB cellular phone charger (and charge a phone that's powered on)
  • Plug in a USB reading lamp and turn the light on
  • Plug in a USB fan and run it
  • Plug in an iPod (or similar device) and play music or videos at full volume and brightness
  • Download torrents of public domain movies or music (assuming you can find some)
  • Play some online games (especially the 3D kind that require more graphics processing power)
  • Backup your entire hard drive to an external hard drive
  • Install BOINC and run SETI@home (or other BOINC projects): http://setiathome.berkeley.edu/
  • Set up a Virtual PC, install Unix or Linux, and compile FFMPEG, VLC, OpenJDK 7, and TomCat (plus, anything else you'd like to experiment with)
  • Engage in video chat with your friends
  • Encrypt important data using the most complicated and most secure algorithms you can find

Whatever can bog down your system with lots of disk I/O (which also includes CD and DVD activity) and high CPU utilization should do the trick. Additional power drain from USB devices that don't have their own power sources can help too.


In general, use 100% of CPU usage, turn up the brightness, don't let it go to sleep.