Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Mar 2006 07:24:40 +1000
From:      Norberto Meijome <freebsd@meijome.net>
To:        freebsd-mobile@freebsd.org
Subject:   Re: ACPI Suspend, devd and rc.suspend
Message-ID:  <20060328072440.2edc38a6@localhost>
In-Reply-To: <sa6zmjb6atk.fsf@wagner.bjencks.net>
References:  <20060327233509.22c4780d@localhost> <sa6zmjb6atk.fsf@wagner.bjencks.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 27 Mar 2006 09:45:27 -0800
Ben Jencks <ben-freebsd-mobile@bjencks.net> wrote:

> Norberto Meijome <freebsd@meijome.net> writes:
> 
> > Hi there,
> > machine : Thinkpad z60m, acpi.ko, acpi_ibm.ko loaded, 6.1 Prerelease
> > kernel and world as of yesterday.
> >
> > If I run zzz , /etc/rc.suspend is run. on resume, /etc/rc.resume is
> > executed.
> >
> > If I hit Fn-F4 ( == suspend event), the acpi sets the machine to
> > suspend mode, but /etc/rc.suspend is NOT executed, and neither
> > is /etc/rc.resume on resume.
> >
> > I don't know how to tell if devd catches the suspend event. I run
> > it in debug mode (devd -dD) but couldn't see anything other than
> > all the device motherboard's USB hubs being pulled off and added
> > back in.
> >
> > I would love some enlightenment on this subject.
> 
> In order to make this work on my T43p, I set dev.acpi_ibm.0.events=1,
> so that Fn-F4 generates an acpi_ibm event (which is handled by devd)
> rather than a suspend event (which tells the kernel to suspend
> straightaway). I have the block
> 
> notify 10 {
>         match "system"          "ACPI";
>         match "subsystem"       "IBM";
>         match "notify"          "0x04";
>         action "/usr/sbin/zzz";
> };
> 
> in my devd.conf, so that it calls zzz, which does the right thing.
> 

cool, that's EXACTLY what I was after :) thx man



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060328072440.2edc38a6>