Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am using Ubutnu 12.04 LTS. Now I am here to know that, is there any script/application I can use to shutdown my Ubuntu when my system is IDLE for 10 Minutes or so?

I have already gone through this answer, but it doesn't seems to be help me much and that package also not active from long time.

Any script/Application I can get for this?

Thank you all.

share|improve this question
    
I made a little program that switches off the light at my desk when the screensaver turns on. It should be pretty easy to adapt for shutting down the machine. Is that what you are looking for? Otherwise you should define what 'idle' means in this context. –  jippie Nov 11 '12 at 19:53
    
Even some download or updating going means after sometime screensaver will active . so I can't call this state as idle . –  raaz Nov 12 '12 at 12:37
    
@ObsessiveSSOℲ yes I can . –  raaz Nov 12 '12 at 13:09
    
I dont have any techical info but i have idea . if we change sleeping sccript to shutdown scpript it can work –  user84277 Nov 19 '12 at 21:21
    
ComplexShutdown has disabled option of setting idle time. This is reported as a bug. :( Idon't know , if it is on every system like that... I used lxle 12.04 distro –  Michał Mar 13 at 16:56
add comment

2 Answers

There are several options:

  1. You could use a download manager application, they usually have an auto shutdown option. Search for one, where you can configure the idle time.
  2. use a cron script: How can I shutdown the computer when a certain process ends?
  3. configure your PC to go to sleep (hibernate) when there is no activity for a while
  4. read the "related" box, right on your screen, and pick up one appropriate tip
share|improve this answer
add comment

Edit: you can do this with https://launchpad.net/complexshutdown

If you're interested in how this works, look at How does ubuntu determine inactivity before suspending? for a good start. You can access the same counters that Ubuntu already uses before suspending, when suspend-on-idle is on.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.