Results 1 to 4 of 4

Thread: Custom suspend utility: best practice in Maverick

  1. #1
    Join Date
    Feb 2010
    Location
    British Columbia, Canada
    Beans
    54
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Custom suspend utility: best practice in Maverick

    I'm running Maverick on a Portege 3500. Everything's great except suspend, which I cannot seem to make work except with "acpitool -s".

    I'd like to modify the suspend scripts to use that utility. Is there a single suspend hook that I can override, or do I need to modify the button handlers directly?

    Alternately, is there documentation somewhere explaining the architectural thinking behind the ACPI scripts?

  2. #2
    Join Date
    Aug 2008
    Beans
    40

    Re: Custom suspend utility: best practice in Maverick

    Dear linux user,

    replace the following file (symbolic link) with this script:
    login as root:

    sudo -i
    mv /usr/sbin/pm-suspend /usr/sbin/pm-suspend.bak
    gedit /usr/sbin/pm-suspend

    and type in gedit:

    #!/bin/sh
    #
    acpitool -s

    save file and exit gedit

    make /usr/sbin/pm-suspend executable

    chmod +x /usr/sbin/pm-suspend

    This works fine for me. Let me know if it does not work, kind regards, Otto Meijer

  3. #3
    Join Date
    Jul 2006
    Location
    Here
    Beans
    9,689

    Re: Custom suspend utility: best practice in Maverick

    gksudo gedit /etc/acpi/sleep.sh

    change "pm-suspend" to your command

    there's also 1 for the button & lid if you use those.

  4. #4
    Join Date
    Feb 2010
    Location
    British Columbia, Canada
    Beans
    54
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Custom suspend utility: best practice in Maverick

    Thanks Kerry, I spent a couple of hours playing with /etc/acpi/lid.sh and sleep.sh, but I could not prevent it from irretrievably disabling networking and switching to (blank) VT8 on resume.

    Ultimately I gave up and went with Otto's hack. Replacing /usr/sbin/pm-suspend had exactly the desired effect, after I set SUSPEND_METHODS="pm-utils" in /etc/default-acpi-support.

    Thank you both for your suggestions.

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
  •