Subject: Re: if you have some APM problems/quirks, try this please
To: John Kohl <jtk@kolvir.arlington-heights.ma.us>
From: Thorsten Frueauf <s_frueau@ira.uka.de>
List: port-i386
Date: 04/10/1997 14:27:16
Hello!

> If you have an i386 box with APM support which has trouble suspending
> more than once, or trouble staying suspended, or other various problems
> (not involving error codes once per second or machine resets), try out
> this change to apm.c and let me know if it improves your system's
> behaviour.

I applyed your patch to my current 08.04.97 tree with uptodate atapi and
pcmcia patches. I stil have the strange problem, after resuming from
suspend mode, /etc/apm/resume and various random things in the
filesystem get trashed.

Before suspend, the /etc/apm/resume skript looks good, after
suspend-resume it looks like:

60,32;\pg_data:96,192,32;;pagerops:T192=s40pgo_init:193=*194=f19,0,32;pgo_alloc:195=*196=f172,32,32;\pgo_dealloc:197=*198=f19,64,32;pgo_getpages:199=*200=f1,96,32;\pgo_putpages:199,128,32;pgo_haspage:201=*202=f1,160,32;\pgo_cluster:203=*204=f19,192,32;pgo_remove:205=*206=f1,224,32;\pgo_next:207=*208=f5,256,32;pgo_count:209=*210=f1,288,32;;vm_object:T169=s76memq:183,0,64;object_list:211=s8tqe_next:168,0,32;\tqe_prev:212=*168,32,32;;,64,64;flags:9,128,16;\paging_in_progress:9,144,16;Lock:176,160,32;ref_count:1,192,32;\size:5,224,32;resident_page_count:1,256,32;copy:168,288,32;\pager:172,320,32;paging_offset:5,352,32;shadow:168,384,32;\shadow_offset:5,416,32;cached_list:213=s8tqe_next:168,0,32;\tqe_prev:212,32,32;;,448,64;shadowers:214=s4lh_first:168,0,32;;,512,32;\shadowers_list:215=s8le_next:168,0,32;le_prev:212,32,32;;,544,64;;vm_object_hash_head:T216=s8tqh_first:217=*218=xsvm_object_hash_entry:,0,32;\tqh_last:219=*217,32,32;;vm_object_hash_entry:T218=s12hash_links:220=s8tqe_next:217,0,32;\

And after a reboot with fsck it looks ok again! So I think some apm
problems might be related to some vm changes/bugs :-/ But as I use
also the atapi and pcmcia patches, I did not venture to send-pr this, as
I really have no idea on how to debug this.

But as I once got a really trashed filesystem with some data loss, I
decided not to use apm at its current stage. Since I stoped using apm,
I had no errors yet. But it is annoying to always shutdown/turn on a
laptop if one moves, instead of resuming and just continuing work :-(

Greets
      Thorsten

PS: I wanted to thank you for your quick integration of current changes
    to the pcmcia stuff. I really appreciate it :-)
-- 

   Name  : Thorsten Frueauf            Milano@irc cri@onaliM       //
   E-Mail: s_frueau@ira.uka.de oder ukfy@rz.uni-karlsruhe.de     \X/