public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* Suspend-to-RAM on Sony Vaios
@ 2004-10-18  0:08 Jon Valvatne
       [not found] ` <20041018020816.48673359-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
  0 siblings, 1 reply; 49+ messages in thread
From: Jon Valvatne @ 2004-10-18  0:08 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Hello list,

I'd very much like to get suspend-to-RAM working on my Vaio X505; any pointers would be very welcome. Trying with the latest RPM-kernel for FC2, I can get it suspended just fine (after removing the ehci_hcd module), but it doesn't come back up.

Specifically: Once it's suspended, it seems dead except for a slowly blinking red power LED. When I press any button or key, it goes completely dead, requiring the battery to be taken out and reinserted before it'll even respond to the power button. Between those two states (blinking LED and completely dead) there is no indication whatsoever that it even tries to wake up - the LED simply stops blinking the moment I touch a key.

I haven't heard of anyone else installing Linux on this specific model of Vaio yet, and all I see of other Linux-on-Vaio-experiences only tell of similar problems, with no solutions. All the suspends-but-doesn't-resume stories I've seen here on this list tell of systems that make signs of starting up before they crash, as opposed to mine which doesn't. That makes me think my case is different, and it makes me doubt that it's the VGA issue again... I could be wrong though, I don't pretend to know the details of this stuff.

Any pointers on how to debug this problem at all? The syslog is obviously useless; the hard drive isn't even spinning when the problem occurs.

Thanks in advance,

Jon Valvatne
Barcelona, Spain


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl

^ permalink raw reply	[flat|nested] 49+ messages in thread
* RE: Suspend-to-RAM on Sony Vaios
@ 2004-10-19  9:25 Li, Shaohua
       [not found] ` <16A54BF5D6E14E4D916CE26C9AD3057559A05A-4yWAQGcml66iAffOGbnezLfspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 49+ messages in thread
From: Li, Shaohua @ 2004-10-19  9:25 UTC (permalink / raw)
  To: Luc Saillard, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Yes, this is a known issue - link device resume must be with irq
enabled. Could you please try if below workaround makes any difference
in your system.

Thanks,
Shaohua



===== drivers/acpi/pci_link.c 1.32 vs edited =====
--- 1.32/drivers/acpi/pci_link.c        2004-08-19 07:26:48 +08:00
+++ edited/drivers/acpi/pci_link.c      2004-10-19 17:15:09 +08:00
@@ -714,7 +714,10 @@ irqrouter_resume(
 {
        struct list_head        *node = NULL;
        struct acpi_pci_link    *link = NULL;
+       unsigned long flag;

+       local_save_flags(flag);
+       local_irq_disable();
        ACPI_FUNCTION_TRACE("irqrouter_resume");

        list_for_each(node, &acpi_link.entries) {
@@ -727,6 +730,7 @@ irqrouter_resume(

                acpi_pci_link_resume(link);
        }
+       local_irq_restore(flag);
        return_VALUE(0);
 }

@@ -851,7 +855,7 @@ static int __init irqrouter_init_sysfs(v
        return_VALUE(error);
 }

-device_initcall(irqrouter_init_sysfs);
+fs_initcall(irqrouter_init_sysfs);


 static int __init acpi_pci_link_init (void)

>-----Original Message-----
>From: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:acpi-devel-
>admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Luc Saillard
>Sent: Tuesday, October 19, 2004 4:11 PM
>To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>Subject: Re: [ACPI] Suspend-to-RAM on Sony Vaios
>
>On Mon, Oct 18, 2004 at 02:08:16AM +0200, Jon Valvatne wrote:
>> Hello list,
>>
>> I'd very much like to get suspend-to-RAM working on my Vaio X505; any
>> pointers would be very welcome. Trying with the latest RPM-kernel for
FC2,
>> I can get it suspended just fine (after removing the ehci_hcd
module),
>but
>> it doesn't come back up.
>>
>
>For the first time, with a vanilla 2.6.9-rc4, S3 works on my laptop.
It's a
>Sony PCG-Z1RMP. If I echo 3 > /proc/acpi/sleep while i'm in console,
resume
>doesn't light on the screen (radeontool has the same problem). I can
reboot,
>send command on my shell, but if I start X, my laptop freeze.
>If I'm under X, suspend and resume works but if i go to console text
screen
>is black of bad video resolution.
>
>I've also a problem with kmalloc(GFP_KERNEL) and resume while interrupt
is
>disabled.
>
>PM: Preparing system for suspend
>Stopping tasks: ===================|
>PM: Entering state.
>Back to C!
>Debug: sleeping function called from invalid context at mm/slab.c:2052
>in_atomic():0, irqs_disabled():1
> [__might_sleep+182/224] __might_sleep+0xb6/0xe0
> [__kmalloc+138/160] __kmalloc+0x8a/0xa0
> [acpi_os_allocate+10/11] acpi_os_allocate+0xa/0xb
> [acpi_ut_allocate+52/87] acpi_ut_allocate+0x34/0x57
> [acpi_ut_initialize_buffer+66/125] acpi_ut_initialize_buffer+0x42/0x7
> [acpi_rs_create_byte_stream+35/57] acpi_rs_create_byte_stream+0x23/0x
> [acpi_rs_set_srs_method_data+27/157] acpi_rs_set_srs_method_data+0x1b
> [recalc_task_prio+151/400] recalc_task_prio+0x97/0x190
> [acpi_pci_link_set+222/341] acpi_pci_link_set+0xde/0x155
> [irqrouter_resume+28/48] irqrouter_resume+0x1c/0x30
> [sysdev_resume+247/252] sysdev_resume+0xf7/0xfc
> [device_power_up+5/10] device_power_up+0x5/0xa
> [suspend_enter+48/80] suspend_enter+0x30/0x50
> [enter_state+101/160] enter_state+0x65/0xa0
> [acpi_suspend+59/73] acpi_suspend+0x3b/0x49
> [copy_from_user+84/144] copy_from_user+0x54/0x90
> [acpi_system_write_sleep+93/110] acpi_system_write_sleep+0x5d/0x6e
> [vfs_write+176/272] vfs_write+0xb0/0x110
> [sys_write+71/128] sys_write+0x47/0x80
> [syscall_call+7/11] syscall_call+0x7/0xb
>sonypi: unknown event port1=0x0e,port2=0x05
>PM: Finishing up.
>
>
>Luc
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: IT Product Guide on
ITManagersJournal
>Use IT products in your business? Tell us what you think of them. Give
us
>Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out
more
>http://productguide.itmanagersjournal.com/guidepromo.tmpl
>_______________________________________________
>Acpi-devel mailing list
>Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>https://lists.sourceforge.net/lists/listinfo/acpi-devel


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl

^ permalink raw reply	[flat|nested] 49+ messages in thread
* RE: Suspend-to-RAM on Sony Vaios
@ 2004-10-19 11:45 Li, Shaohua
       [not found] ` <16A54BF5D6E14E4D916CE26C9AD3057559A0A4-4yWAQGcml66iAffOGbnezLfspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 49+ messages in thread
From: Li, Shaohua @ 2004-10-19 11:45 UTC (permalink / raw)
  To: Luc Saillard; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

>
>On Tue, Oct 19, 2004 at 05:25:30PM +0800, Li, Shaohua wrote:
>> Yes, this is a known issue - link device resume must be with irq
>> enabled. Could you please try if below workaround makes any
difference
>> in your system.
>
>I apply your changes, but it doesn't change. You say, that we need to
>enable
>interrupt, but
>>
>> +       local_save_flags(flag);
>> +       local_irq_disable();
>
Oh, I'm sorry. It's a typo. should be enable irq.

Thanks,
Shaohua


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl

^ permalink raw reply	[flat|nested] 49+ messages in thread
* RE: Suspend-to-RAM on Sony Vaios
@ 2004-10-19 16:32 Pallipadi, Venkatesh
       [not found] ` <88056F38E9E48644A0F562A38C64FB600323619D-exJ48ZlmiLpQxe9IK+vIArfspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 49+ messages in thread
From: Pallipadi, Venkatesh @ 2004-10-19 16:32 UTC (permalink / raw)
  To: Luc Saillard, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

 

>-----Original Message-----
>From: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org 
>[mailto:acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of 
>Luc Saillard
>Sent: Tuesday, October 19, 2004 1:11 AM
>To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>Subject: Re: [ACPI] Suspend-to-RAM on Sony Vaios
>
>On Mon, Oct 18, 2004 at 02:08:16AM +0200, Jon Valvatne wrote:
>> Hello list,
>> 
>> I'd very much like to get suspend-to-RAM working on my Vaio X505; any
>> pointers would be very welcome. Trying with the latest 
>RPM-kernel for FC2,
>> I can get it suspended just fine (after removing the 
>ehci_hcd module), but
>> it doesn't come back up.
>> 
>
>For the first time, with a vanilla 2.6.9-rc4, S3 works on my 
>laptop. It's a
>Sony PCG-Z1RMP. If I echo 3 > /proc/acpi/sleep while i'm in 
>console, resume
>doesn't light on the screen (radeontool has the same problem). 

Which graphics controller do you have?
Are you using framebuffer with text console or simple VGA?
Can you try acpi_sleep boot options (refer
Documentation/power/video.txt) for text console suspend-resume.

Thanks,
-Venki


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl

^ permalink raw reply	[flat|nested] 49+ messages in thread
* RE: Suspend-to-RAM on Sony Vaios
@ 2004-10-20  3:30 Li, Shaohua
  0 siblings, 0 replies; 49+ messages in thread
From: Li, Shaohua @ 2004-10-20  3:30 UTC (permalink / raw)
  To: Luc Saillard; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

>
>On Tue, Oct 19, 2004 at 07:45:46PM +0800, Li, Shaohua wrote:
> >
>> >I apply your changes, but it doesn't change. You say, that we need
to
>> >enable interrupt, but
>> >>
>> >> +       local_save_flags(flag);
>> >> +       local_irq_disable();
>> >
>> Oh, I'm sorry. It's a typo. should be enable irq.
>
>With local_irq_enable, no more warning. Thanks very much.
>
>Is it normal just after a resume to have ?
>MCE: The hardware reports a non fatal, correctable incident occurred on
CPU
>0.
>Bank 1: f200000000000181
Thanks you verified the workaround works, but it's not a final solution.
For the MCE: it's not normal, but isn't harmful some times.

Thanks,
Shaohua


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl

^ permalink raw reply	[flat|nested] 49+ messages in thread
* RE: Suspend-to-RAM on Sony Vaios
@ 2004-11-03 14:45 Pallipadi, Venkatesh
       [not found] ` <88056F38E9E48644A0F562A38C64FB60033E4DDC-exJ48ZlmiLpQxe9IK+vIArfspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 49+ messages in thread
From: Pallipadi, Venkatesh @ 2004-11-03 14:45 UTC (permalink / raw)
  To: ole.rohne-vJEk5272eHo, Andi Kleen
  Cc: Pavel Machek, Emmanuel Thom??, Jon Valvatne,
	acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

>-----Original Message-----
>From: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org 
>[mailto:acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of 
>ole.rohne-vJEk5272eHo@public.gmane.org
>Sent: Wednesday, November 03, 2004 3:32 AM
>To: Andi Kleen
>Cc: Pavel Machek; Emmanuel Thom??; Jon Valvatne; 
>acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>Subject: Re: [ACPI] Suspend-to-RAM on Sony Vaios
>
>"Later in an emulator" is arguably safer than real mode. But the
>emulation needs to be done from kernel at the proper point in the
>resume sequence. Leaving it to the user-mode suspend/resume script
>is not an option.
>

Other options here are:
- to have the usermode emulator and call it from 
Proper point in kernel using call_usermodehelper().
- or have the emulator in the kernel itself.

-Venki


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id\x12065&op=click

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

end of thread, other threads:[~2004-11-04 13:49 UTC | newest]

Thread overview: 49+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-18  0:08 Suspend-to-RAM on Sony Vaios Jon Valvatne
     [not found] ` <20041018020816.48673359-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2004-10-18  4:15   ` Ivor Hewitt
     [not found]     ` <200410180415.59801.ivor-rtBon1mkn18@public.gmane.org>
2004-10-18 13:15       ` Jon Valvatne
2004-10-18 11:26   ` Pavel Machek
     [not found]     ` <20041018112632.GB4400-u08AdweFZfgxtPtxi4kahqVXKuFTiq87@public.gmane.org>
2004-10-20 22:13       ` Jon Valvatne
     [not found]         ` <20041021001331.69c6c965-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2004-10-20 22:53           ` Pavel Machek
     [not found]             ` <20041020225334.GC29863-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2004-11-01 14:54               ` Emmanuel Thomé
     [not found]                 ` <20041101145410.GB12006-xkTd+U360DcAs8EywTwl9A@public.gmane.org>
2004-11-01 15:17                   ` ole.rohne-vJEk5272eHo
2004-11-01 15:41                   ` Pavel Machek
     [not found]                     ` <20041101154127.GB1056-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2004-11-02 22:00                       ` Emmanuel Thomé
     [not found]                         ` <20041102220034.GA31435-xkTd+U360DcAs8EywTwl9A@public.gmane.org>
2004-11-02 22:09                           ` Pavel Machek
     [not found]                             ` <20041102220958.GF1407-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2004-11-03 10:51                               ` Andi Kleen
     [not found]                                 ` <20041103105106.GA4174-B4tOwbsTzaBolqkO4TVVkw@public.gmane.org>
2004-11-03 11:13                                   ` Pavel Machek
     [not found]                                     ` <20041103111306.GA1002-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2004-11-03 12:36                                       ` Andi Kleen
     [not found]                                         ` <20041103123625.GA18867-B4tOwbsTzaBolqkO4TVVkw@public.gmane.org>
2004-11-03 12:38                                           ` Pavel Machek
     [not found]                                             ` <20041103123830.GB1002-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2004-11-03 12:47                                               ` Andi Kleen
     [not found]                                                 ` <20041103124757.GE18867-B4tOwbsTzaBolqkO4TVVkw@public.gmane.org>
2004-11-03 12:50                                                   ` Pavel Machek
     [not found]                                                     ` <20041103125047.GD1002-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2004-11-03 13:08                                                       ` Andi Kleen
2004-11-03 11:31                                   ` ole.rohne-vJEk5272eHo
     [not found]                                     ` <yzoekjbgod9.fsf-vJEk5272eHo@public.gmane.org>
2004-11-03 12:41                                       ` Andi Kleen
     [not found]                                         ` <20041103124138.GC18867-B4tOwbsTzaBolqkO4TVVkw@public.gmane.org>
2004-11-03 13:52                                           ` ole.rohne-vJEk5272eHo
     [not found]                                             ` <yzois8n9h17.fsf-vJEk5272eHo@public.gmane.org>
2004-11-03 14:11                                               ` Andi Kleen
     [not found]                                                 ` <20041103141134.GA24195-B4tOwbsTzaBolqkO4TVVkw@public.gmane.org>
2004-11-03 14:49                                                   ` ole.rohne-vJEk5272eHo
2004-11-03  9:46                           ` ole.rohne-vJEk5272eHo
2004-10-21 16:19           ` Florian Hühn
2004-10-19  8:11   ` Luc Saillard
  -- strict thread matches above, loose matches on Subject: below --
2004-10-19  9:25 Li, Shaohua
     [not found] ` <16A54BF5D6E14E4D916CE26C9AD3057559A05A-4yWAQGcml66iAffOGbnezLfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-10-19 10:11   ` Luc Saillard
2004-10-19 11:45 Li, Shaohua
     [not found] ` <16A54BF5D6E14E4D916CE26C9AD3057559A0A4-4yWAQGcml66iAffOGbnezLfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-10-19 12:39   ` Luc Saillard
     [not found]     ` <20041019123930.GA25753-Snhs3Gxj9njPHUqn3ntIkQ@public.gmane.org>
2004-10-19 13:47       ` Matthew Garrett
2004-10-19 16:32 Pallipadi, Venkatesh
     [not found] ` <88056F38E9E48644A0F562A38C64FB600323619D-exJ48ZlmiLpQxe9IK+vIArfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-10-19 16:47   ` Luc Saillard
     [not found]     ` <20041019164702.GB25753-Snhs3Gxj9njPHUqn3ntIkQ@public.gmane.org>
2004-10-20  9:45       ` Proinnsias Breathnach
2004-10-20  3:30 Li, Shaohua
2004-11-03 14:45 Pallipadi, Venkatesh
     [not found] ` <88056F38E9E48644A0F562A38C64FB60033E4DDC-exJ48ZlmiLpQxe9IK+vIArfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-11-03 15:52   ` Andi Kleen
     [not found]     ` <20041103155217.GH24195-B4tOwbsTzaBolqkO4TVVkw@public.gmane.org>
2004-11-03 17:13       ` ole.rohne-vJEk5272eHo
     [not found]         ` <yzosm7q97q2.fsf-vJEk5272eHo@public.gmane.org>
2004-11-03 17:21           ` Andi Kleen
     [not found]             ` <20041103172120.GB18092-B4tOwbsTzaBolqkO4TVVkw@public.gmane.org>
2004-11-03 18:01               ` Matthew Garrett
     [not found]                 ` <1099504898.31687.31.camel-Xmbc1Sz64/5pghhO6/9/sx2eb7JE58TQ@public.gmane.org>
2004-11-04  4:15                   ` Andi Kleen
     [not found]                     ` <20041104041525.GE21211-B4tOwbsTzaBolqkO4TVVkw@public.gmane.org>
2004-11-04 10:39                       ` Matthew Garrett
2004-11-04 10:58                         ` Andi Kleen
2004-11-04 13:49                           ` ole.rohne-vJEk5272eHo
2004-11-04  8:29                 ` ole.rohne-vJEk5272eHo
2004-11-04  8:24               ` ole.rohne-vJEk5272eHo
     [not found]                 ` <yzo654mowci.fsf-vJEk5272eHo@public.gmane.org>
2004-11-04  9:02                   ` Andi Kleen
     [not found]                     ` <20041104090233.GD28895-B4tOwbsTzaBolqkO4TVVkw@public.gmane.org>
2004-11-04 11:40                       ` Pavel Machek
2004-11-04 12:14                     ` ole.rohne-vJEk5272eHo

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