Subject: some more debug info for the apm problem
To: None <current-users@NetBSD.ORG>
From: Thorsten Frueauf <s_frueau@ira.uka.de>
List: current-users
Date: 01/15/1997 23:27:25
Hello!
I stil try to track down the problem with apmd not executing /etc/apm/resume
proberly.
I started apmd via `ktrace apmd -d`, then `apm -z`. After resuming the machine
I stoped apmd with ctrl c and did kdump:
<some beginning stuff deleted>
7823 apmd CALL access(0x1e72,0x5)
7823 apmd NAMI "/etc/apm/suspend"
7823 apmd RET access 0
7823 apmd CALL fork
7823 apmd RET fork 7825/0x1e91
7823 apmd CALL wait4(0x1e91,0xf7bfd770,0,0)
7823 apmd RET wait4 7825/0x1e91
7823 apmd CALL gettimeofday(0xf7bfcae0,0)
7823 apmd RET gettimeofday 0
7823 apmd CALL sendto(0x4,0xf7bfcf38,0x40,0,0,0)
7823 apmd GIO fd 4 wrote 64 bytes
"<143>Jan 15 20:28:36 apmd: /etc/apm/suspend exited with status 0"
7823 apmd RET sendto 64/0x40
7823 apmd CALL sync
7823 apmd RET sync 0
7823 apmd CALL open(0x1ce8,0x1,0x3)
7823 apmd NAMI "/dev/speaker"
7823 apmd RET open 6
7823 apmd CALL gettimeofday(0xf7bfcae0,0)
7823 apmd RET gettimeofday 0
7823 apmd CALL sendto(0x4,0xf7bfcf38,0x36,0,0,0)
7823 apmd GIO fd 4 wrote 54 bytes
"<143>Jan 15 20:28:36 apmd: sending 2 tones to speaker
"
7823 apmd RET sendto 54/0x36
7823 apmd CALL write(0x6,0x1d5b,0x4)
7823 apmd GIO fd 6 wrote 4 bytes
"o4cc"
7823 apmd RET write 4
7823 apmd CALL close(0x6)
7823 apmd RET close 0
7823 apmd CALL sync
7823 apmd RET sync 0
7823 apmd CALL sync
7823 apmd RET sync 0
7823 apmd CALL sigprocmask(0x1,0x2000)
7823 apmd RET sigprocmask 0
7823 apmd CALL sigaction(0xe,0xf7bfd740,0xf7bfd734)
7823 apmd RET sigaction 0
7823 apmd CALL setitimer(0,0xf7bfd75c,0xf7bfd74c)
7823 apmd RET setitimer 0
7823 apmd CALL sigsuspend(0)
7823 apmd PSIG SIGALRM caught handler=0x10044824 mask=0x2000 code=0x0
7823 apmd RET sigsuspend -1 errno 4 Interrupted system call
7823 apmd CALL sigreturn(0xf7bfd6b4)
7823 apmd RET sigreturn JUSTRETURN
7823 apmd CALL sigprocmask(0x3,0)
7823 apmd RET sigprocmask 8192/0x2000
7823 apmd CALL sigaction(0xe,0xf7bfd734,0)
7823 apmd RET sigaction 0
7823 apmd CALL setitimer(0,0xf7bfd74c,0)
7823 apmd RET setitimer 0
7823 apmd CALL ioctl(0x3,_IO('A',0x2),0)
7823 apmd RET ioctl 0
7823 apmd CALL select(0x6,0xf7bfd808,0,0,0xf7bfd7d4)
7823 apmd RET select 1
7823 apmd CALL ioctl(0x3,_IOW('A',0x4,0x28),0xf7bfd7e0)
7823 apmd RET ioctl 0
7823 apmd CALL gettimeofday(0xf7bfcb08,0)
7823 apmd RET gettimeofday 0
7823 apmd CALL sendto(0x4,0xf7bfcf60,0x30,0,0,0)
7823 apmd GIO fd 4 wrote 48 bytes
"<143>Jan 15 20:29:27 apmd: apmevent 0003 index 3"
7823 apmd RET sendto 48/0x30
7823 apmd CALL ioctl(0x3,_IOW('A',0x4,0x28),0xf7bfd7e0)
7823 apmd RET ioctl -1 errno 35 Resource temporarily unavailable
7823 apmd CALL access(0x1f18,0x5)
7823 apmd NAMI "/etc/apm/resume"
7823 apmd RET access 0
7823 apmd CALL fork
7823 apmd RET fork 7830/0x1e96
7823 apmd CALL wait4(0x1e96,0xf7bfd774,0,0)
7823 apmd RET wait4 7830/0x1e96
7823 apmd CALL gettimeofday(0xf7bfcae4,0)
7823 apmd RET gettimeofday 0
7823 apmd CALL sendto(0x4,0xf7bfcf3c,0x41,0,0,0)
7823 apmd GIO fd 4 wrote 65 bytes
"<143>Jan 15 20:29:37 apmd: /etc/apm/resume exited with status 255"
7823 apmd RET sendto 65/0x41
7823 apmd CALL gettimeofday(0xf7bfcb0c,0)
7823 apmd RET gettimeofday 0
7823 apmd CALL sendto(0x4,0xf7bfcf64,0x38,0,0,0)
7823 apmd GIO fd 4 wrote 56 bytes
"<141>Jan 15 20:29:37 apmd: system resumed from APM sleep"
7823 apmd RET sendto 56/0x38
7823 apmd CALL select(0x6,0xf7bfd808,0,0,0xf7bfd7d4)
7823 apmd PSIG SIGINT caught handler=0x17d0 mask=0x0 code=0x0
7823 apmd RET select -1 errno 4 Interrupted system call
7823 apmd CALL unlink(0x5000)
7823 apmd NAMI "/var/run/apmdev"
7823 apmd RET unlink 0
7823 apmd CALL exit(0x1)
So apmd tryes to start /etc/apm/resume, but fails on some strange reason?
/var/log/messages looks like:
Jan 15 20:28:18 cyberlap apmd: battery status: high. external power status: connected. estimated battery life 98% (90 minutes)
Jan 15 20:28:36 cyberlap /netbsd: pcmcia0: device ep0 at slot 0 detached/retained
Jan 15 20:29:37 cyberlap /netbsd: wdc0(wd0): lost interrupt
Jan 15 20:29:37 cyberlap apmd: system resumed from APM sleep
That "lost interrupt" messages from wdc make me think that this is definitly a
problem with the IDE driver, especially with the atapi patches?
Does anyone without atapi patches, but with IDE hard disk and apm see this
too?
Thanx for any help in advance!
Greets
Thorsten
--
Name : Thorsten Frueauf Milano@irc cri@onaliM //
E-Mail: s_frueau@ira.uka.de oder ukfy@rz.uni-karlsruhe.de \X/