Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 50

Thread: Server auto-suspend?

  1. #11
    Join Date
    Sep 2009
    Beans
    35

    Re: Server auto-suspend?

    Looks like that could be it! Thank you.

    Can I use apt-get to install it? I can only find a tar.gz-file, and although I am sure that would work just fine, I am a total linux-newbie, and I have only used apt-get so far

    Is it included in 9.10? I am currently running 9.4.

    ~Frank

  2. #12
    Join Date
    Nov 2009
    Beans
    27
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Server auto-suspend?

    This should do it:

    sudo apt-get install powernap

    Just installed it but not even read the man page yet so need to investigate the possibilities....

  3. #13
    Join Date
    Nov 2009
    Beans
    27
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Server auto-suspend?

    Hmmmmm looks fairly broken to me:

    * Starting powernap Cannot get device settings: Operation not permitted
    Cannot get wake-on-lan settings: Operation not permitted
    Cannot get link status: Operation not permitted
    Traceback (most recent call last):
    File "/usr/sbin/powernapd", line 37, in <module>
    logging.basicConfig(filename=LOG, format='%(asctime)s %(levelname)-8s %(message)s', datefmt='%Y-%m-%d_%H:%M:%S', level=logging.DEBUG,)
    File "/usr/lib/python2.6/logging/__init__.py", line 1394, in basicConfig
    hdlr = FileHandler(filename, mode)
    File "/usr/lib/python2.6/logging/__init__.py", line 819, in __init__
    StreamHandler.__init__(self, self._open())
    File "/usr/lib/python2.6/logging/__init__.py", line 838, in _open
    stream = open(self.baseFilename, self.mode)
    IOError: [Errno 13] Permission denied: '/var/log/powernap.log'
    rory@ion:/etc/powernap$

    Ooops spoke too soon sorry, you need to be root to restart the daemon
    Last edited by inspiral; December 11th, 2009 at 10:01 AM.

  4. #14
    Join Date
    Oct 2008
    Location
    Indiana
    Beans
    27

    Re: Server auto-suspend?

    Quote Originally Posted by inspiral View Post
    Hmmmmm looks fairly broken to me:

    * Starting powernap Cannot get device settings: Operation not permitted
    Cannot get wake-on-lan settings: Operation not permitted
    Cannot get link status: Operation not permitted
    Traceback (most recent call last):
    File "/usr/sbin/powernapd", line 37, in <module>
    logging.basicConfig(filename=LOG, format='%(asctime)s %(levelname)-8s %(message)s', datefmt='%Y-%m-%d_%H:%M:%S', level=logging.DEBUG,)
    File "/usr/lib/python2.6/logging/__init__.py", line 1394, in basicConfig
    hdlr = FileHandler(filename, mode)
    File "/usr/lib/python2.6/logging/__init__.py", line 819, in __init__
    StreamHandler.__init__(self, self._open())
    File "/usr/lib/python2.6/logging/__init__.py", line 838, in _open
    stream = open(self.baseFilename, self.mode)
    IOError: [Errno 13] Permission denied: '/var/log/powernap.log'
    rory@ion:/etc/powernap$

    Ooops spoke too soon sorry, you need to be root to restart the daemon
    sudo away. I'm looking for similar functionality, keep us informed.

  5. #15
    Join Date
    Sep 2009
    Beans
    35

    Re: Server auto-suspend?

    Quote Originally Posted by inspiral View Post
    This should do it:

    sudo apt-get install powernap

    Just installed it but not even read the man page yet so need to investigate the possibilities....
    Do you run 9.10? I don't think it's part of 9.4, as I can't install it with apt-get.

    ~Frank

  6. #16
    Join Date
    Dec 2007
    Location
    Newcastle-upon-Tyne - UK
    Beans
    109
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: Server auto-suspend?

    I've just installed it on 9-10 and it does work ok for suspend but I've not tried the other functions.

  7. #17
    Join Date
    Sep 2009
    Beans
    35

    Re: Server auto-suspend?

    How do I install it on 9.4?

    ~Frank

  8. #18
    Join Date
    Dec 2008
    Location
    UK
    Beans
    407
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Server auto-suspend?

    Quote Originally Posted by fkjensen View Post
    How do I install it on 9.4?

    ~Frank
    Look at the launchpad pages for powernap, I think you have to add a PPA to your apt sources file, there are versions in the main repos for jaunty and karmic but for older versions you need to add the PPA.

  9. #19
    Join Date
    Dec 2007
    Location
    Newcastle-upon-Tyne - UK
    Beans
    109
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: Server auto-suspend?

    Progress up to now...

    Powernap works at shutting down NAS server after 5 minutes of inactivity. To use powernap with pm-suspend, an 'action' file needs to be created and made executable in etc/powernap/
    I've also created an icon on my kubuntu client which when clicked will wake the NAS, this also works well. Which means that starting the NAS from a client computer start is also easily accomplished by setting a script in KDE's autostart.

    The problem I have right now is that sometimes the NAS wakes and doesn't fully load....

    ...I'll check the logs!

  10. #20
    Join Date
    Nov 2009
    Beans
    27
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Server auto-suspend?

    Quote Originally Posted by Muttley99 View Post
    Progress up to now...

    Powernap works at shutting down NAS server after 5 minutes of inactivity.

    Hi Muttley

    What processes are you using to keep the NAS/server up (via the config file) ? I've been trying to find one that don't keep it up all the time, without much success unfortunately

    I want my box to provide Squeezebox streams plus files and print services to Windows clients both via Samba then sleep when not but the processes associated with these services never go away and hence powernap never powers down.

    It's not much help to you but my box goes down and up from suspend and hibernate using WOL 100% reliably, my plan is to add a script to the action file to put the box in suspend for a period then take it down to hibernate if not used for a further period.

    Cheers
    Last edited by inspiral; December 15th, 2009 at 12:02 AM.

Page 2 of 5 FirstFirst 1234 ... LastLast

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
  •