Skip to contentSkip to conversation

Several problems with sleep states

DISCUSSION Nicolas Sabouret 4 participants 8 messages Feb 27, 2004 6 messages not in the archive ACPI

lore
Share & tools
lore
#0 lore raw

Hi,

following problems:
1. echo -n "disk" > /sys/power/state => nothing happens
2. echo -n "mem" > /sys/power/state => the computer enters "suspend on ram" mode (the suspend light gets on, etc...) when I try to wake up the computer, it hangs (some noise indicating that the disks are woken up and then nothing but a blank screen, even starting from console).

3. It has certainly nothing to do with what I said before, but I cannot find a /proc/acpi/processor/CPU0/performance (I have all the other files you mention in your Documentation section).

Here is an output of dmesg | grep acpi :
BIOS-e820: 000000000bf70000 - 000000000bf7c000 (ACPI data)
BIOS-e820: 000000000bf7c000 - 000000000bf80000 (ACPI NVS)
ACPI: RSDP (v000 PTLTD ) @ 0x000f6c90
ACPI: RSDT (v001 PTLTD RSDT 0x06040000 LTP 0x00000000) @ 0x0bf75dcd
ACPI: FADT (v001 ATI Salmon 0x06040000 ATI 0x000f4240) @ 0x0bf7bf64
ACPI: BOOT (v001 PTLTD $SBFTBL$ 0x06040000 LTP 0x00000001) @ 0x0bf7bfd8
ACPI: DSDT (v001 ATI MS2_1535 0x06040000 MSFT 0x0100000e) @ 0x00000000
Kernel command line: auto BOOT_IMAGE=Linux ro root=306 acpi=force
ACPI: Subsystem revision 20040116
ACPI: IRQ9 SCI: Edge set to Level Trigger.
ACPI: Interpreter enabled
ACPI: Using PIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (00:00)
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.AGPB._PRT]
ACPI: PCI Interrupt Link [LNK0] (IRQs 7 10)
ACPI: PCI Interrupt Link [LNK1] (IRQs 7 *10)
ACPI: PCI Interrupt Link [LNK2] (IRQs 7 *10)
ACPI: PCI Interrupt Link [LNK3] (IRQs 7 *10)
ACPI: PCI Interrupt Link [LNK4] (IRQs 7 11)
ACPI: PCI Interrupt Link [LNK5] (IRQs 7 *11)
ACPI: PCI Interrupt Link [LNK6] (IRQs 7 10)
ACPI: PCI Interrupt Link [LNK7] (IRQs *5)
ACPI: PCI Interrupt Link [LNK8] (IRQs 7 10)
ACPI: Embedded Controller [EC0] (gpe 24)
ACPI: PCI Interrupt Link [LNK7] enabled at IRQ 5
ACPI: PCI Interrupt Link [LNK6] enabled at IRQ 10
ACPI: PCI Interrupt Link [LNK5] enabled at IRQ 11
ACPI: PCI Interrupt Link [LNK2] enabled at IRQ 10
ACPI: PCI Interrupt Link [LNK3] enabled at IRQ 10
ACPI: PCI Interrupt Link [LNK4] enabled at IRQ 11
ACPI: No IRQ known for interrupt pin A of device 0000:00:10.0
ACPI: PCI Interrupt Link [LNK1] enabled at IRQ 10
ACPI: PCI Interrupt Link [LNK0] enabled at IRQ 10
PCI: Using ACPI for IRQ routing
PCI: if you experience problems, try using option 'pci=noacpi' or even 'acpi=off'
ACPI: (supports S0 S3 S4 S5)
ACPI: No IRQ known for interrupt pin A of device 0000:00:10.0
ACPI: AC Adapter [ACAD] (on-line)
ACPI: Processor [CPU0] (supports C1 C2 C3, 8 throttling states)
ACPI: Battery Slot [BAT1] (battery present)
ACPI: Power Button (FF) [PWRF]
ACPI: Lid Switch [LID]
ACPI: Thermal Zone [THRM] (33 C)

and the output of cat /proc/interrupts:
CPU0

  0:    2204170          XT-PIC  timer
  1:       7729          XT-PIC  i8042
  2:          0          XT-PIC  cascade
  5:          0          XT-PIC  ALi Audio Accelerator
  8:          4          XT-PIC  rtc
  9:        330          XT-PIC  acpi
 10:      76313          XT-PIC  uhci_hcd, uhci_hcd, eth0
 11:          0          XT-PIC  ehci_hcd
 12:      23016          XT-PIC  i8042
 14:      51108          XT-PIC  ide0
 15:          1          XT-PIC  ide1
NMI:          0
LOC:          0
ERR:          0
MIS:          0

Thanks in advance for your help.

Nico.

Signature · 11 lines
Nicolas SABOURET
Laboratoire d'Informatique de Paris 6 (LIP6)
8, rue du Capitaine Scott, 75015 Paris, France
http://www-oasis.lip6.fr/~sabouret


-------------------------------------------------------
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
#2 lore raw
In reply to a message not in the archive

Hi,

Quoted 4 lines

2. echo -n "mem" > /sys/power/state => the computer enters "suspend on ram" mode (the suspend light gets on, etc...) when I try to wake up the computer, it hangs (some noise indicating that the disks are woken up and then nothing but a blank screen, even starting from console).

be sure to disable usb and sound *before* going to sleep. Your /proc/interrupts give me the idea that you have sound and usb enabled, which is not good.

Also, if you have a radeon gfx card, you wont get your console frame buffer back to life yet. If you use the ATI-Binary drivers, you wont get x11 back to life. If you use the kernel ati drivers for x11 with no framebuffer, you should be abled to resume an x11 session.

Regards, P.

-------------------------------------------------------
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 8 lines · Nicolas Sabouret

Hi,

following problems:
1. echo -n "disk" > /sys/power/state => nothing happens
2. echo -n "mem" > /sys/power/state => the computer enters "suspend on ram" mode (the suspend light gets on, etc...) when I try to wake up the computer, it hangs (some noise indicating that the disks are woken up and then nothing but a blank screen, even starting from console).

You should try with swsusp instead and with /proc/acpi/sleep by now. pmdisk apparently does support only S4BIOS (and you don't have s4bios, looking the dmesg), not S4.

Quoted 4 lines

3. It has certainly nothing to do with what I said before, but I cannot find a /proc/acpi/processor/CPU0/performance (I have all the other files you mention in your Documentation section).

It has been deprecated. Look at /sys/devices/system/cpu0/cpufreq instead.

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
#4 lore raw
In reply to a message not in the archive

Thus wrote Peter Meier:

Quoted 2 lines

Also, if you have a radeon gfx card, you wont get your console frame buffer back to life yet. If you use the ATI-Binary drivers, you wont get

On the contrary, the current radeonfb from 2.6.3 does restore the console contents. That said, the backlight might still be a problem, but this is usually independent of the display driver.
Best regards,

Signature · 9 lines
Karol 'sziwan' Kozimor
sziwan-DETuoxkZsSqrDJvtcaxF/[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
#9 lore raw
In reply to a message not in the archive

Thus wrote Bruno Ducrot:

Quoted 3 lines

You should try with swsusp instead and with /proc/acpi/sleep by now. pmdisk apparently does support only S4BIOS (and you don't have s4bios, looking the dmesg), not S4.

It does support plain S4, at least it sorta-works for me. Best regards,

Signature · 9 lines
Karol 'sziwan' Kozimor
sziwan-DETuoxkZsSqrDJvtcaxF/[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
#11 lore raw
In reply to a message not in the archive
Quoted 7 lines · Karol Kozimor

Thus wrote Bruno Ducrot:

Quoted 3 lines

You should try with swsusp instead and with /proc/acpi/sleep by now. pmdisk apparently does support only S4BIOS (and you don't have s4bios, looking the dmesg), not S4.

It does support plain S4, at least it sorta-works for me. Best regards,

Ok, then I guess those comments in drivers/acpi/main.c

        /* do we have a wakeup address for S2 and S3? */
        /* Here, we support only S4BIOS, those we set the wakeup address
        /* S4OS is only supported for now via swsusp.. */

are no more appropriate?

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
#6 lore raw
In reply to a message not in the archive

Hi,

Quoted 4 lines · Karol Kozimor

On the contrary, the current radeonfb from 2.6.3 does restore the console contents. That said, the backlight might still be a problem, but this is usually independent of the display driver.
Best regards,

Actually, I had no success with 2.6.3-mm4 and the new radeonfb driver for restoring the console. Even worse, using the radeonfb driver, I was not abled to restore x11 anymore. Using the patch Giridhar Pemmasani posted here some days ago, I was abled to get the backlight back, but still no resume of the console, (Ati Radeon 9000 Mobility, I think its R250). Its not that bad for me, its cool that x11 works :-)

With best regards, P.

-------------------------------------------------------
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

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

Thus wrote Bruno Ducrot:

Quoted 6 lines
Quoted 4 lines
Quoted 3 lines

You should try with swsusp instead and with /proc/acpi/sleep by now. pmdisk apparently does support only S4BIOS (and you don't have s4bios, looking the dmesg), not S4.

It does support plain S4, at least it sorta-works for me.

Ok, then I guess those comments in drivers/acpi/main.c are no more appropriate?

There are 3 different S4 implementations currently, 2 of which (Pavel's swsusp and Pat's pmdisk) are in 2.6. The third is Nigel's swsusp2 available as a patch from http://swsusp.sf.net
Best regards,

Signature · 9 lines
Karol 'sziwan' Kozimor
sziwan-DETuoxkZsSqrDJvtcaxF/[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