I'm using Mac OS X 10.7.1 on a Macbook Core 2 Duo.
What's the fastest way of draining the battery without crashing the system and preferable by using some sort of a script?
| |||||||||||||
feedback
|
|
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:
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. | ||||
|
feedback
|
|
Keeping your CPU's busy can be done with a script. Just run the following in 2 consoles:
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. | |||||||||||
feedback
|
|
In general, use 100% of CPU usage, turn up the brightness, don't let it go to sleep. | |||
|
feedback
|
this will keep writing 5gb to a file called /junk and then delete it | |||
|
feedback
|
