View | Details | Raw Unified | Return to bug 428284
Collapse All | Expand All

(-)/usr/lib/pm-utils/functions (-1 / +18 lines)
Lines 124-130 Link Here
124
124
125
do_suspend()
125
do_suspend()
126
{
126
{
127
	local RET
127
	local RET=1
128
	if [ -x /usr/sbin/s2ram ]; then
128
	if [ -x /usr/sbin/s2ram ]; then
129
		set -x
129
		set -x
130
		/usr/sbin/s2ram $S2RAM_OPTS
130
		/usr/sbin/s2ram $S2RAM_OPTS
Lines 134-139 Link Here
134
		pm-pmu --suspend || echo -n "mem" > /sys/power/state
134
		pm-pmu --suspend || echo -n "mem" > /sys/power/state
135
		RET=$?
135
		RET=$?
136
	fi
136
	fi
137
	if [ $RET -ne 0 ]; then
138
	  echo "manual s2ram"
139
	  set -x
140
	  cons=$(fgconsole); chvt 1
141
	  
142
	  echo -n 1 >/proc/sys/kernel/acpi_video_flags || echo "use kernel parameter acpi_sleep=s3_bios,s3_mode instead"
143
	  #state="$(vbetool vbemode get)"
144
	  sync; sync
145
	  echo -n mem >/sys/power/state
146
	  #echo 3 > /proc/acpi/sleep
147
	  #vbetool post
148
	  #vbetool vbemode set "$(state)"
149
	  /usr/local/bin/video_post
150
	  chvt 7
151
	  set +x
152
	  RET=0
153
	fi
137
	return $RET
154
	return $RET
138
}
155
}
139
156

Return to bug 428284