Announcement

Collapse
No announcement yet.

Auto off?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Auto off?

    I have been thinking I should turn off my PC at night for all the good reasons - saving energy, the planet etc and was wondering if I can set it up to do it automatically. I suppose turning on again automatically is out of the question?

    #2
    Re: Auto off?

    Hmm shutdown is easy:

    Press: Alt + F2 > kdesu kcron > Choose root > Choose tasks > Right click tasks > Choose New (or press Ctrl + N) > Edit Task - KCron pops up

    - click right time and day (daily)
    - program: /sbin/shutdown -h now

    From man shutdown:
    shutdown brings the system down in a secure way. All logged-in users are notified that the system is going down, and login is blocked...
    Power on - D'oh
    Before you edit, BACKUP !

    Why there are dead links ?
    1. Thread: Please explain how to access old kubuntu forum posts
    2. Thread: Lost Information

    Comment


      #3
      Re: Auto off?

      How about a hibernate function? Not a full shutdown but should be faster restart.

      Just google linux hibernate. Here's one:
      http://www.suspend2.net/

      Comment


        #4
        Re: Auto off?

        If you have a default install, this script should hibernate and switch off power, I'm not sure if it's using suspend2 or another one...
        It's located here : /etc/acpi/hibernate.sh

        Cheers

        Comment


          #5
          Re: Auto off?

          Just find this:

          TurnOffTimer
          http://www.kde-apps.org/content/show.php?content=45902

          Description:
          A Kommander script that will help you shut down / restart etc. the computer at a specified time later.
          Note I haven't tried this and it's 0.1 version.

          Before you edit, BACKUP !

          Why there are dead links ?
          1. Thread: Please explain how to access old kubuntu forum posts
          2. Thread: Lost Information

          Comment


            #6
            Re: Auto off?

            With some help from Nigel Cunningham I got Suspend2 installed and working and it seems pretty good.

            So all I need to do is remove the 'shutdown' task I added to Kcron and add 'sudo hibernate' instead, but when I open Kcron now it is empty - no tasks, no variables. Do I have to be root when I run it; how do I do that?

            Thanks, Abunt

            Comment


              #7
              Re: Auto off?

              Alt+F2 (or konsole) and then kdesu kcron.
              Before you edit, BACKUP !

              Why there are dead links ?
              1. Thread: Please explain how to access old kubuntu forum posts
              2. Thread: Lost Information

              Comment


                #8
                Re: Auto off?

                Thanks, its done.

                Comment

                Working...
                X