View Full Version : [SOLVED] Custom suspend utility: best practice in Maverick
November 27th, 2010, 08:40 PM
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?
November 27th, 2010, 11:16 PM
Dear linux user,
replace the following file (symbolic link) with this script:
login as root:
mv /usr/sbin/pm-suspend /usr/sbin/pm-suspend.bak
and type in gedit:
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
November 27th, 2010, 11:26 PM
gksudo gedit /etc/acpi/sleep.sh
change "pm-suspend" to your command
there's also 1 for the button & lid if you use those.
November 28th, 2010, 06:28 PM
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.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.