public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* presario 2500 hangs on resume s3
@ 2005-08-22 17:02 Antonio Distante
       [not found] ` <1124730128.10429.5.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Antonio Distante @ 2005-08-22 17:02 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Notebook:      Compaq Presario 2532EA
Graphic card:  ATI igp 345m

My laptop goes into S3 well but hangs on resume. I can hear cdrom spin up,
but nothing more. The screen is off, I can't login with ssh and sometimes the
fan starts up as in high load. I tried alla suggestion from
Documentation/power/video.txt without luck, I think the problem is not video
card. Searching in acpi-devel mailinglist's archive I found this 
Pavel Machek's patch that should play a beep on resume:

 --- clean/arch/i386/kernel/acpi/wakeup.S	2005-01-22 21:24:51.000000000 +0100
 +++ linux/arch/i386/kernel/acpi/wakeup.S	2004-12-25 15:51:04.000000000 +0100
 @@ -11,7 +11,22 @@
  #
  # If physical address of wakeup_code is 0x12345, BIOS should call us with
  # cs = 0x1234, eip = 0x05
 -# 
 +#
 +
 +#define BEEP \
 +	inb	$97, %al; 	\
 +	outb	%al, $0x80; 	\
 +	movb	$3, %al; 	\
 +	outb	%al, $97; 	\
 +	outb	%al, $0x80; 	\
 +	movb	$-74, %al; 	\
 +	outb	%al, $67; 	\
 +	outb	%al, $0x80; 	\
 +	movb	$-119, %al; 	\
 +	outb	%al, $66; 	\
 +	outb	%al, $0x80; 	\
 +	movb	$15, %al; 	\
 +	outb	%al, $66;
  
  ALIGN
  	.align	4096
 @@ -20,6 +35,7 @@
  	wakeup_code_start = .
  	.code16
  
 +	BEEP
   	movw	$0xb800, %ax
  	movw	%ax,%fs
  	movw	$0x0e00 + "L", %fs:(0x10)

I applied it to a 2.6.13-rc5 vanilla kernel and build it without framebuffer
support. I booted the new kernel with "init=/bin/sh" and then tried to S3. On
resume system hangs and I can't hear no beep. I hope this helps. Just ask if you
need some other informations.
Thanks,
Antonio



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

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

* Re: presario 2500 hangs on resume s3
       [not found] ` <1124730128.10429.5.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
@ 2005-08-25 18:24   ` Pavel Machek
       [not found]     ` <20050825182457.GB443-u08AdweFZfgxtPtxi4kahqVXKuFTiq87@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Pavel Machek @ 2005-08-25 18:24 UTC (permalink / raw)
  To: Antonio Distante; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Hi!

> Pavel Machek's patch that should play a beep on resume:
> 
>  --- clean/arch/i386/kernel/acpi/wakeup.S	2005-01-22 21:24:51.000000000 +0100
>  +++ linux/arch/i386/kernel/acpi/wakeup.S	2004-12-25 15:51:04.000000000 +0100
....
> 
> I applied it to a 2.6.13-rc5 vanilla kernel and build it without framebuffer
> support. I booted the new kernel with "init=/bin/sh" and then tried to S3. On
> resume system hangs and I can't hear no beep. I hope this helps. Just ask if you
> need some other informations.

Try it with apic disabled and minimal config...

Yep, this is hard to debug. If above does not help, I do not know what to
do...
				Pavel
-- 
64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms         



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

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

* Re: presario 2500 hangs on resume s3
       [not found]     ` <20050825182457.GB443-u08AdweFZfgxtPtxi4kahqVXKuFTiq87@public.gmane.org>
@ 2005-08-26 22:06       ` Antonio Distante
  0 siblings, 0 replies; 3+ messages in thread
From: Antonio Distante @ 2005-08-26 22:06 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Hi Pavel,

> Try it with apic disabled and minimal config...

No luck! I think that my laptop has the problem described in
http://bugzilla.kernel.org/show_bug.cgi?id=2664 for hp nc4000 (my
hardware is pretty much the same). Matthew Garrett thinks that in nc4000
(and maybe in my laptop) the ATI northbridge is not configured to ensure
that memory is self-refreshed when suspended. HP tech support didn't
give useful information and I didn't find northbrige's data sheet.

Best regards,
Antonio



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

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

end of thread, other threads:[~2005-08-26 22:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-22 17:02 presario 2500 hangs on resume s3 Antonio Distante
     [not found] ` <1124730128.10429.5.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2005-08-25 18:24   ` Pavel Machek
     [not found]     ` <20050825182457.GB443-u08AdweFZfgxtPtxi4kahqVXKuFTiq87@public.gmane.org>
2005-08-26 22:06       ` Antonio Distante

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