Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Custom sleep.sh

  1. #1
    Join Date
    Oct 2012
    Beans
    7

    Custom sleep.sh

    Hey guys I built myself a nice workstation and it is running great on Ubuntu 12.04 Kernel Linux 3.6.0-030600-generic the only thing is that I can't suspend it. Is there a wiki or any kind of documentation that will guide me in the right direction so I can make this work. Any help will be well appreciated.
    Thanks in advance.

  2. #2
    Join Date
    Apr 2010
    Beans
    223

    Re: Custom sleep.sh

    run

    dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Suspend

    and see what it says

  3. #3
    Join Date
    Oct 2012
    Beans
    7

    Re: Custom sleep.sh

    It does partially suspend. It suspends but the fans and all are still running. Also I have a dual monitor setup and only one of them gets shut off. The second monitor stays on with a black screen. Then it resumes with no problem.
    Thanks.

  4. #4
    Join Date
    Sep 2007
    Location
    Oklahoma, USA
    Beans
    2,378
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Custom sleep.sh

    Quote Originally Posted by badem4o View Post
    It does partially suspend. It suspends but the fans and all are still running.
    This makes me wonder if you're aware of the difference between "suspend" and "hibernate." When you suspend, the CPU goes into an almost-asleep mode of operation at reduced power but RAM remains active. Since the machine does not fully power down, the cooling fans are still needed to keep temperatures under control.

    If you want complete power-off action, "hibernate" is the mode to use. It dumps all RAM content into the swap partition, then powers the system down. When you turn power back on, early in the boot sequence the CPU looks at the swap partition for the flag that indicates it has been put into hibernation, and when it finds it, simply reloads RAM from the swap partition and brings the system back to life.

    Each has its own particular application although both states are so,ewhat similar... Recovering from hibernation takes a bit longer since all the hardware has to be re-initialized just as in a normal "cold boot" but uses no power when down. Recovering from suspension is more like bringing the desktop out of screen-saver mode but isn't so much of a power saver.
    --
    Jim Kyle in Oklahoma, USA
    Linux Counter #259718
    Howto mark thread: https://wiki.ubuntu.com/UnansweredPo.../SolvedThreads

  5. #5
    Join Date
    Jul 2005
    Beans
    2,047

    Re: Custom sleep.sh

    Quote Originally Posted by JKyleOKC View Post
    This makes me wonder if you're aware of the difference between "suspend" and "hibernate." When you suspend, the CPU goes into an almost-asleep mode of operation at reduced power but RAM remains active. Since the machine does not fully power down, the cooling fans are still needed to keep temperatures under control.
    This isn't true with modern hardware. I have built several Ubuntu desktop systems that I regularly use with suspend, and they do not keep any fans running. In fact, power consumption is reduced to almost the same level as "OFF" (even when plugged in, a motherboard draws SOME power unless the power supply is turned OFF too or you unplug it). So almost no heat is generated and no need for extra cooling.

    Of course, laptops don't have their cooling fans on during suspend, either. That would drain the battery pretty quickly. On some older desktop systems I've used (P4-based), suspend would not shut down the fans, making suspend kind of pointless (the idea was to have the systems be quiet and generate no extra heat, etc.)

    And yes, I do know the difference between suspend and hibernation. Sometimes I use hibernation on my laptop when I know it's going to be off for a while, and I don't want to drain the battery. But I prefer the nearly "instant on" resume from suspend provides, especially on a desktop when there is almost zero power draw anyway.
    Last edited by ahallubuntu; October 7th, 2012 at 02:08 AM.

  6. #6
    Join Date
    Oct 2012
    Beans
    7

    Re: Custom sleep.sh

    Yes I am aware of the difference between suspend and hibernate. How would you then explain one of the monitors not powering down?
    Nevertheless any suggestions on how to make a custom sleep.sh that will properly put my machine to sleep?
    Thanks

  7. #7
    Join Date
    Jul 2005
    Beans
    2,047

    Re: Custom sleep.sh

    Suspend is one of those things that sometimes doesn't work in Linux out of the box. It depends how well the hardware is supported by the kernel. Please post more information about your hardware (try "sudo lshw") - more information about your motherboard's chipset might help track down a work-around.

  8. #8
    Join Date
    Oct 2012
    Beans
    7

    Re: Custom sleep.sh

    Hey ahallubuntu. Here is a link to the output.

    http://dl.dropbox.com/u/50454683/bad...stem_info.html

    Thanks for the help!
    Last edited by badem4o; October 7th, 2012 at 04:44 AM.

  9. #9
    Join Date
    Jul 2005
    Beans
    2,047

    Re: Custom sleep.sh

    Sorry, that dropbox link 403's - can you try again?

    I probably can't offer you any direct solution - but you can look for one yourself. Find the name/model of the chipset and do some creative googling and see if people have suggestions for tweaks to allow suspend/resume to work correctly. You probably aren't the first one to have encountered such problems with it.

  10. #10
    Join Date
    Oct 2012
    Beans
    7

    Re: Custom sleep.sh

    Ooops sorry. I fixed it. If anyone can help that would be great. I have been googling all day with no luck so any help would be appreciated.

Page 1 of 2 12 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
  •