How to halt computer after N minutes idle?

Help
dvc
2009-12-18
2013-04-08
  • dvc
    dvc
    2009-12-18

    I want to halt or suspend to disk my computer after some minutes of inactivity. I can`t find useful variable for this purpose. And i can`t to use my command on typical idle event…

    Can you help me?