How to turn off my router automatically?

Is there a way to set my router to turn its self off without me having to take out the plug every time im finished with the internet? Basically I would like to be able to make my router automatically turn itself off after maybe 2 hours of non-use so it will save electric. Additional details: Its a modem... show more Is there a way to set my router to turn its self off without me having to take out the plug every time im finished with the internet? Basically I would like to be able to make my router automatically turn itself off after maybe 2 hours of non-use so it will save electric.

Additional details: Its a modem connected to a wireless router. :)
4 answers 4