Fedora Linux Support Community & Resources Center
Prev Previous Post   Next Post Next
  #1  
Old 9th July 2007, 03:55 AM
ciphermonk Offline
Registered User
 
Join Date: May 2006
Posts: 70
Getting Suspend working properly on a Lenovo T61

Suspend is one of the last things that I had to tackle as far as getting the things that I commonly use working on the T61. Here is how I did it.


You're going to need to use to use a utility called s2ram. It's part of the suspend package. You can pull it off the 0.5 build of it off of SourceForge but the makefile in that tarball is broken. I've attached the tarball with the makefile fixed so that it'll build cleanly. To get suspend to ram working, you'll need to do the following.


tar zxvf suspend-0.5.tar.gz
cd suspend-0.5
make
sudo make install


This will compile and install the s2ram utility and supporting apps. They'll be installed under /usr/local/sbin. With s2ram installed, there are a few house keeping tasks that we need to do before the utility will integrate cleanly into gnome. First we'll need to set the SUID on the installed binaries so that they can be run as a non-root user.

sudo chmod +s /usr/local/sbin/s2ram
sudo chmod +s /usr/local/sbin/s2disk
sudo chmod +s /usr/local/sbin/s2both
sudo chmod +s /usr/local/sbin/resume
sudo chmod +s /usr/local/sbin/swap-offset

With that complete, we'll need to make a quick hack to the script that the "Suspend" menu option calls to put the laptop into suspend mode. The scripts associated with suspend and hibernate are located at /usr/lib/hal/scripts if you're running the 32bit kernel and /usr/lib64/hal/scripts if you're running x86_64. The script that we're interested for suspend is called hal-system-power-suspend. We'll make a backup of the script and then modify it to suit our needs. The following instructions are written for 32 bit users. Just substitute, "lib64" for "lib" if you're running 64 bit Fedora.

cd /usr/lib/hal/scripts
sudo cp hal-system-power-suspend hal-system-power-suspend.backup

Now using the editor of your choice open the hal-system-power-suspend file and modify so that the only thing in the file is the following

#!/bin/sh

/usr/local/sbin/s2ram -f -a1


I've uploaded mine (hal-system-power-suspend.txt) so you can see what the file should look like. At this point reboot your computer. Log back in and try out the "System -> Suspend" menu option. It should suspend your laptop. You can then press power to resume. I've found that everything works including wireless although wireless can take 15 - 25 seconds or so to reconnect. The beauty of this method is that there aren't any modules to unload and reload. It just "works". At this point, you can goto System --> Preferences --> System --> Power Management to setup how/when suspend is enabled; ie; whether the laptop goes into suspend when the lid is closed or not.

If I've missed anything or if a point needs more clarification, please let me know. :-)
Attached Files
File Type: gz suspend-0.5.tar.gz (161.6 KB, 654 views)
File Type: txt hal-system-power-suspend.txt (40 Bytes, 2095 views)

Last edited by ciphermonk; 9th July 2007 at 04:09 AM.
Reply With Quote
 

Tags
lenovo, properly, suspend, t61, working

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Suspend / hibernate problem - IBM Lenovo Thinkpad T60 (32bit centrio, ATI mobi X1300) pescobar Using Fedora 11 19th July 2009 02:58 AM
acpi doesn't work properly on lenovo x60 tablet freund Hardware & Laptops 2 9th April 2009 01:44 PM
Lenovo y530 suspend problems avix1000 Hardware & Laptops 0 23rd March 2009 12:22 PM
Suspend not working properly on fc7 DELL inspiron 6000 with i810 Driver Botmaster Hardware & Laptops 4 24th August 2007 11:24 AM
suspend/hibernate doesn't work in fedora7 with lenovo 3000N100 laptop deepsa Hardware & Laptops 6 11th July 2007 03:19 AM


Current GMT-time: 15:32 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat