public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: 2.6.9-rc3 software suspend (pmdisk) stopped working
@ 2004-09-30 16:19 Mitch
  2004-09-30 17:00 ` Kevin Fenzi
  0 siblings, 1 reply; 24+ messages in thread
From: Mitch @ 2004-09-30 16:19 UTC (permalink / raw)
  To: linux-kernel


Kevin Fenzi <kevin-linux-kernel () scrye ! com> wrote:
 >
 > What do you get from:
 >
 > cat /sys/power/disk
 > ?

Do you mean /sys/power/state ? /sys/power/disk is for powering off the
disk ? Anyhow here are both of them

	~% cat /sys/power/disk
	shutdown
	~% cat /sys/power/state
	standby mem disk

Remember this worked fine in -rc2.

 > If it says "platform" you might try:
 >
 > echo "shutdown" > /sys/power/disk
 >
 > I wonder how many of Pavel's speed improvment patches went in with the
 > pmdisk/swsusp merge in rc3? I guess I can try it and see. :)

The speed improvement that made it stop working surely went in ;-)

Cheers
Mitch

^ permalink raw reply	[flat|nested] 24+ messages in thread
* Re: 2.6.9-rc3 software suspend (pmdisk) stopped working
@ 2004-10-03 17:02 Mitch
  2004-10-04 10:43 ` Pavel Machek
  0 siblings, 1 reply; 24+ messages in thread
From: Mitch @ 2004-10-03 17:02 UTC (permalink / raw)
  To: ottdot, pavel, linux-kernel

Well it appears that Jesse and Kevin are right and irrespective of the 
setting of /sys/power/disk, i can get the machine to suspend by first 
writing 'platform' into the 'disk' file. And it resumes fine ok. Seems 
to be a false alarm on my part Pavel, although the doc's need updating 
and /sys/power/disk made to show the correct supported suspension methods ?

Thanks for the tips guys (i didn't need the c code Jesse)
M

-------- Original Message --------
Subject: Re: 2.6.9-rc3 software suspend (pmdisk) stopped working
Date: Sat, 02 Oct 2004 16:32:33 -0400
From: Jesse <ottdot@magma.ca>
To: Mitch <Mitch@HasBox.COM>
CC: pavel@suse.cz, linux-kernel@vger.kernel.org
References: <415FFE77.7090908@HasBox.COM>

Mitch wrote:
> Hi Jesse,
> 
> as shown below, that is  not one of the options presented to me in my 
> 'disk' file
> 
> % cat /sys/power/disk
> shutdown
> 

My machine shows the same thing. Only shutdown in /sys/power/disk

Grab the code from Documentation/power/swsusp.txt (starts at line 151)

I compiled it to an executable called swsusp and I then run 'swsusp' to
start the suspend process.

2.6.9-rc3 was my first attempt at suspend, and it worked as designed on
the first try.

Jesse


^ permalink raw reply	[flat|nested] 24+ messages in thread
* Re: 2.6.9-rc3 software suspend (pmdisk) stopped working
@ 2004-10-03 13:28 Mitch
  2004-10-02 20:32 ` Jesse
  0 siblings, 1 reply; 24+ messages in thread
From: Mitch @ 2004-10-03 13:28 UTC (permalink / raw)
  To: ottdot, pavel, linux-kernel

Hi Jesse,

as shown below, that is  not one of the options presented to me in my 
'disk' file

% cat /sys/power/disk
shutdown

My machine can only use the shutdown keyword - which worked in -rc3.

Mitch

-------- Original Message --------
Subject: Re: 2.6.9-rc3 software suspend (pmdisk) stopped working
Date: Sun, 03 Oct 2004 09:12:52 -0400
From: Jesse <ottdot@magma.ca>
To: Mitch <Mitch@0Bits.COM>
CC: pavel@suse.cz, linux-kernel@vger.kernel.org
References: <415FFA57.8040601@0Bits.COM>

Mitch wrote:
> Hi,
> 
> Ok, here is the kernel messages attached. Nothing of real value in it as 
> far as i can see (even with PM_DEBUG on), but you may spot something. 
> Basically the suspend process appears to start but the machine is never 
> powered off and the resume kernel routines are run immediately bringing 
> the kernel/system back to it's resumed state. The *same* kernel config 
> works on -rc2. If i hard power off the machine then i have to fsck my 
> disks on bootup (as expected) and the suspended image is not loaded.
> Clearly the latest patches have broken something but what ? Can anyone 
> else without ACPI suspend on -rc3 ?
> 

It's working for me on my Thinkpad 600x (ACPI is not compiled in) Used
'reboot' command from Documentation.power/swsusp.txt

Jesse



^ permalink raw reply	[flat|nested] 24+ messages in thread
* Re: 2.6.9-rc3 software suspend (pmdisk) stopped working
@ 2004-10-03 13:10 Mitch
  2004-10-03 13:12 ` Jesse
  0 siblings, 1 reply; 24+ messages in thread
From: Mitch @ 2004-10-03 13:10 UTC (permalink / raw)
  To: pavel, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2082 bytes --]

Hi,

Ok, here is the kernel messages attached. Nothing of real value in it as 
far as i can see (even with PM_DEBUG on), but you may spot something. 
Basically the suspend process appears to start but the machine is never 
powered off and the resume kernel routines are run immediately bringing 
the kernel/system back to it's resumed state. The *same* kernel config 
works on -rc2. If i hard power off the machine then i have to fsck my 
disks on bootup (as expected) and the suspended image is not loaded.
Clearly the latest patches have broken something but what ? Can anyone 
else without ACPI suspend on -rc3 ?


 > Check your .config to see if it is enabled, and make sure you have
 > resume= on command line. If it still fails, mail me dmesg of failed
 > attempt.

As i keep mentioning, i have a problem with *shutting down* not 
resuming. I'm assuming if a good memory image is written and machine 
powered off correctly i will be able to resume correctly (with the 
recent hihgmem fix). We should be looking at why APM BIOS shutdown 
routine is not working correctly.

My kernel values

% grep -i CONFIG_PM .config
CONFIG_PM=y
CONFIG_PM_DEBUG=y
CONFIG_PM_STD_PARTITION="/dev/hda2"

/sys/power% cat disk
shutdown
/sys/power% cat state
standby mem disk

To suspend i do

echo -n disk >/sys/power/state

Thanks for any more suggestions
M
-------- Original Message --------
Subject: Re: 2.6.9-rc3 software suspend (pmdisk) stopped working
Date: Sat, 2 Oct 2004 16:22:05 +0200
From: Pavel Machek <pavel@suse.cz>
To: Mitch  <Mitch@0Bits.COM>
CC: linux-kernel@vger.kernel.org

Hi!

 > I don't understand. The highmem issue was when resuming, not when
 > suspending ? My laptop doesn't suspend with -rc3. Please elaborate ?
 > What config do i change ? Remember i don't have ACPI, so unless pmdisk
 > supports APM BIOS poweroff, then -rc3 is useless to me.

There's no pmdisk in -rc3.

swsusp in -rc3 should support apm.

Check your .config to see if it is enabled, and make sure you have
resume= on command line. If it still fails, mail me dmesg of failed
attempt.

								Pavel

[-- Attachment #2: kernellog.txt --]
[-- Type: text/plain, Size: 1421 bytes --]

Oct  3 14:39:19 client kernel: Stopping tasks: =============================================|
Oct  3 14:39:19 client kernel: Freeing memory: .................................................|
Oct  3 14:39:19 client kernel: uhci_hcd 0000:00:1d.2: suspend_hc
Oct  3 14:39:19 client kernel: uhci_hcd 0000:00:1d.1: suspend_hc
Oct  3 14:39:19 client kernel: uhci_hcd 0000:00:1d.0: suspend_hc
Oct  3 14:39:19 client kernel: PM: Attempting to suspend to disk.
Oct  3 14:39:19 client kernel: PM: snapshotting memory.
Oct  3 14:39:19 client kernel: PCI: Setting latency timer of device 0000:00:1d.0 to 64
Oct  3 14:39:19 client kernel: PCI: Setting latency timer of device 0000:00:1d.0 to 64
Oct  3 14:39:19 client kernel: PCI: Setting latency timer of device 0000:00:1d.1 to 64
Oct  3 14:39:19 client kernel: PCI: Setting latency timer of device 0000:00:1d.1 to 64
Oct  3 14:39:19 client kernel: PCI: Setting latency timer of device 0000:00:1d.2 to 64
Oct  3 14:39:19 client kernel: PCI: Setting latency timer of device 0000:00:1d.2 to 64
Oct  3 14:39:21 client kernel: PCI: Found IRQ 11 for device 0000:00:1f.1
Oct  3 14:39:21 client kernel: PCI: Sharing IRQ 11 with 0000:00:1d.2
Oct  3 14:39:21 client kernel: uhci_hcd 0000:00:1d.1: wakeup_hc
Oct  3 14:39:21 client kernel: uhci_hcd 0000:00:1d.2: wakeup_hc
Oct  3 14:39:21 client kernel: uhci_hcd 0000:00:1d.0: wakeup_hc
Oct  3 14:39:21 client kernel: Restarting tasks... done

^ permalink raw reply	[flat|nested] 24+ messages in thread
* Re: 2.6.9-rc3 software suspend (pmdisk) stopped working
@ 2004-10-02 13:22 Mitch
  2004-10-02 16:22 ` Pavel Machek
  0 siblings, 1 reply; 24+ messages in thread
From: Mitch @ 2004-10-02 13:22 UTC (permalink / raw)
  To: pavel, linux-kernel

I don't understand. The highmem issue was when resuming, not when
suspending ? My laptop doesn't suspend with -rc3. Please elaborate ?
What config do i change ? Remember i don't have ACPI, so unless pmdisk
supports APM BIOS poweroff, then -rc3 is useless to me.

Thanks
M
-------- Original Message --------
Subject: Re: 2.6.9-rc3 software suspend (pmdisk) stopped working
Date: Fri, 1 Oct 2004 15:40:05 +0200
From: Pavel Machek <pavel@suse.cz>
To: Mitch DSouza <Mitch@0Bits.COM>
CC: linux-kernel@vger.kernel.org
References: <415D311E.2050006@0Bits.COM>

Hi!

> I thought i was going barmy. I've reverted back to -rc2 which
> pmdisk works flawlessly on my laptop.

Actually problem turned out to be in highmem. Unless you
are using highmem, -rc3 should work. You'll need to change config if
switching from pmdisk to swsusp...

				Pavel

^ permalink raw reply	[flat|nested] 24+ messages in thread
* Re: 2.6.9-rc3 software suspend (pmdisk) stopped working
@ 2004-10-01 10:27 Mitch DSouza
  2004-10-01 13:40 ` Pavel Machek
  0 siblings, 1 reply; 24+ messages in thread
From: Mitch DSouza @ 2004-10-01 10:27 UTC (permalink / raw)
  To: linux-kernel

Thanks Pavel,

I thought i was going barmy. I've reverted back to -rc2 which
pmdisk works flawlessly on my laptop.

Thanks
Mitch

-------- Original Message --------
Subject: Re: 2.6.9-rc3 software suspend (pmdisk) stopped working
Date: Fri, 1 Oct 2004 12:23:51 +0200
From: Pavel Machek <pavel@ucw.cz>
To: Mitch <Mitch@0Bits.COM>
CC: linux-kernel@vger.kernel.org
References: <415C2633.3050802@0Bits.COM>

Hi!

> Anyone noticed that pmdisk software suspend stopped working in -rc3 ?
> In -rc2 it worked just fine. My script was
> 
>  chvt 1
>  echo -n shutdown >/sys/power/disk
>  echo -n disk >/sys/power/state
>  chvt 7
> 
> In -rc3 it appears to write pages out to disk, but never shuts down the
> machine. Is there something else i need to do or am missing ?

You are not missing anything, it is somehow broken. I'll try to find
out what went wrong and fix it. In the meantime, look at -mm series,
it works there.
								Pavel


^ permalink raw reply	[flat|nested] 24+ messages in thread
* Re: 2.6.9-rc3 software suspend (pmdisk) stopped working
@ 2004-09-30 17:40 Mitch
  0 siblings, 0 replies; 24+ messages in thread
From: Mitch @ 2004-09-30 17:40 UTC (permalink / raw)
  To: linux-kernel


Kevin Fenzi <kevin-linux-kernel () scrye ! com> wrote:
 >
 > /sys/power/disk is for deciding how to do suspend to disk.
 > shutdown = do it with the in kernel code
 > platform = do it with the BIOS code
 >
 > Mitch>  ~% cat /sys/power/disk
 > Mitch>  shutdown
 > Mitch>  ~% cat /sys/power/state
 > Mitch>  standby mem disk

Well i've not got 'platform' in my /sys/power/disk, so how do
i enable it ?

 > Mitch> Remember this worked fine in -rc2.
 >
 > Yes, but in rc3 the merge between pmdisk and swsusp1 happened.
 > It basically has totally changed between rc2 and rc3.
 >
 > So, looks like that setting is right.
 >
 > So if you wait until it's done writing out pages and hard power it
 > off, does it resume?

Well it just continues the script and reenables power to all devices,
and starts the network, spins up disk, etc, so i'm not sure it's wise
to hard power off. There's no pause inbetween.

 > Does it work if you boot with:
 > acpi=off

I don't use ACPI. My lappie only supports APM. The bios did power off
the laptop correctly in -rc2.

 > >> I wonder how many of Pavel's speed improvment patches went in with
 > >> the pmdisk/swsusp merge in rc3? I guess I can try it and see. :)
 >
 > Mitch> The speed improvement that made it stop working surely went in
 > Mitch> ;-)
 >
 > Well, thats not one we want. ;)

^ permalink raw reply	[flat|nested] 24+ messages in thread
* 2.6.9-rc3 software suspend (pmdisk) stopped working
@ 2004-09-30 15:28 Mitch
  2004-09-30 15:56 ` Kevin Fenzi
  2004-10-01 10:23 ` Pavel Machek
  0 siblings, 2 replies; 24+ messages in thread
From: Mitch @ 2004-09-30 15:28 UTC (permalink / raw)
  To: linux-kernel

Hi,

Anyone noticed that pmdisk software suspend stopped working in -rc3 ?
In -rc2 it worked just fine. My script was

  chvt 1
  echo -n shutdown >/sys/power/disk
  echo -n disk >/sys/power/state
  chvt 7

In -rc3 it appears to write pages out to disk, but never shuts down the
machine. Is there something else i need to do or am missing ?

Thanks
M

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2004-10-04 16:45 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-30 16:19 2.6.9-rc3 software suspend (pmdisk) stopped working Mitch
2004-09-30 17:00 ` Kevin Fenzi
  -- strict thread matches above, loose matches on Subject: below --
2004-10-03 17:02 Mitch
2004-10-04 10:43 ` Pavel Machek
2004-10-04 16:43   ` Stefan Seyfried
2004-10-03 13:28 Mitch
2004-10-02 20:32 ` Jesse
2004-10-03 13:10 Mitch
2004-10-03 13:12 ` Jesse
2004-10-02 13:22 Mitch
2004-10-02 16:22 ` Pavel Machek
2004-10-01 10:27 Mitch DSouza
2004-10-01 13:40 ` Pavel Machek
2004-09-30 17:40 Mitch
2004-09-30 15:28 Mitch
2004-09-30 15:56 ` Kevin Fenzi
2004-10-01 10:21   ` Pavel Machek
2004-10-01 10:23 ` Pavel Machek
2004-10-01 16:03   ` Kevin Fenzi
2004-10-01 18:55     ` Rafael J. Wysocki
2004-10-01 19:25       ` Kevin Fenzi
2004-10-01 19:53         ` Rafael J. Wysocki
2004-10-01 19:57           ` Kevin Fenzi
2004-10-01 21:31             ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox