F11 -> F12 woes

Jeff Kittle jkittle at wi.rr.com
Mon Apr 5 15:05:44 UTC 2010


do_suspend() is defined here:

do_suspend() { echo -n "mem" >/sys/power/state; }

Suspect some other process is writing or reading or has applied a on lock to
>/sys/power/state

-----Original Message-----
From: users-bounces at lists.fedoraproject.org
[mailto:users-bounces at lists.fedoraproject.org] On Behalf Of Kevin J.
Cummings
Sent: Sunday, April 04, 2010 11:38 PM
To: Community support for Fedora users
Subject: Re: F11 -> F12 woes

On 04/05/2010 12:02 AM, Jeff Kittle wrote:
>> /usr/lib64/pm-utils/pm-functions: line 259: echo: write error: Device
> 
> Take a look at /usr/lib64/pm-utils/pm-functions to see what device is
busy,
> it looks like a shell script

Here it is:

> # always fall back to kernel methods if nothing else was declared
> 
> if [ -z "$SUSPEND_MODULE" ]; then
> 	if grep -q mem /sys/power/state; then
> 		SUSPEND_MODULE="kernel"
> 		do_suspend() { echo -n "mem" >/sys/power/state; }
> 	elif [ -c /dev/pmu ] && pm-pmu --check; then
> 		SUSPEND_MODULE="kernel"
> 		do_suspend() { pm-pmu --suspend; }
> 	fi
> fi

Line 259 is the line with echo -n "mem" >/sys/power/state;

I didn't find do_suspend() in that file though.

-- 
Kevin J. Cummings
kjchome at rcn.com
cummings at kjchome.homeip.net
cummings at kjc386.framingham.ma.us
Registered Linux User #1232 (http://counter.li.org)
-- 
users mailing list
users at lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines



More information about the users mailing list