From mboxrd@z Thu Jan 1 00:00:00 1970 From: Petros Kolyvas Subject: Suspend to RAM issus on a Dell 700m Date: Sun, 26 Jun 2005 12:36:48 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Message-ID: <42BED9A0.9050803@gmail.com> Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-acpi@vger.kernel.org Hi Folks, I finally got the "mem" state to function on my laptop (a state which I use extensively in that "other" OS when I'm working.) A few issues though... my cpu, upon return, powers up to full-speed making it impossible to truly conserve power, sort of defeating the whole process. It seems a rogue process (one which I can't kill)... listed only as 'sh -i" is using ~99% of the available CPU cycles. I have no idea where it's coming from. Additionally the system gets less and less responsive with each return from the "mem" state. Probably due to many of these rogue processes building up and bogging the system down. Below is the script I used, which I found online and modified (very little) as needed. Any insight would be greatly appreciated. Oh, I'm using FC4 w/ 2.6.12 (unpatched.) Thanks, Pk /// script to drive the system to S3 # suspend-to-ram if [-e /suspending]; then echo "already in the process of suspending. Please be patient." else /bin/touch /suspending # Step 1: preparing sleep /usr/bin/killall -s SIGUSR1 cpuspeed /usr/bin/chvt 1 # necessary to make DRI work /sbin/service anacron stop # USB doesn't suspend without unloading first /sbin/rmmod ehci_hcd /sbin/rmmod uhci_hcd #save the system time /sbin/hwclock --adjust #/sbin/rmmod wacom # only necessary of you have wacom stylus /sbin/rmmod -as /bin/sync # Step 2: send sleep command via ACPI echo mem > /sys/power/state # Step 3: wake-up and reload # restart the BIOS code for the video card /usr/bin/video_post # restore clock /sbin/hwclock --hctosys # reload USB modules /sbin/modprobe ehci_hcd /sbin/modprobe uhci_hcd # initialise X xinit /bin/false -- :1 /usr/bin/chvt 7 # restore resvices /sbin/service anacron start /sbin/service cpuspeed restart rm /suspending fi ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click