First download insomniaX. It is free.
http://insomniax.en.softonic.com/mac
After that, extract the files.
Copy the application file to applications folder.
After running it, you should see the insomniaX icon on the menu bar.
You can now click it, enable it, and customize your settings.