You are not logged in.

#1 2007-06-11 15:34:12

nick122147
Member
Registered: 2007-05-17
Posts: 33

Suspend almost working, input/output error after resume

Hi,
I have gotten suspend to ram almost working on my sony vaio sz 28 laptop. It resumes properly and I can use the terminal to list files for a while, but I cannot launch any programs, I get "input output error" It's like the machine cannot do anything new that wasn't started before the suspend. After a while some programs quits (nm-manager), because of I/O error, and then shutdown won't even finish. At first I tought the hard drive didn't work, but since I can list files in the terminal, that shouldn't be the problem.

Any ideas ?

My /etc/powersave/sleep contains

UNLOAD_MODULES_BEFORE_SUSPEND2RAM="prism54 ipw3945 i810 sky2 ath_pci "

and

SUSPEND2RAM_RESTART_SERVICES="ipw3945d networkcpufreq"


thanks,

Steinar

Offline

#2 2007-07-09 09:25:39

Ikarus
Member
From: Germany
Registered: 2007-07-05
Posts: 41

Re: Suspend almost working, input/output error after resume

I am running powersaved on a vaio c2z laptop with this config. Maybe it helps.

UNLOAD_MODULES_BEFORE_SUSPEND2RAM=""
SUSPEND2RAM_RESTART_SERVICES=""
SUSPEND2RAM_SWITCH_VT="yes"

Also you dont need to run the cpufreq service powersaved and the acpid can do this too. I disabled all of them and let the kernel
handel my cpufreq. The only thing iam doing is to tell the system on startup which govenour it should use by default, for me thats "conservative".

#!/bin/bash
#
# /etc/rc.local: Local multi-user startup script.
#
cpufreq-set -c 0 -g conservative
cpufreq-set -c 1 -g conservative

If i need another one i can adjust that via the terminal (cpufreq-set or via direct echo in /sys) or gnomes cpufreq applet.

For using the kernel handler correctly you have modify these entries
1. in /etc/powersave/cpufreq to prevent powersaved from setting cpufreq.

CPUFREQ_ENABLED="no"

2. in /etc/acpi/handlers.sh to prevent acpid from setting corespeed back to kernels default govenour (mostly performance) after returning from suspend.

ac_adapter)
                case "$2" in
                        AC)
                                case "$4" in
                                        00000000)
                                                echo -n $minspeed >$setspeed        <--- add a # before this command
                                                #/etc/laptop-mode/laptop-mode start
                                        ;;
                                        00000001)
                                                echo -n $maxspeed >$setspeed       <--- add a # before this command
                                                #/etc/laptop-mode/laptop-mode stop
                                        ;;
                                esac
                                ;;
                        *) logger "ACPI action undefined: $2" ;;
                esac
                ;;

Have fun wink

Offline

Board footer

Powered by FluxBB