Results 1 to 3 of 3

Thread: Howto - Shutdown When Idle - 10.04

  1. #1
    Join Date
    Nov 2008
    Beans
    34

    Howto - Shutdown When Idle - 10.04

    I was looking for an easy way to do this, but apparently gnome's pwr mgmt options dont let you shut the system down after it becomes idle. Here's one work around, let me know if you have a better way


    Create a new script to make stuff work
    Code:
    sudo touch /etc/pm/sleep.d/10_shutdown
    become root, then fill it with goodies :
    Code:
    #!/bin/bash
    
    . /usr/lib/pm-utils/functions
    
    case "$1" in
        hibernate|suspend)
        shutdown -h now
        ;;
        *)
        ;;
    esac
    Set it to be executable
    Code:
    sudo chmod +x /etc/pm/sleep.d/10_shutdown

  2. #2
    Join Date
    Oct 2012
    Beans
    47
    Distro
    Ubuntu Gnome 13.10 Saucy Salamander

    Re: Howto - Shutdown When Idle - 10.04

    Can you explain how this script works for me? Do you know of a way to get the computer to reboot after being idle for a set period of time?

  3. #3
    Join Date
    Feb 2008
    Location
    Texas
    Beans
    14,626
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Howto - Shutdown When Idle - 10.04

    If a post is older than a year or so and hasn't had a new reply in that time, instead of replying to it, create a new thread. In the software world, a lot can change in a very short time, and doing things this way makes it more likely that you will find the best information. You may link to the original discussion in the new thread if you think it may be helpful.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •