linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Suspend on Lenovo 3000 V200 - Linux 2.6.25rc8
       [not found] <3e8fd0440804052010xbe8f59bw3268d8206b97ac3e@mail.gmail.com>
@ 2008-04-06 20:21 ` Rafael J. Wysocki
  2008-04-06 22:10   ` nikosapi
  0 siblings, 1 reply; 11+ messages in thread
From: Rafael J. Wysocki @ 2008-04-06 20:21 UTC (permalink / raw)
  To: Nick Nobody; +Cc: linux-acpi, Len Brown, LKML, Pavel Machek

On Sunday, 6 of April 2008, Nick Nobody wrote:
> Hello,

Hi,

> I'm trying to get suspend working properly on my Lenovo 3000 V200. I'm
> using Linux 2.6.25rc8 and the latest xf86-video-intel. Before I was
> using kernel-2.6.23.15-137.fc8, xorg-x11-drv-i810-2.1.1-8.fc8 and
> suspend worked perfectly.
> 
> The laptop will go to sleep properly but it doesn't seem to enjoy
> waking up. When it starts up it will either display a black screen and
> remain frozen or I will end up at a virtual term login prompt but when
> I put in my username it never prompts me for my password.
> 
> The only way to get suspend working reasonably well is to first
> hibernate and then suspend. After a hibernation suspend seems to work
> fine :S
> 
> I'm a real noob when it comes to figuring out these sort of things, so
> any pointers on things I could try would be much appreciated.
> 
> Here's what s2ram has to say about my hardware:
> Machine is unknown.
> This machine can be identified by:
>     sys_vendor   = "LENOVO"
>     sys_product  = "07642CU"
>     sys_version  = "LENOVO3000 V200"
>     bios_version = "65ET32WW (1.06 )"
> 
> Here's the output of dmidecode: http://pastebin.ca/973442

Can you try to run "echo mem > /sys/power/state" instead of s2ram and see
if the symptoms are the same?

Also, please try reverting commit 7c0ea45be4f114d85ee35caeead8e1660699c46f
(reproduced below for conveninence) and see if that helps.

Thanks,
Rafael

---
commit 7c0ea45be4f114d85ee35caeead8e1660699c46f
Author: Zhao Yakui <yakui.zhao@intel.com>
Date:   Tue Mar 11 16:56:47 2008 +0800

    ACPI: Ignore _BQC object when registering backlight device
    
    According to acpi spec , the objects of  _BCL and _BCM are required if
    integrated LCD is present and supports brightness level .The _BQC is
    the optional object. So the _BQC object is ignored when the backlight device
    is registered in ACPI video driver.
    
    http://bugzilla.kernel.org/show_bug.cgi?id=10206
    
    Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
    Signed-off-by: Zhang Rui  <rui.zhang@intel.com>
    Signed-off-by: Len Brown <len.brown@intel.com>

diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
index 12cce69..ace958c 100644
--- a/drivers/acpi/video.c
+++ b/drivers/acpi/video.c
@@ -713,7 +713,7 @@ static void acpi_video_device_find_cap(struct acpi_video_device *device)
 
 	kfree(obj);
 
-	if (device->cap._BCL && device->cap._BCM && device->cap._BQC && max_level > 0){
+	if (device->cap._BCL && device->cap._BCM && max_level > 0) {
 		int result;
 		static int count = 0;
 		char *name;

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

* Re: Suspend on Lenovo 3000 V200 - Linux 2.6.25rc8
  2008-04-06 20:21 ` Suspend on Lenovo 3000 V200 - Linux 2.6.25rc8 Rafael J. Wysocki
@ 2008-04-06 22:10   ` nikosapi
  2008-04-06 23:23     ` Rafael J. Wysocki
  0 siblings, 1 reply; 11+ messages in thread
From: nikosapi @ 2008-04-06 22:10 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: linux-acpi, Len Brown, LKML, Pavel Machek

On April 6, 2008 16:21:57 Rafael J. Wysocki wrote:
> On Sunday, 6 of April 2008, Nick Nobody wrote:
> > Hello,
>
> Hi,
>
> > I'm trying to get suspend working properly on my Lenovo 3000 V200. I'm
> > using Linux 2.6.25rc8 and the latest xf86-video-intel. Before I was
> > using kernel-2.6.23.15-137.fc8, xorg-x11-drv-i810-2.1.1-8.fc8 and
> > suspend worked perfectly.
> >
> > The laptop will go to sleep properly but it doesn't seem to enjoy
> > waking up. When it starts up it will either display a black screen and
> > remain frozen or I will end up at a virtual term login prompt but when
> > I put in my username it never prompts me for my password.
> >
> > The only way to get suspend working reasonably well is to first
> > hibernate and then suspend. After a hibernation suspend seems to work
> > fine :S
> >
> > I'm a real noob when it comes to figuring out these sort of things, so
> > any pointers on things I could try would be much appreciated.
> >
> > Here's what s2ram has to say about my hardware:
> > Machine is unknown.
> > This machine can be identified by:
> >     sys_vendor   = "LENOVO"
> >     sys_product  = "07642CU"
> >     sys_version  = "LENOVO3000 V200"
> >     bios_version = "65ET32WW (1.06 )"
> >
> > Here's the output of dmidecode: http://pastebin.ca/973442
>
> Can you try to run "echo mem > /sys/power/state" instead of s2ram and see
> if the symptoms are the same?
>
> Also, please try reverting commit 7c0ea45be4f114d85ee35caeead8e1660699c46f
> (reproduced below for conveninence) and see if that helps.
>
> Thanks,
> Rafael
>
> ---
> commit 7c0ea45be4f114d85ee35caeead8e1660699c46f
> Author: Zhao Yakui <yakui.zhao@intel.com>
> Date:   Tue Mar 11 16:56:47 2008 +0800
>
>     ACPI: Ignore _BQC object when registering backlight device
>
>     According to acpi spec , the objects of  _BCL and _BCM are required if
>     integrated LCD is present and supports brightness level .The _BQC is
>     the optional object. So the _BQC object is ignored when the backlight
> device is registered in ACPI video driver.
>
>     http://bugzilla.kernel.org/show_bug.cgi?id=10206
>
>     Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
>     Signed-off-by: Zhang Rui  <rui.zhang@intel.com>
>     Signed-off-by: Len Brown <len.brown@intel.com>
>
> diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
> index 12cce69..ace958c 100644
> --- a/drivers/acpi/video.c
> +++ b/drivers/acpi/video.c
> @@ -713,7 +713,7 @@ static void acpi_video_device_find_cap(struct
> acpi_video_device *device)
>
>  	kfree(obj);
>
> -	if (device->cap._BCL && device->cap._BCM && device->cap._BQC && max_level
> > 0){ +	if (device->cap._BCL && device->cap._BCM && max_level > 0) {
>  		int result;
>  		static int count = 0;
>  		char *name;
> --
> To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

Hello Rafael,

I tested with that patch and the problem persists, when the laptop resumes it 
locks up (with a black screen). If I add acpi_apic_instance=2 acpi_osi=Linux 
as kernel boot options (as suggested by my dmesg) when it resumes I get back 
to a virtual term but I'm not able to log in. After entering my username it 
just hangs there.

nick

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

* Re: Suspend on Lenovo 3000 V200 - Linux 2.6.25rc8
  2008-04-06 22:10   ` nikosapi
@ 2008-04-06 23:23     ` Rafael J. Wysocki
  2008-04-06 23:30       ` nikosapi
  0 siblings, 1 reply; 11+ messages in thread
From: Rafael J. Wysocki @ 2008-04-06 23:23 UTC (permalink / raw)
  To: nikosapi; +Cc: linux-acpi, Len Brown, LKML, Pavel Machek

On Monday, 7 of April 2008, nikosapi wrote:
> On April 6, 2008 16:21:57 Rafael J. Wysocki wrote:
> > On Sunday, 6 of April 2008, Nick Nobody wrote:
> > > Hello,
> >
> > Hi,
> >
> > > I'm trying to get suspend working properly on my Lenovo 3000 V200. I'm
> > > using Linux 2.6.25rc8 and the latest xf86-video-intel. Before I was
> > > using kernel-2.6.23.15-137.fc8, xorg-x11-drv-i810-2.1.1-8.fc8 and
> > > suspend worked perfectly.
> > >
> > > The laptop will go to sleep properly but it doesn't seem to enjoy
> > > waking up. When it starts up it will either display a black screen and
> > > remain frozen or I will end up at a virtual term login prompt but when
> > > I put in my username it never prompts me for my password.
> > >
> > > The only way to get suspend working reasonably well is to first
> > > hibernate and then suspend. After a hibernation suspend seems to work
> > > fine :S
> > >
> > > I'm a real noob when it comes to figuring out these sort of things, so
> > > any pointers on things I could try would be much appreciated.
> > >
> > > Here's what s2ram has to say about my hardware:
> > > Machine is unknown.
> > > This machine can be identified by:
> > >     sys_vendor   = "LENOVO"
> > >     sys_product  = "07642CU"
> > >     sys_version  = "LENOVO3000 V200"
> > >     bios_version = "65ET32WW (1.06 )"
> > >
> > > Here's the output of dmidecode: http://pastebin.ca/973442
> >
> > Can you try to run "echo mem > /sys/power/state" instead of s2ram and see
> > if the symptoms are the same?
> >
> > Also, please try reverting commit 7c0ea45be4f114d85ee35caeead8e1660699c46f
> > (reproduced below for conveninence) and see if that helps.
> >
> > Thanks,
> > Rafael
> >
> > ---
> > commit 7c0ea45be4f114d85ee35caeead8e1660699c46f
> > Author: Zhao Yakui <yakui.zhao@intel.com>
> > Date:   Tue Mar 11 16:56:47 2008 +0800
> >
> >     ACPI: Ignore _BQC object when registering backlight device
> >
> >     According to acpi spec , the objects of  _BCL and _BCM are required if
> >     integrated LCD is present and supports brightness level .The _BQC is
> >     the optional object. So the _BQC object is ignored when the backlight
> > device is registered in ACPI video driver.
> >
> >     http://bugzilla.kernel.org/show_bug.cgi?id=10206
> >
> >     Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
> >     Signed-off-by: Zhang Rui  <rui.zhang@intel.com>
> >     Signed-off-by: Len Brown <len.brown@intel.com>
> >
> > diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
> > index 12cce69..ace958c 100644
> > --- a/drivers/acpi/video.c
> > +++ b/drivers/acpi/video.c
> > @@ -713,7 +713,7 @@ static void acpi_video_device_find_cap(struct
> > acpi_video_device *device)
> >
> >  	kfree(obj);
> >
> > -	if (device->cap._BCL && device->cap._BCM && device->cap._BQC && max_level
> > > 0){ +	if (device->cap._BCL && device->cap._BCM && max_level > 0) {
> >  		int result;
> >  		static int count = 0;
> >  		char *name;
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> Hello Rafael,
> 
> I tested with that patch and the problem persists, when the laptop resumes it 
> locks up (with a black screen). If I add acpi_apic_instance=2 acpi_osi=Linux 
> as kernel boot options (as suggested by my dmesg) when it resumes I get back 
> to a virtual term but I'm not able to log in. After entering my username it 
> just hangs there.

Can you please test if the 2.6.24.4 kernel works, then?

Rafael

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

* Re: Suspend on Lenovo 3000 V200 - Linux 2.6.25rc8
  2008-04-06 23:23     ` Rafael J. Wysocki
@ 2008-04-06 23:30       ` nikosapi
  2008-04-07  8:44         ` Rafael J. Wysocki
  2008-04-07  8:58         ` Rafael J. Wysocki
  0 siblings, 2 replies; 11+ messages in thread
From: nikosapi @ 2008-04-06 23:30 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: linux-acpi, Len Brown, LKML, Pavel Machek

On April 6, 2008 19:23:36 Rafael J. Wysocki wrote:
> On Monday, 7 of April 2008, nikosapi wrote:
> > On April 6, 2008 16:21:57 Rafael J. Wysocki wrote:
> > > On Sunday, 6 of April 2008, Nick Nobody wrote:
> > > > Hello,
> > >
> > > Hi,
> > >
> > > > I'm trying to get suspend working properly on my Lenovo 3000 V200.
> > > > I'm using Linux 2.6.25rc8 and the latest xf86-video-intel. Before I
> > > > was using kernel-2.6.23.15-137.fc8, xorg-x11-drv-i810-2.1.1-8.fc8 and
> > > > suspend worked perfectly.
> > > >
> > > > The laptop will go to sleep properly but it doesn't seem to enjoy
> > > > waking up. When it starts up it will either display a black screen
> > > > and remain frozen or I will end up at a virtual term login prompt but
> > > > when I put in my username it never prompts me for my password.
> > > >
> > > > The only way to get suspend working reasonably well is to first
> > > > hibernate and then suspend. After a hibernation suspend seems to work
> > > > fine :S
> > > >
> > > > I'm a real noob when it comes to figuring out these sort of things,
> > > > so any pointers on things I could try would be much appreciated.
> > > >
> > > > Here's what s2ram has to say about my hardware:
> > > > Machine is unknown.
> > > > This machine can be identified by:
> > > >     sys_vendor   = "LENOVO"
> > > >     sys_product  = "07642CU"
> > > >     sys_version  = "LENOVO3000 V200"
> > > >     bios_version = "65ET32WW (1.06 )"
> > > >
> > > > Here's the output of dmidecode: http://pastebin.ca/973442
> > >
> > > Can you try to run "echo mem > /sys/power/state" instead of s2ram and
> > > see if the symptoms are the same?
> > >
> > > Also, please try reverting commit
> > > 7c0ea45be4f114d85ee35caeead8e1660699c46f (reproduced below for
> > > conveninence) and see if that helps.
> > >
> > > Thanks,
> > > Rafael
> > >
> > > ---
> > > commit 7c0ea45be4f114d85ee35caeead8e1660699c46f
> > > Author: Zhao Yakui <yakui.zhao@intel.com>
> > > Date:   Tue Mar 11 16:56:47 2008 +0800
> > >
> > >     ACPI: Ignore _BQC object when registering backlight device
> > >
> > >     According to acpi spec , the objects of  _BCL and _BCM are required
> > > if integrated LCD is present and supports brightness level .The _BQC is
> > > the optional object. So the _BQC object is ignored when the backlight
> > > device is registered in ACPI video driver.
> > >
> > >     http://bugzilla.kernel.org/show_bug.cgi?id=10206
> > >
> > >     Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
> > >     Signed-off-by: Zhang Rui  <rui.zhang@intel.com>
> > >     Signed-off-by: Len Brown <len.brown@intel.com>
> > >
> > > diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
> > > index 12cce69..ace958c 100644
> > > --- a/drivers/acpi/video.c
> > > +++ b/drivers/acpi/video.c
> > > @@ -713,7 +713,7 @@ static void acpi_video_device_find_cap(struct
> > > acpi_video_device *device)
> > >
> > >  	kfree(obj);
> > >
> > > -	if (device->cap._BCL && device->cap._BCM && device->cap._BQC &&
> > > max_level
> > >
> > > > 0){ +	if (device->cap._BCL && device->cap._BCM && max_level > 0) {
> > >
> > >  		int result;
> > >  		static int count = 0;
> > >  		char *name;
> > > --
> > > To unsubscribe from this list: send the line "unsubscribe linux-acpi"
> > > in the body of a message to majordomo@vger.kernel.org
> > > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> >
> > Hello Rafael,
> >
> > I tested with that patch and the problem persists, when the laptop
> > resumes it locks up (with a black screen). If I add acpi_apic_instance=2
> > acpi_osi=Linux as kernel boot options (as suggested by my dmesg) when it
> > resumes I get back to a virtual term but I'm not able to log in. After
> > entering my username it just hangs there.
>
> Can you please test if the 2.6.24.4 kernel works, then?
>
> Rafael
> --

What a coincidence, I upgraded to kernel-2.6.24.4-64.fc8 this afternoon. 
Suspend and hibernate work perfectly, even my wifi led works ;)

Could it be an error I made while configuring the 2.6.25rc8 kernel? Or maybe 
some other software that needs to be upgraded?

nick

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

* Re: Suspend on Lenovo 3000 V200 - Linux 2.6.25rc8
  2008-04-06 23:30       ` nikosapi
@ 2008-04-07  8:44         ` Rafael J. Wysocki
  2008-04-07 14:13           ` nikosapi
  2008-04-07  8:58         ` Rafael J. Wysocki
  1 sibling, 1 reply; 11+ messages in thread
From: Rafael J. Wysocki @ 2008-04-07  8:44 UTC (permalink / raw)
  To: nikosapi; +Cc: linux-acpi, Len Brown, LKML, Pavel Machek

On Monday, 7 of April 2008, nikosapi wrote:
> On April 6, 2008 19:23:36 Rafael J. Wysocki wrote:
> > On Monday, 7 of April 2008, nikosapi wrote:
> > > On April 6, 2008 16:21:57 Rafael J. Wysocki wrote:
> > > > On Sunday, 6 of April 2008, Nick Nobody wrote:
> > > > > Hello,
> > > >
> > > > Hi,
> > > >
> > > > > I'm trying to get suspend working properly on my Lenovo 3000 V200.
> > > > > I'm using Linux 2.6.25rc8 and the latest xf86-video-intel. Before I
> > > > > was using kernel-2.6.23.15-137.fc8, xorg-x11-drv-i810-2.1.1-8.fc8 and
> > > > > suspend worked perfectly.
> > > > >
> > > > > The laptop will go to sleep properly but it doesn't seem to enjoy
> > > > > waking up. When it starts up it will either display a black screen
> > > > > and remain frozen or I will end up at a virtual term login prompt but
> > > > > when I put in my username it never prompts me for my password.
> > > > >
> > > > > The only way to get suspend working reasonably well is to first
> > > > > hibernate and then suspend. After a hibernation suspend seems to work
> > > > > fine :S
> > > > >
> > > > > I'm a real noob when it comes to figuring out these sort of things,
> > > > > so any pointers on things I could try would be much appreciated.
> > > > >
> > > > > Here's what s2ram has to say about my hardware:
> > > > > Machine is unknown.
> > > > > This machine can be identified by:
> > > > >     sys_vendor   = "LENOVO"
> > > > >     sys_product  = "07642CU"
> > > > >     sys_version  = "LENOVO3000 V200"
> > > > >     bios_version = "65ET32WW (1.06 )"
> > > > >
> > > > > Here's the output of dmidecode: http://pastebin.ca/973442
> > > >
> > > > Can you try to run "echo mem > /sys/power/state" instead of s2ram and
> > > > see if the symptoms are the same?
> > > >
> > > > Also, please try reverting commit
> > > > 7c0ea45be4f114d85ee35caeead8e1660699c46f (reproduced below for
> > > > conveninence) and see if that helps.
> > > >
> > > > Thanks,
> > > > Rafael
> > > >
> > > > ---
> > > > commit 7c0ea45be4f114d85ee35caeead8e1660699c46f
> > > > Author: Zhao Yakui <yakui.zhao@intel.com>
> > > > Date:   Tue Mar 11 16:56:47 2008 +0800
> > > >
> > > >     ACPI: Ignore _BQC object when registering backlight device
> > > >
> > > >     According to acpi spec , the objects of  _BCL and _BCM are required
> > > > if integrated LCD is present and supports brightness level .The _BQC is
> > > > the optional object. So the _BQC object is ignored when the backlight
> > > > device is registered in ACPI video driver.
> > > >
> > > >     http://bugzilla.kernel.org/show_bug.cgi?id=10206
> > > >
> > > >     Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
> > > >     Signed-off-by: Zhang Rui  <rui.zhang@intel.com>
> > > >     Signed-off-by: Len Brown <len.brown@intel.com>
> > > >
> > > > diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
> > > > index 12cce69..ace958c 100644
> > > > --- a/drivers/acpi/video.c
> > > > +++ b/drivers/acpi/video.c
> > > > @@ -713,7 +713,7 @@ static void acpi_video_device_find_cap(struct
> > > > acpi_video_device *device)
> > > >
> > > >  	kfree(obj);
> > > >
> > > > -	if (device->cap._BCL && device->cap._BCM && device->cap._BQC &&
> > > > max_level
> > > >
> > > > > 0){ +	if (device->cap._BCL && device->cap._BCM && max_level > 0) {
> > > >
> > > >  		int result;
> > > >  		static int count = 0;
> > > >  		char *name;
> > > > --
> > > > To unsubscribe from this list: send the line "unsubscribe linux-acpi"
> > > > in the body of a message to majordomo@vger.kernel.org
> > > > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> > >
> > > Hello Rafael,
> > >
> > > I tested with that patch and the problem persists, when the laptop
> > > resumes it locks up (with a black screen). If I add acpi_apic_instance=2
> > > acpi_osi=Linux as kernel boot options (as suggested by my dmesg) when it
> > > resumes I get back to a virtual term but I'm not able to log in. After
> > > entering my username it just hangs there.
> >
> > Can you please test if the 2.6.24.4 kernel works, then?
> >
> > Rafael
> > --
> 
> What a coincidence, I upgraded to kernel-2.6.24.4-64.fc8 this afternoon. 
> Suspend and hibernate work perfectly, even my wifi led works ;)
> 
> Could it be an error I made while configuring the 2.6.25rc8 kernel? Or maybe 
> some other software that needs to be upgraded?

Most probably, there's a regression in the kernel.

Since the issue seems to be 100% reproducible for you, could you please carry
out a bisection to find the commit that broke things for you?

Rafael

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

* Re: Suspend on Lenovo 3000 V200 - Linux 2.6.25rc8
  2008-04-06 23:30       ` nikosapi
  2008-04-07  8:44         ` Rafael J. Wysocki
@ 2008-04-07  8:58         ` Rafael J. Wysocki
  2008-04-07 14:08           ` nikosapi
  1 sibling, 1 reply; 11+ messages in thread
From: Rafael J. Wysocki @ 2008-04-07  8:58 UTC (permalink / raw)
  To: nikosapi; +Cc: linux-acpi, Len Brown, LKML, Pavel Machek

On Monday, 7 of April 2008, nikosapi wrote:
> On April 6, 2008 19:23:36 Rafael J. Wysocki wrote:
> > On Monday, 7 of April 2008, nikosapi wrote:
> > > On April 6, 2008 16:21:57 Rafael J. Wysocki wrote:
> > > > On Sunday, 6 of April 2008, Nick Nobody wrote:
[--snip--]
> > >
> > > Hello Rafael,
> > >
> > > I tested with that patch and the problem persists, when the laptop
> > > resumes it locks up (with a black screen). If I add acpi_apic_instance=2
> > > acpi_osi=Linux as kernel boot options (as suggested by my dmesg) when it
> > > resumes I get back to a virtual term but I'm not able to log in. After
> > > entering my username it just hangs there.

Have you tried if doing "echo mem > /sys/power/state" instead of s2ram works?

If you have, what graphics adapter is there in your machine?

Rafael

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

* Re: Suspend on Lenovo 3000 V200 - Linux 2.6.25rc8
  2008-04-07  8:58         ` Rafael J. Wysocki
@ 2008-04-07 14:08           ` nikosapi
  2008-04-07 17:34             ` Rafael J. Wysocki
  0 siblings, 1 reply; 11+ messages in thread
From: nikosapi @ 2008-04-07 14:08 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: linux-acpi, Len Brown, LKML, Pavel Machek

On April 7, 2008 04:58:37 Rafael J. Wysocki wrote:
> On Monday, 7 of April 2008, nikosapi wrote:
> > On April 6, 2008 19:23:36 Rafael J. Wysocki wrote:
> > > On Monday, 7 of April 2008, nikosapi wrote:
> > > > On April 6, 2008 16:21:57 Rafael J. Wysocki wrote:
> > > > > On Sunday, 6 of April 2008, Nick Nobody wrote:
>
> [--snip--]
>
> > > > Hello Rafael,
> > > >
> > > > I tested with that patch and the problem persists, when the laptop
> > > > resumes it locks up (with a black screen). If I add
> > > > acpi_apic_instance=2 acpi_osi=Linux as kernel boot options (as
> > > > suggested by my dmesg) when it resumes I get back to a virtual term
> > > > but I'm not able to log in. After entering my username it just hangs
> > > > there.
>
> Have you tried if doing "echo mem > /sys/power/state" instead of s2ram
> works?
>
> If you have, what graphics adapter is there in your machine?
>
> Rafael
> --

Yes, I've been using /sys/power/state to put the machine to sleep ever since 
you told me. 

Here's the output of lspci -d 8086:2a02 -vvvxxx 

00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 
Integrated Graphics Controller (rev 03) (prog-if 00 [VGA controller])
        Subsystem: Lenovo Unknown device 3c18
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- 
<TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0
        Interrupt: pin A routed to IRQ 16
        Region 0: Memory at f4000000 (64-bit, non-prefetchable) [size=1M]
        Region 2: Memory at d0000000 (64-bit, prefetchable) [size=256M]
        Region 4: I/O ports at 1800 [size=8]
        Capabilities: [90] Message Signalled Interrupts: Mask- 64bit- 
Queue=0/0 Enable-
                Address: 00000000  Data: 0000
        Capabilities: [d0] Power Management version 3
                Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA 
PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-
                Bridge: PM- B3+
00: 86 80 02 2a 07 00 90 00 03 00 00 03 00 00 80 00
10: 04 00 00 f4 00 00 00 00 0c 00 00 d0 00 00 00 00
20: 01 18 00 00 00 00 00 00 00 00 00 00 aa 17 18 3c
30: 00 00 00 00 90 00 00 00 00 00 00 00 05 01 00 00
40: 00 00 00 00 48 00 00 00 09 00 0a 91 28 64 00 30
50: 04 00 30 00 19 00 00 00 00 00 00 00 00 00 80 3f
60: 00 00 00 00 00 00 02 00 00 00 00 00 00 00 00 00
70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
90: 05 d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c0: 00 00 00 00 01 01 01 01 00 00 00 00 4d 01 00 00
d0: 01 00 23 00 00 00 01 01 01 01 00 94 34 00 00 00
e0: 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00
f0: 05 02 34 07 00 00 00 00 90 0f 03 00 bc 0c 6e 3f

nick

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

* Re: Suspend on Lenovo 3000 V200 - Linux 2.6.25rc8
  2008-04-07  8:44         ` Rafael J. Wysocki
@ 2008-04-07 14:13           ` nikosapi
  0 siblings, 0 replies; 11+ messages in thread
From: nikosapi @ 2008-04-07 14:13 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: linux-acpi, Len Brown, LKML, Pavel Machek

On April 7, 2008 04:44:29 Rafael J. Wysocki wrote:
> On Monday, 7 of April 2008, nikosapi wrote:
> > On April 6, 2008 19:23:36 Rafael J. Wysocki wrote:
> > > On Monday, 7 of April 2008, nikosapi wrote:
> > > > On April 6, 2008 16:21:57 Rafael J. Wysocki wrote:
> > > > > On Sunday, 6 of April 2008, Nick Nobody wrote:
> > > > > > Hello,
> > > > >
> > > > > Hi,
> > > > >
> > > > > > I'm trying to get suspend working properly on my Lenovo 3000
> > > > > > V200. I'm using Linux 2.6.25rc8 and the latest xf86-video-intel.
> > > > > > Before I was using kernel-2.6.23.15-137.fc8,
> > > > > > xorg-x11-drv-i810-2.1.1-8.fc8 and suspend worked perfectly.
> > > > > >
> > > > > > The laptop will go to sleep properly but it doesn't seem to enjoy
> > > > > > waking up. When it starts up it will either display a black
> > > > > > screen and remain frozen or I will end up at a virtual term login
> > > > > > prompt but when I put in my username it never prompts me for my
> > > > > > password.
> > > > > >
> > > > > > The only way to get suspend working reasonably well is to first
> > > > > > hibernate and then suspend. After a hibernation suspend seems to
> > > > > > work fine :S
> > > > > >
> > > > > > I'm a real noob when it comes to figuring out these sort of
> > > > > > things, so any pointers on things I could try would be much
> > > > > > appreciated.
> > > > > >
> > > > > > Here's what s2ram has to say about my hardware:
> > > > > > Machine is unknown.
> > > > > > This machine can be identified by:
> > > > > >     sys_vendor   = "LENOVO"
> > > > > >     sys_product  = "07642CU"
> > > > > >     sys_version  = "LENOVO3000 V200"
> > > > > >     bios_version = "65ET32WW (1.06 )"
> > > > > >
> > > > > > Here's the output of dmidecode: http://pastebin.ca/973442
> > > > >
> > > > > Can you try to run "echo mem > /sys/power/state" instead of s2ram
> > > > > and see if the symptoms are the same?
> > > > >
> > > > > Also, please try reverting commit
> > > > > 7c0ea45be4f114d85ee35caeead8e1660699c46f (reproduced below for
> > > > > conveninence) and see if that helps.
> > > > >
> > > > > Thanks,
> > > > > Rafael
> > > > >
> > > > > ---
> > > > > commit 7c0ea45be4f114d85ee35caeead8e1660699c46f
> > > > > Author: Zhao Yakui <yakui.zhao@intel.com>
> > > > > Date:   Tue Mar 11 16:56:47 2008 +0800
> > > > >
> > > > >     ACPI: Ignore _BQC object when registering backlight device
> > > > >
> > > > >     According to acpi spec , the objects of  _BCL and _BCM are
> > > > > required if integrated LCD is present and supports brightness level
> > > > > .The _BQC is the optional object. So the _BQC object is ignored
> > > > > when the backlight device is registered in ACPI video driver.
> > > > >
> > > > >     http://bugzilla.kernel.org/show_bug.cgi?id=10206
> > > > >
> > > > >     Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
> > > > >     Signed-off-by: Zhang Rui  <rui.zhang@intel.com>
> > > > >     Signed-off-by: Len Brown <len.brown@intel.com>
> > > > >
> > > > > diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
> > > > > index 12cce69..ace958c 100644
> > > > > --- a/drivers/acpi/video.c
> > > > > +++ b/drivers/acpi/video.c
> > > > > @@ -713,7 +713,7 @@ static void acpi_video_device_find_cap(struct
> > > > > acpi_video_device *device)
> > > > >
> > > > >  	kfree(obj);
> > > > >
> > > > > -	if (device->cap._BCL && device->cap._BCM && device->cap._BQC &&
> > > > > max_level
> > > > >
> > > > > > 0){ +	if (device->cap._BCL && device->cap._BCM && max_level > 0)
> > > > > > {
> > > > >
> > > > >  		int result;
> > > > >  		static int count = 0;
> > > > >  		char *name;
> > > > > --
> > > > > To unsubscribe from this list: send the line "unsubscribe
> > > > > linux-acpi" in the body of a message to majordomo@vger.kernel.org
> > > > > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> > > >
> > > > Hello Rafael,
> > > >
> > > > I tested with that patch and the problem persists, when the laptop
> > > > resumes it locks up (with a black screen). If I add
> > > > acpi_apic_instance=2 acpi_osi=Linux as kernel boot options (as
> > > > suggested by my dmesg) when it resumes I get back to a virtual term
> > > > but I'm not able to log in. After entering my username it just hangs
> > > > there.
> > >
> > > Can you please test if the 2.6.24.4 kernel works, then?
> > >
> > > Rafael
> > > --
> >
> > What a coincidence, I upgraded to kernel-2.6.24.4-64.fc8 this afternoon.
> > Suspend and hibernate work perfectly, even my wifi led works ;)
> >
> > Could it be an error I made while configuring the 2.6.25rc8 kernel? Or
> > maybe some other software that needs to be upgraded?
>
> Most probably, there's a regression in the kernel.
>
> Since the issue seems to be 100% reproducible for you, could you please
> carry out a bisection to find the commit that broke things for you?
>
> Rafael
> --

Hello,

I've never done a bisection before, I found this[1] page that seems to explain 
the procedure. At the moment I don't have too much free time to try that out, 
I can get back to you at the end of the week.

Thanks,

nick

[1] http://www.kernel.org/pub/software/scm/git/docs/git-bisect.html

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

* Re: Suspend on Lenovo 3000 V200 - Linux 2.6.25rc8
  2008-04-07 14:08           ` nikosapi
@ 2008-04-07 17:34             ` Rafael J. Wysocki
  2008-04-07 22:59               ` nikosapi
  0 siblings, 1 reply; 11+ messages in thread
From: Rafael J. Wysocki @ 2008-04-07 17:34 UTC (permalink / raw)
  To: nikosapi; +Cc: linux-acpi, Len Brown, LKML, Pavel Machek

On Monday, 7 of April 2008, nikosapi wrote:
> On April 7, 2008 04:58:37 Rafael J. Wysocki wrote:
> > On Monday, 7 of April 2008, nikosapi wrote:
> > > On April 6, 2008 19:23:36 Rafael J. Wysocki wrote:
> > > > On Monday, 7 of April 2008, nikosapi wrote:
> > > > > On April 6, 2008 16:21:57 Rafael J. Wysocki wrote:
> > > > > > On Sunday, 6 of April 2008, Nick Nobody wrote:
> >
> > [--snip--]
> >
> > > > > Hello Rafael,
> > > > >
> > > > > I tested with that patch and the problem persists, when the laptop
> > > > > resumes it locks up (with a black screen). If I add
> > > > > acpi_apic_instance=2 acpi_osi=Linux as kernel boot options (as
> > > > > suggested by my dmesg) when it resumes I get back to a virtual term
> > > > > but I'm not able to log in. After entering my username it just hangs
> > > > > there.
> >
> > Have you tried if doing "echo mem > /sys/power/state" instead of s2ram
> > works?
> >
> > If you have, what graphics adapter is there in your machine?
> >
> > Rafael
> > --
> 
> Yes, I've been using /sys/power/state to put the machine to sleep ever since 
> you told me. 
> 
> Here's the output of lspci -d 8086:2a02 -vvvxxx 
> 
> 00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 
> Integrated Graphics Controller (rev 03) (prog-if 00 [VGA controller])

Hm, Intel.  Do you use the i915 driver?

Well, I think that what you see is another form of
http://bugzilla.kernel.org/show_bug.cgi?id=10319
so you can add yourself to the CC list in there.

Thanks,
Rafael

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

* Re: Suspend on Lenovo 3000 V200 - Linux 2.6.25rc8
  2008-04-07 17:34             ` Rafael J. Wysocki
@ 2008-04-07 22:59               ` nikosapi
  2008-04-07 23:12                 ` Rafael J. Wysocki
  0 siblings, 1 reply; 11+ messages in thread
From: nikosapi @ 2008-04-07 22:59 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: linux-acpi, Len Brown, LKML, Pavel Machek

On April 7, 2008 13:34:41 Rafael J. Wysocki wrote:
> On Monday, 7 of April 2008, nikosapi wrote:
> > On April 7, 2008 04:58:37 Rafael J. Wysocki wrote:
> > > On Monday, 7 of April 2008, nikosapi wrote:
> > > > On April 6, 2008 19:23:36 Rafael J. Wysocki wrote:
> > > > > On Monday, 7 of April 2008, nikosapi wrote:
> > > > > > On April 6, 2008 16:21:57 Rafael J. Wysocki wrote:
> > > > > > > On Sunday, 6 of April 2008, Nick Nobody wrote:
> > >
> > > [--snip--]
> > >
> > > > > > Hello Rafael,
> > > > > >
> > > > > > I tested with that patch and the problem persists, when the
> > > > > > laptop resumes it locks up (with a black screen). If I add
> > > > > > acpi_apic_instance=2 acpi_osi=Linux as kernel boot options (as
> > > > > > suggested by my dmesg) when it resumes I get back to a virtual
> > > > > > term but I'm not able to log in. After entering my username it
> > > > > > just hangs there.
> > >
> > > Have you tried if doing "echo mem > /sys/power/state" instead of s2ram
> > > works?
> > >
> > > If you have, what graphics adapter is there in your machine?
> > >
> > > Rafael
> > > --
> >
> > Yes, I've been using /sys/power/state to put the machine to sleep ever
> > since you told me.
> >
> > Here's the output of lspci -d 8086:2a02 -vvvxxx
> >
> > 00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960
> > Integrated Graphics Controller (rev 03) (prog-if 00 [VGA controller])
>
> Hm, Intel.  Do you use the i915 driver?
>
> Well, I think that what you see is another form of
> http://bugzilla.kernel.org/show_bug.cgi?id=10319
> so you can add yourself to the CC list in there.
>
> Thanks,
> Rafael

Good news! I was reading through the linux-kernel archives and I found this[1] 
post. It suggested using 2.6.25rc8-git2, I installed git4 and suspend works!

Thanks for your time, if you need anything else just ask.

nick

[1] http://marc.info/?l=linux-kernel&m=120760390231799&w=2

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

* Re: Suspend on Lenovo 3000 V200 - Linux 2.6.25rc8
  2008-04-07 22:59               ` nikosapi
@ 2008-04-07 23:12                 ` Rafael J. Wysocki
  0 siblings, 0 replies; 11+ messages in thread
From: Rafael J. Wysocki @ 2008-04-07 23:12 UTC (permalink / raw)
  To: nikosapi; +Cc: linux-acpi, Len Brown, LKML, Pavel Machek

On Tuesday, 8 of April 2008, nikosapi wrote:
> On April 7, 2008 13:34:41 Rafael J. Wysocki wrote:
> > On Monday, 7 of April 2008, nikosapi wrote:
> > > On April 7, 2008 04:58:37 Rafael J. Wysocki wrote:
> > > > On Monday, 7 of April 2008, nikosapi wrote:
> > > > > On April 6, 2008 19:23:36 Rafael J. Wysocki wrote:
> > > > > > On Monday, 7 of April 2008, nikosapi wrote:
> > > > > > > On April 6, 2008 16:21:57 Rafael J. Wysocki wrote:
> > > > > > > > On Sunday, 6 of April 2008, Nick Nobody wrote:
> > > >
> > > > [--snip--]
> > > >
> > > > > > > Hello Rafael,
> > > > > > >
> > > > > > > I tested with that patch and the problem persists, when the
> > > > > > > laptop resumes it locks up (with a black screen). If I add
> > > > > > > acpi_apic_instance=2 acpi_osi=Linux as kernel boot options (as
> > > > > > > suggested by my dmesg) when it resumes I get back to a virtual
> > > > > > > term but I'm not able to log in. After entering my username it
> > > > > > > just hangs there.
> > > >
> > > > Have you tried if doing "echo mem > /sys/power/state" instead of s2ram
> > > > works?
> > > >
> > > > If you have, what graphics adapter is there in your machine?
> > > >
> > > > Rafael
> > > > --
> > >
> > > Yes, I've been using /sys/power/state to put the machine to sleep ever
> > > since you told me.
> > >
> > > Here's the output of lspci -d 8086:2a02 -vvvxxx
> > >
> > > 00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960
> > > Integrated Graphics Controller (rev 03) (prog-if 00 [VGA controller])
> >
> > Hm, Intel.  Do you use the i915 driver?
> >
> > Well, I think that what you see is another form of
> > http://bugzilla.kernel.org/show_bug.cgi?id=10319
> > so you can add yourself to the CC list in there.
> >
> > Thanks,
> > Rafael
> 
> Good news! I was reading through the linux-kernel archives and I found this[1] 
> post. It suggested using 2.6.25rc8-git2, I installed git4 and suspend works!
> 
> Thanks for your time, if you need anything else just ask.

Thanks for the update, I'm glad it started to work for you.

Rafael

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

end of thread, other threads:[~2008-04-07 23:12 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <3e8fd0440804052010xbe8f59bw3268d8206b97ac3e@mail.gmail.com>
2008-04-06 20:21 ` Suspend on Lenovo 3000 V200 - Linux 2.6.25rc8 Rafael J. Wysocki
2008-04-06 22:10   ` nikosapi
2008-04-06 23:23     ` Rafael J. Wysocki
2008-04-06 23:30       ` nikosapi
2008-04-07  8:44         ` Rafael J. Wysocki
2008-04-07 14:13           ` nikosapi
2008-04-07  8:58         ` Rafael J. Wysocki
2008-04-07 14:08           ` nikosapi
2008-04-07 17:34             ` Rafael J. Wysocki
2008-04-07 22:59               ` nikosapi
2008-04-07 23:12                 ` 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;
as well as URLs for NNTP newsgroup(s).