Re: Suspend/resume on IBM X31

2008-05-21 Thread James Butler
On Mon, May 19, 2008 at 10:24 PM, James Butler
[EMAIL PROTECTED] wrote:
 Greetings

 I am having trouble with suspend/resume on my Thinkpad X31, running
 7.0-STABLE as of April 23. Any help would be appreciated.

 First problem: When I run acpiconf -s3 from mulituser mode, the
 system suspends immediately, without executing /etc/rc.suspend (which
 has mode 755); then on resume, I get a panic.
[...]

I just discovered:
http://lists.freebsd.org/pipermail/freebsd-acpi/2008-April/004806.html
which fixes the problem for me.

Cheers,
-James
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Suspend/resume on IBM X31

2008-05-20 Thread James Butler
On Mon, May 19, 2008 at 11:15 PM, Jeremy Chadwick [EMAIL PROTECTED] wrote:
 On Mon, May 19, 2008 at 10:24:43PM +1200, James Butler wrote:
 Second problem: When the system panics, I don't get a dump (or
 textdump for that matter, when I turn them on); in the boot messages,
 I see kernel dumps on /dev/ad0s2b and then later (from memory),
 Looking for core dumps on /dev/ad0s2b savecore: no dumps found
 or somesuch. I know from trying out textdumps that dumping works in
 other circumstances.

 This is a known problem, but is difficult to solve (chicken-and-egg
 situation).  There's an open PR for it.

 http://www.freebsd.org/cgi/query-pr.cgi?pr=conf/118255

 --
 | Jeremy Chadwickjdc at parodius.com |
 | Parodius Networking   http://www.parodius.com/ |
 | UNIX Systems Administrator  Mountain View, CA, USA |
 | Making life hard for others since 1977.  PGP: 4BD6C0CB |



Thanks for the pointer, but this doesn't seem to exactly match my
situation. I can boot to single-user after a panic, no swap, and
savecore still tells me that there's no dump present; conversely (I
should have made this clearer) kernel dumps work for me when the panic
is triggered in other ways (eg. by switching vt's too quickly from X -
don't know why).

Maybe tomorrow I'll try manually transcribing some DDB output, but for
me the more interesting problem is why /etc/rc.suspend is not
executed. I haven't even thought about /etc/rc.resume yet :-)

Thanks,
-James Butler
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Suspend/resume on IBM X31

2008-05-19 Thread James Butler
Greetings

I am having trouble with suspend/resume on my Thinkpad X31, running
7.0-STABLE as of April 23. Any help would be appreciated.

First problem: When I run acpiconf -s3 from mulituser mode, the
system suspends immediately, without executing /etc/rc.suspend (which
has mode 755); then on resume, I get a panic.

Second problem: When the system panics, I don't get a dump (or
textdump for that matter, when I turn them on); in the boot messages,
I see kernel dumps on /dev/ad0s2b and then later (from memory),
Looking for core dumps on /dev/ad0s2b savecore: no dumps found
or somesuch. I know from trying out textdumps that dumping works in
other circumstances.

These issues together make it hard to debug further, but I did a few
tests in single-user mode. First, with no services running, acpiconf
-s3 seems to work OK (although /etc/rc.suspend is still not executed)
- I can suspend and resume and the machine keeps working. See:
http://homepages.ihug.co.nz/~sweetnavelorange/dmesg.1
for my dmesg after one successful cycle - there are a few warnings to
do with firewire. However if I start powerd before suspending, I get
the following extra kernel messages (hand transcribed):
acpi_ec0: warning: EC done before starting event wait
subdisk0: detached
ad0: detached
and any subsequent attempts to access the disk (eg. dmesg/some/file,
kldstat) produce errors of the form:
g_vfs_done(): ad0s2e[READ(offset=8478572544, length=16384)] error=6
and eventually another panic.

Of course if /etc/rc.suspend worked, I could disable powerd before
suspending :-/. If anyone has any ideas, I'd love to hear them, and
I'll provide any more info that's needed. Other than this, I'm really
pleased with FreeBSD 7 - thanks all!

-James Butler
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]