You can configure XBMC to shutdown your PC after a defined number of minutes:
- Open XBMC
- Go to System > Power Saving
- Next to "Shutdown function timer" set the number of minutes
- Next to "Shudown function" select the action to be taken after the define time lapse
- Shutdown PC
- Quit Program
- Hibernate program
- Wait for XBMC to save your changes and close the settings pane.
This document, titled « XBMC - Auto-shutdown settings », is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).