public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [FIX] apm.c: ignore_normal_resume is set to 1 a bit too late
@ 2005-06-13  9:45 Thomas Hood
       [not found] ` <20050613222003.2895ac2c.sfr@canb.auug.org.au>
  2005-06-13 21:38 ` [FIX] apm.c: ignore_normal_resume is set to 1 " Jesper Juhl
  0 siblings, 2 replies; 3+ messages in thread
From: Thomas Hood @ 2005-06-13  9:45 UTC (permalink / raw)
  To: linux-kernel; +Cc: sfr

This message contains a fix for a bug in the apm driver.

A bug report was submitted to the Debian BTS saying that on the
submitter's system the apmd proxy script was being run twice on resume.

Having seen exactly the same problem some years ago and knowing that the
solution then was to ensure that the ignore_normal_resume flag got set
before there was any chance of an APM RESUME event being processed, I
checked the current apm.c and I found that ignore_normal_resume was once
again being set too late.  I asked the submitter to move the line where
the flag was set and he reported that this change solved the problem.  I
append the message in question.  The line numbers I mention there are
for Linux 2.6.11.

Please make the indicated change to the apm driver.

-------- Forwarded Message --------
jdthood@aglu.demon.nl wrote to the submitter of Debian bug #310865:
> In arch/i386/kernel/apm.c there is at approximately line 1229:
> 
>         ignore_normal_resume = 1;
> 
> Move this up so that it occurs right after line 1222:
> 
>         err = set_system_power_state(APM_STATE_SUSPEND);
> 
> Let us know if that helps.


It does. Very nice.
I don't understand what I did and how it works. Will you try to
push that into kernel sources or is this no permanent fix?
-- 
Thomas Hood <jdthood@aglu.demon.nl>


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

end of thread, other threads:[~2005-06-13 21:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-13  9:45 [FIX] apm.c: ignore_normal_resume is set to 1 a bit too late Thomas Hood
     [not found] ` <20050613222003.2895ac2c.sfr@canb.auug.org.au>
2005-06-13 13:50   ` [PATCH] apm.c: ignore_normal_resume is set " Thomas Hood
2005-06-13 21:38 ` [FIX] apm.c: ignore_normal_resume is set to 1 " Jesper Juhl

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