Skip to contentSkip to conversation

Desktop and S3 suspend the Holy Grail of ACPI?

DISCUSSION nick 5 participants 24 messages Feb 22, 2004 – Mar 9, 2004 18 messages not in the archive

Subsystems (3)
lore
Share & tools
lore

nick

author
#0 lore raw

I am new to ACPI but I have searched the archives, looked at the MAN pages used Google to the best of my abilities and I still have some questions about ACPI. My basic goal is to be able to suspend my desktop machine to S3 when not in use. I need to use the
machine several times throughout the day, and feel it is a waste to leave
it on continuously. The system spec are: Intel D875PBZ, Intel P4 3GHZ,
Radeonm 9700 pro, Sounblaster Live, Debian unstable with 2.4.23 and
2.6.2 kernels available, both with ACPI compiled as modules. Pressing
the power button once gracefully shuts down the machine running either kernel.

After reading the documentation, I am still not sure how to try to suspend to S3. Is there anyone with this motherboard succesfully using S3 suspend? Is it reliable and stable, suspend after suspend. Is S3 suspend with Linux on the desktop the Holy Grail of ACPI? The machines suspends to S3 in Windows 2000 Pro, also shuts all the fans down too, totally silent.

Any advice would be appreciated.
Can anyone recommend any Pentium 3/4 desktop motherboard that will S3 reliably in Linux?

If this is not possible yet, are there any other Linux hardware problems where S3 works reliably?

Nick

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 19 lines · nick

I am new to ACPI but I have searched the archives, looked at the MAN pages used Google to the best of
my abilities and I still have some questions about ACPI. My basic goal is to be able
to suspend my desktop machine to S3 when not in use. I need to use the machine several times throughout the day, and feel it is a waste to leave it on continuously. The system spec are: Intel D875PBZ, Intel P4 3GHZ, Radeonm 9700 pro, Sounblaster Live, Debian unstable with 2.4.23 and 2.6.2 kernels available, both with ACPI compiled as modules. Pressing the power button once gracefully shuts down the machine running either kernel.

After reading the documentation, I am still not sure how to try to suspend to S3. Is there anyone with this motherboard succesfully using S3 suspend? Is it reliable and stable, suspend after suspend. Is S3 suspend with Linux on the desktop the Holy Grail of ACPI? The machines suspends to S3 in Windows 2000 Pro, also shuts all the fans down too, totally silent.

Quoted 7 lines

Any advice would be appreciated.
Can anyone recommend any Pentium 3/4 desktop motherboard that will S3 reliably in Linux?

If this is not possible yet, are there any other Linux hardware problems where S3 works reliably?

There is at least one problem for which I don't think that you will have S3 working even in the near future.
You do have a radeon 9700 and due to lack of supports by ATI those days, I don't see how a developper can include power management codes in any drivers other than by a cycle of guess, then try and guess again what happens on errors.
Note that S3 may work though if you do not have AGPGART compiled, and you do not use any kind of binary-only drm drivers from ATI.

Cheers,

Signature · 11 lines
Bruno Ducrot

--  Which is worse:  ignorance or apathy?
--  Don't know.  Don't care.


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 10 lines · Bruno Ducrot

There is at least one problem for which I don't think that you will have S3 working even in the near future.
You do have a radeon 9700 and due to lack of supports by ATI those days, I don't see how a developper can include power management codes in any drivers other than by a cycle of guess, then try and guess again what happens on errors.
Note that S3 may work though if you do not have AGPGART compiled, and you do not use any kind of binary-only drm drivers from ATI.

Quoted 4 lines

Cheers,

Would an older ATI card, like a Rage 128 Pro or original Radeon (7000 I believe) work?

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click

A message that is not in the archive (sent off-list or not yet received): [email protected]

#6 lore raw
Quoted 12 lines · Nick Lidakis
Quoted 10 lines · Bruno Ducrot

There is at least one problem for which I don't think that you will have S3 working even in the near future.
You do have a radeon 9700 and due to lack of supports by ATI those days, I don't see how a developper can include power management codes in any drivers other than by a cycle of guess, then try and guess again what happens on errors.
Note that S3 may work though if you do not have AGPGART compiled, and you do not use any kind of binary-only drm drivers from ATI.

Quoted 7 lines
Quoted 4 lines

Cheers,

Would an older ATI card, like a Rage 128 Pro or original Radeon (7000 I believe) work?

Yes. The radeon 7000 should be ok, and to be fair for ATI, they have rewritten and given back the portion for this on the new radeon frame buffer.

Signature · 11 lines
Bruno Ducrot

--  Which is worse:  ignorance or apathy?
--  Don't know.  Don't care.


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
#7 lore raw
In reply to a message not in the archive
Quoted 19 lines · nick

I am new to ACPI but I have searched the archives, looked at the MAN pages used Google to the best of
my abilities and I still have some questions about ACPI. My basic goal is to be able
to suspend my desktop machine to S3 when not in use. I need to use the machine several times throughout the day, and feel it is a waste to leave it on continuously. The system spec are: Intel D875PBZ, Intel P4 3GHZ, Radeonm 9700 pro, Sounblaster Live, Debian unstable with 2.4.23 and 2.6.2 kernels available, both with ACPI compiled as modules. Pressing the power button once gracefully shuts down the machine running either kernel.

After reading the documentation, I am still not sure how to try to suspend to S3. Is there anyone with this motherboard succesfully using S3 suspend? Is it reliable and stable, suspend after suspend. Is S3 suspend with Linux on the desktop the Holy Grail of ACPI? The machines suspends to S3 in Windows 2000 Pro, also shuts all the fans down too, totally silent.

Quoted 6 lines

Any advice would be appreciated.
Can anyone recommend any Pentium 3/4 desktop motherboard that will S3 reliably in Linux?

If this is not possible yet, are there any other Linux hardware problems where S3 works reliably?

I've got a laptop running Fedora Core 2 out of the box, and all I do is

# echo 3 >/proc/acpi/sleep
and I use the power button to wake it up.

I've also got a D875PBZ, however

[[email protected] /]# echo -n 3 >/proc/acpi/sleep Stopping tasks: ==============================
stopping tasks failed (1 tasks remaining)
Restarting tasks...<6> Strange, katad-1 not stopped
done
[[email protected] /]#

which I guess is due to its SATA boot drive.
Do you have a regular PATA drive?

cheers,
-Len

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click

A message that is not in the archive (sent off-list or not yet received): [email protected]

#9 lore raw
Quoted 17 lines · Len Brown
Quoted 2 lines

I've got a laptop running Fedora Core 2 out of the box, and all I do is

# echo 3 >/proc/acpi/sleep
and I use the power button to wake it up.

I've also got a D875PBZ, however

[[email protected] /]# echo -n 3 >/proc/acpi/sleep Stopping tasks: ==============================
stopping tasks failed (1 tasks remaining)
Restarting tasks...<6> Strange, katad-1 not stopped done
[[email protected] /]#

Quoted 10 lines

which I guess is due to its SATA boot drive.
Do you have a regular PATA drive?

cheers,
-Len

Yes I do have regular PATA drives. Could you give me the details on your configuration? Other hardware, kernel and patches applied?

Thanks.

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click

A message that is not in the archive (sent off-list or not yet received): [email protected]

#11 lore raw
Quoted 1 line
Quoted 1 line

...D875PBZ...

On this box S1 works for me, but S3 doesn't resume (below)

Note that you need to enable S3 in the BIOS SETUP to try S3.

Note that neither S1 nor S3 will do anything on the SMP kernel. (and unfortunately, they will not even tell you that when you try)

-Len

BIOS SETUP: Power/ACPI
ACPI Suspend State [S3 State] (default is S1)

boot FC2-test1 UP kernel

# cat /proc/acpi/sleep
S0 S1 S3 S4 S5
# /etc/init.d/acpid stop
(to make power button resume event not initiate a shut-down)
# echo 1 >/proc/acpi/sleep
Stopping tasks: ================================|
psmouse.c: bad data from KBC - timeout bad parity
hdc: start_power_step(step: 0)
hdc: completing PM request, suspend
hda: start_power_step(step: 0)
hda: start_power_step(step: 1)
hda: complete_power_step(step: 1, stat: 50, err: 0)
hda: completing PM request, suspend
psmouse.c: bad data from KBC - timeout bad parity
psmouse.c: bad data from KBC - timeout bad parity
PM: Entering state.
i8042.c: Can't restore CTR.

<press power button here to resume>

Back to C!
i8042.c: Can't read CTR while initializing i8042.
i8042: resume failed
PM: Finishing up.
PCI: Setting latency timer of device 0000:00:1d.0 to 64
PCI: Setting latency timer of device 0000:00:1d.1 to 64
PCI: Setting latency timer of device 0000:00:1d.2 to 64
PCI: Setting latency timer of device 0000:00:1d.3 to 64
hda: Wakeup request inited, waiting for !BSY...
hda: start_power_step(step: 1000)
e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex
blk: queue f7dcb5c0, I/O limit 4095Mb (mask 0xffffffff)
hda: completing PM request, resume
hdc: Wakeup request inited, waiting for !BSY...
hdc: start_power_step(step: 1000)
hdc: completing PM request, resume
Restarting tasks... done
#

system running normally here.

now try S3:

# echo 3 >/proc/acpi/sleep
Stopping tasks: =================================|
hdc: start_power_step(step: 0)
hdc: completing PM request, suspend
hda: start_power_step(step: 0)
hda: start_power_step(step: 1)
hda: complete_power_step(step: 1, stat: 50, err: 0)
hda: completing PM request, suspend
PM: Entering state.

<power is off, press power button here to wake up system>

here a bunch of garbled junk comes out my serial console. But video is not restored to my matrox mystique FB. ping doesn't work.

Curiously CTRL-ALT-DEL results in the following on the serial console:

quotaoff: numerical sysctl 5 16 8 is obsolete.
md: stopping all md devices.
md: md0 switched to read-only mode.
Restarting system.

<and the system reboots here>

So it seems that the system did resume and talk to the keyboard at least...

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click

A message that is not in the archive (sent off-list or not yet received): [email protected]

#13 lore raw

You can enable S1/S3 with SMP with the "noirqbalance" boot parameter (to disable kirqd which refuses to die during suspend) and this patch:

kernel/power/main.c +2 -0
diff -Nru a/kernel/power/main.c b/kernel/power/main.c
@@ -144,11 +144,13 @@
 	if (down_trylock(&pm_sem))
 		return -EBUSY;
 
+#if 0
 	/* Suspend is hard to get right on SMP. */
 	if (num_online_cpus() != 1) {
 		error = -EPERM;
 		goto Unlock;
 	}
+#endif
 
 	if (state == PM_SUSPEND_DISK) {
 		error = pm_suspend_disk();

-Huw

Signature · 9 lines
Huw Rogers <count0-tC47gz4GrgtWk0Htik3J/[email protected]>



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
#14 lore raw
In reply to a message not in the archive
Quoted 10 lines · Len Brown
Quoted 3 lines
Quoted 3 lines

...D875PBZ...

On this box S1 works for me, but S3 doesn't resume (below)

Note that you need to enable S3 in the BIOS SETUP to try S3.

I do have S3 enabled in the BIOS. I just grabbed Debian's kernel-source-2.6.3 and compiled it without SMP support. cat /sys/power/state gives me standby mem disk.
I tried echo -n disk /sys/power/state (as per the ACPI docs on sourceforge) and the system did try to write the contents to disk, but failed. I then realized I don't have enough swap space, which I will try to exapnd later.

I then tried eco -n mem > /sys/power/state and the machine basically shuts down (completely off I think) so fast that I don't get a chance to see any console messages. Doesn't resume when I hit a key. If I try to hit the power button once, the machine beeps hi-lo (BIOS error I guess?) without booting. I have to then hold the power swithc for 4 seconds, then turn it on again.

Doing:

# /etc/init.d/acpid stop
echo -n standby > /sys/power/state
the machine does go into standy with no error messages.
I am able to resume by hitting the power button once.

Thank you for the "acpid stop" tip, I never saw it mentioned in the howto.
The only problem is the case fans are still on even though I have the fans set for off at low temperature in the BIOS. I was hoping for a silent sleeping machine; maybe I'll wait an hour and see if the case fans do eventually shut off.

Quoted 67 lines

Note that neither S1 nor S3 will do anything on the SMP kernel. (and unfortunately, they will not even tell you that when you try)

-Len

BIOS SETUP: Power/ACPI
ACPI Suspend State [S3 State] (default is S1)

boot FC2-test1 UP kernel

# cat /proc/acpi/sleep
S0 S1 S3 S4 S5
# /etc/init.d/acpid stop
(to make power button resume event not initiate a shut-down)
# echo 1 >/proc/acpi/sleep
Stopping tasks: ================================|
psmouse.c: bad data from KBC - timeout bad parity
hdc: start_power_step(step: 0)
hdc: completing PM request, suspend
hda: start_power_step(step: 0)
hda: start_power_step(step: 1)
hda: complete_power_step(step: 1, stat: 50, err: 0)
hda: completing PM request, suspend
psmouse.c: bad data from KBC - timeout bad parity
psmouse.c: bad data from KBC - timeout bad parity
PM: Entering state.
i8042.c: Can't restore CTR.

<press power button here to resume>

Back to C!
i8042.c: Can't read CTR while initializing i8042.
i8042: resume failed
PM: Finishing up.
PCI: Setting latency timer of device 0000:00:1d.0 to 64
PCI: Setting latency timer of device 0000:00:1d.1 to 64
PCI: Setting latency timer of device 0000:00:1d.2 to 64
PCI: Setting latency timer of device 0000:00:1d.3 to 64
hda: Wakeup request inited, waiting for !BSY...
hda: start_power_step(step: 1000)
e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex
blk: queue f7dcb5c0, I/O limit 4095Mb (mask 0xffffffff)
hda: completing PM request, resume
hdc: Wakeup request inited, waiting for !BSY...
hdc: start_power_step(step: 1000)
hdc: completing PM request, resume
Restarting tasks... done
#

system running normally here.

now try S3:

# echo 3 >/proc/acpi/sleep
Stopping tasks: =================================|
hdc: start_power_step(step: 0)
hdc: completing PM request, suspend
hda: start_power_step(step: 0)
hda: start_power_step(step: 1)
hda: complete_power_step(step: 1, stat: 50, err: 0)
hda: completing PM request, suspend
PM: Entering state.
Quoted 8 lines

<power is off, press power button here to wake up system>

here a bunch of garbled junk comes out my serial console. But video is not restored to my matrox mystique FB. ping doesn't work.

This is on the INTEL D875PBZ, is that correct? What kernel version is FC2-test1 UP kernel? I am also assuming debian's kernel 2.6.3 would have all the latest ACPI patches?

Quoted 7 lines

Curiously CTRL-ALT-DEL results in the following on the serial console:

quotaoff: numerical sysctl 5 16 8 is obsolete.
md: stopping all md devices.
md: md0 switched to read-only mode.
Restarting system.

Quoted 10 lines

<and the system reboots here>

So it seems that the system did resume and talk to the keyboard at least...

Len, thank you for your detailed responses, much appreciated.

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click

#15 lore raw
In reply to a message not in the archive

Hi!

Quoted 11 lines

I am new to ACPI but I have searched the archives, looked at the MAN pages used Google to the best of
my abilities and I still have some questions about ACPI. My basic goal is to be able
to suspend my desktop machine to S3 when not in use. I need to use the machine several times throughout the day, and feel it is a waste to leave it on continuously. The system spec are: Intel D875PBZ, Intel P4 3GHZ, Radeonm 9700 pro, Sounblaster Live, Debian unstable with 2.4.23 and 2.6.2 kernels available, both with ACPI compiled as modules. Pressing the power button once gracefully shuts down the machine running either kernel.

Try getting suspend-to-disk working, first.
Pavel

Signature · 9 lines
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click

A message that is not in the archive (sent off-list or not yet received): 20040225182030.GG1214-I/[email protected]

#17 lore raw
Quoted 15 lines · Pavel Machek

Hi!

Quoted 10 lines

I am new to ACPI but I have searched the archives, looked at the MAN pages used Google to the best of my abilities and I still have some questions about ACPI. My basic goal is to be able to suspend my desktop machine to S3 when not in use. I need to use the
machine several times throughout the day, and feel it is a waste to leave
it on continuously. The system spec are: Intel D875PBZ, Intel P4 3GHZ,
Radeonm 9700 pro, Sounblaster Live, Debian unstable with 2.4.23 and
2.6.2 kernels available, both with ACPI compiled as modules. Pressing
the power button once gracefully shuts down the machine running either kernel.

Quoted 4 lines

Try getting suspend-to-disk working, first.
Pavel

I am assuming your terse response is meant to imply that swsusp would be a better alternative to S3?

I tried playing with suspend to disk in kernel 2.6.3. It was a no go. I have highmem enabled on this machine which has 1 gig of RAM. Going to try pmdisk.

Nick

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click

A message that is not in the archive (sent off-list or not yet received): [email protected]

#19 lore raw

Hi!

Quoted 14 lines
Quoted 14 lines
Quoted 13 lines

I am new to ACPI but I have searched the archives, looked at the MAN pages used Google to the best of
my abilities and I still have some questions about ACPI. My basic goal is to be able
to suspend my desktop machine to S3 when not in use. I need to use the machine several times throughout the day, and feel it is a waste to leave it on continuously. The system spec are: Intel D875PBZ, Intel P4 3GHZ, Radeonm 9700 pro, Sounblaster Live, Debian unstable with 2.4.23 and 2.6.2 kernels available, both with ACPI compiled as modules. Pressing the power button once gracefully shuts down the machine running either kernel.

Quoted 4 lines
Quoted 1 line

Try getting suspend-to-disk working, first.

I am assuming your terse response is meant to imply that swsusp would be a better alternative to S3?

I mean that swsusp is easier to make going than S3, and it is quite usefull to know if it works for you. If it does not, its unlikely that S3 will.

Quoted 3 lines

I tried playing with suspend to disk in kernel 2.6.3. It was a no go. I have highmem enabled on this machine which has 1 gig of RAM. Going to try pmdisk.

Forget pmdisk, that will not work anyway. Try running without highmem (at least for a test).
Pavel

Signature · 9 lines
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click

A message that is not in the archive (sent off-list or not yet received): 20040228220435.GD10530-I/[email protected]

#21 lore raw
Quoted 32 lines · Pavel Machek

Hi!

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines

I am new to ACPI but I have searched the archives, looked at the MAN pages used Google to the best of my abilities and I still have some questions about ACPI. My basic goal is to be able to suspend my desktop machine to S3 when not in use. I need to use the
machine several times throughout the day, and feel it is a waste to leave
it on continuously. The system spec are: Intel D875PBZ, Intel P4 3GHZ,
Radeonm 9700 pro, Sounblaster Live, Debian unstable with 2.4.23 and
2.6.2 kernels available, both with ACPI compiled as modules. Pressing
the power button once gracefully shuts down the machine running either kernel.

Quoted 9 lines
Quoted 3 lines

Try getting suspend-to-disk working, first.

I am assuming your terse response is meant to imply that swsusp would be a better alternative to S3?

I mean that swsusp is easier to make going than S3, and it is quite usefull to know if it works for you. If it does not, its unlikely that S3 will.

Quoted 10 lines
Quoted 4 lines

I tried playing with suspend to disk in kernel 2.6.3. It was a no go. I have highmem enabled on this machine which has 1 gig of RAM. Going to try pmdisk.

Forget pmdisk, that will not work anyway. Try running without highmem (at least for a test).
Pavel

Should I also disable preemption?

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click

A message that is not in the archive (sent off-list or not yet received): [email protected]

#23 lore raw

Hi!

Quoted 10 lines
Quoted 8 lines
Quoted 5 lines

I tried playing with suspend to disk in kernel 2.6.3. It was a no go. I have highmem enabled on this machine which has 1 gig of RAM. Going to try pmdisk.

Forget pmdisk, that will not work anyway. Try running without highmem (at least for a test).

Should I also disable preemption?

Yes.
Pavel

Signature · 9 lines
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click

A message that is not in the archive (sent off-list or not yet received): 20040228230941.GA488-I/[email protected]

#25 lore raw
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines

I tried playing with suspend to disk in kernel 2.6.3. It was a no go. I have highmem enabled on this machine which has 1 gig of RAM. Going to try pmdisk.

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

Forget pmdisk, that will not work anyway. Try running without highmem (at least for a test).

Should I also disable preemption?

Yes.

WHY???

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click

A message that is not in the archive (sent off-list or not yet received): 1950.66.108.215.112.1078013994.squirrel-2RFepEojUI20LjuDPgauC1aTQe2KTcn/@public.gmane.org

#27 lore raw

Hi!

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines

I tried playing with suspend to disk in kernel 2.6.3. It was a no go. I have highmem enabled on this machine which has 1 gig of RAM. Going to try pmdisk.

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

Forget pmdisk, that will not work anyway. Try running without highmem (at least for a test).

Should I also disable preemption?

Yes.

WHY???

Why shouting and 3x"?"?

It should work with preemption, but preemptive kernel is slightly harder than usual. If he wants to get it to work, it is best to disable preemption.

Pavel

Signature · 9 lines
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
#28 lore raw
In reply to a message not in the archive
Quoted 17 lines · Pavel Machek

Hi!

Quoted 10 lines
Quoted 10 lines
Quoted 6 lines

I tried playing with suspend to disk in kernel 2.6.3. It was a no go. I have highmem enabled on this machine which has 1 gig of RAM. Going to try pmdisk.

Forget pmdisk, that will not work anyway. Try running without highmem (at least for a test).

Quoted 9 lines
Quoted 3 lines

Should I also disable preemption?

Yes.
Pavel

Pavel, I'm having some trouble understanding the swsusp.txt file. It states: " You must explicitly specify the swap partition to resume from with ``resume='' kernel option."

my swap partition resides in /dev/hda4

So I think I need to do something like this?
# Boot up Linux by default.
#
default=Linux

image=/vmlinuz
label=Linux
read-only
append="hda=autotune resume=/dev/hda4" <---- added this
# restricted
# alias=1

image=/vmlinuz.old
label=LinuxOld
read-only
append="ide0=ata100 hda=autotune"
optional
# restricted
# alias=2

image=/2.4.23

       label=2.4.23
       read-only
       optional

Is this correct, or do i pass the resume option at boot time as a LILO option?

Nick

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click

A message that is not in the archive (sent off-list or not yet received): [email protected]

#30 lore raw

Hi!

Quoted 22 lines
Quoted 3 lines
Quoted 1 line

Should I also disable preemption?

Yes.

Pavel, I'm having some trouble understanding the swsusp.txt file. It
states: " You must explicitly specify the swap partition to resume from with ``resume='' kernel option."

my swap partition resides in /dev/hda4

So I think I need to do something like this?
# Boot up Linux by default.
#
default=Linux

image=/vmlinuz
label=Linux
read-only
append="hda=autotune resume=/dev/hda4" <---- added this
# restricted
# alias=1

Quoted 2 lines

Is this correct, or do i pass the resume option at boot time as a LILO option?

It is correct.
Pavel

Signature · 9 lines
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click

A message that is not in the archive (sent off-list or not yet received): 20040302101904.GA303-I/[email protected]

#32 lore raw
Quoted 30 lines · Pavel Machek

Hi!

Quoted 26 lines
Quoted 6 lines
Quoted 3 lines

Should I also disable preemption?

Yes.

Pavel, I'm having some trouble understanding the swsusp.txt file. It states: " You must explicitly specify the swap partition to resume from with ``resume='' kernel option."

my swap partition resides in /dev/hda4

So I think I need to do something like this?
# Boot up Linux by default.
#
default=Linux

image=/vmlinuz
label=Linux
read-only
append="hda=autotune resume=/dev/hda4" <---- added this
# restricted
# alias=1

Quoted 9 lines
Quoted 3 lines

Is this correct, or do i pass the resume option at boot time as a LILO option?

It is correct.
Pavel

As a test I suspened the machine twice; each time the machine was off for approximately 5 minutes. It resumed twice without any problems (into X with a mozilla and xmms)
As another test, I opned up a few apps in different workspaces: abiword with a document, mozilla browser and mail, xmms playing an internet stream. I then suspended in hopes of resuming the next day after school. After about 14hrs I tried to resume, and everything seemed fine, excpet my USB mouse was unrespnsive. I was able to brinx X down into a working console, startx again, but still no mouse.

In debian kernel 2.6.3 I have the NIC and USB options compiled in. Should these be modules that are removed before swsusp?
There's aslo mention of a swsusp script, but was unable to find one in ../Documentation/power or via apt-cache search; I'm assuming that I need this script, which will remove the modules before swsusp and modprobe them after resume.

Thank you for your time and patience.

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click

A message that is not in the archive (sent off-list or not yet received): [email protected]

#34 lore raw

Hi!

Quoted 10 lines

As a test I suspened the machine twice; each time the machine was off for approximately 5 minutes. It resumed twice without any problems (into X with a mozilla and xmms)
As another test, I opned up a few apps in different workspaces: abiword with a document, mozilla browser and mail, xmms playing an internet stream. I then suspended in hopes of resuming the next day after school. After about 14hrs I tried to resume, and everything seemed fine, excpet my USB mouse was unrespnsive. I was able to brinx X down into a working console, startx again, but still no mouse.

Quoted 6 lines

In debian kernel 2.6.3 I have the NIC and USB options compiled in. Should these be modules that are removed before swsusp? There's aslo mention of a swsusp script, but was unable to find one in ../Documentation/power or via apt-cache search; I'm assuming that I need this script, which will remove the modules before swsusp and modprobe them after resume.

You should not need any script; but it probably has better chance working with USB modules removed. Anyway that's a bug in USB support, ask on USB list.

Pavel

Signature · 9 lines
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click

A message that is not in the archive (sent off-list or not yet received): 20040302223446.GG1225-I/[email protected]

#36 lore raw
Quoted 12 lines · Pavel Machek

Hi!

Quoted 7 lines

As a test I suspened the machine twice; each time the machine was off for approximately 5 minutes. It resumed twice without any problems (into X with a mozilla and xmms)
As another test, I opned up a few apps in different workspaces: abiword with a document, mozilla browser and mail, xmms playing an internet stream. I then suspended in hopes of resuming the next day after school. After about 14hrs I tried to resume, and everything seemed fine, excpet my USB mouse was unrespnsive. I was able to brinx X down into a working console, startx again, but still no mouse.

In debian kernel 2.6.3 I have the NIC and USB options compiled in. Should these be modules that are removed before swsusp?
There's aslo mention of a swsusp script, but was unable to find one in ../Documentation/power or via apt-cache search; I'm assuming that I need this script, which will remove the modules before swsusp and modprobe them after resume.

Quoted 7 lines

You should not need any script; but it probably has better chance working with USB modules removed. Anyway that's a bug in USB support, ask on USB list.

Pavel

OK, heres what works so far on plain vanilla 2.6.3 with 2.6.3 acpi patch applied; smp ans preemption disabled, eth0 e1000 and usb as modules.

S1 goes into standyby, after issuing /etc/init.d/acpi stop, but the fans stay on (as they also do in Win2k when standby is set to S1 in bios); seems to reliably resume, but it's too niosy for a computer that is essentialy in the bedroom.

S4 works , but I have to unload the USB modules buy hand ( I also unload eth0 e1000 to be safe) and modprobe them after resume. Resume takes a little longer than a normal boot up, but it saves me time insofar as opening the applications I comonly use.

Still no S3, which is what I'm really gunning for; either echo -n mem > /sys/power/state or echo 3 > /proc/acpi/sleep now results in the machine locking up after a series of messages, something to the effect of: resuming from /dev/hda4
Resuming from device hda4
Resume Machine: This is
normal swap

                                          ACPI: (supports S0 S1 S3 S4 S5)
                                          Stopping tasks: 

==========================|
hdd: start_power_step (step.o)
and a few more lines concerning hdd and hdc, I had to copy all this down on pen and paper.

A couple of things I noticed, with the Debian 2.6.3 kernel trying to S3 resulted in a shutdown, now with ACPI patch and vanilla 2.6.3, it hangs and results in said messages. S4 takes takes more than couple of minutes longer to compete with the vanillas kernel, I thought the machine locked up, but decided to wait a few more minutes, and it seemed to finish the swsusp. I did see a few messages relating to "Badness" but didn't get a chance to write them down.

So if there's anything you guys -- who have been more than helpful btw -- would like me to try as far as getting S3 functional, I'm all ears. I'm also assuming I need some kind of script for S4 to unload the USB and NIC modules, stop acpid, then revers all that upon resume. Is this something I'm going to have to write myself?

Thanks in advance.

Nick

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

A message that is not in the archive (sent off-list or not yet received): [email protected]

#38 lore raw

Nick Lidakis wrote:
S4 takes takes more than couple of minutes longer to compete with the vanillas kernel

Thats was a typo, the Debian kernel is faster, and the vanilla kernel w/ acpi 2.6.3 patch takes significantly longer to finish the swsusp, but it does finish it.

Nick

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

#39 lore raw
In reply to a message not in the archive

Hi!

Quoted 5 lines

So if there's anything you guys -- who have been more than helpful btw -- would like me to try as far as getting S3 functional, I'm all ears. I'm also assuming I need some kind of script for S4 to unload the USB and NIC modules, stop acpid, then revers all that upon resume. Is this something I'm going to have to write myself?

Well, ideally you should not workaround e1000/usb problems with scripts, but add driver model support to both of those.

You may want to try S3 with those two modules unloaded. There's some chance it resumes with video not working (you can tell by typing find / -- if hdd starts flashing, machine is okay but no video).
Pavel

Signature · 9 lines
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

A message that is not in the archive (sent off-list or not yet received): 20040304105233.GA308-I/[email protected]

#41 lore raw
Quoted 11 lines · Pavel Machek

Hi!

Quoted 5 lines

So if there's anything you guys -- who have been more than helpful btw
-- would like me to try as far as getting S3 functional, I'm all ears.
I'm also assuming I need some kind of script for S4 to unload the USB and NIC modules, stop acpid, then revers all that upon resume. Is this something I'm going to have to write myself?

Quoted 9 lines

Well, ideally you should not workaround e1000/usb problems with scripts, but add driver model support to both of those.

You may want to try S3 with those two modules unloaded. There's some chance it resumes with video not working (you can tell by typing find / -- if hdd starts flashing, machine is okay but no video).
Pavel

It was a no-go with S3. The machine just shuts down.

Is anybody aware of any Intel or Intel chip based (p3 or p4) motherboards where S3 works reliably?

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click