ACPI Suspend, devd and rc.suspend

George Hartzell hartzell at alerce.com
Tue Mar 28 04:17:58 UTC 2006


Norberto Meijome writes:
 > On Mon, 27 Mar 2006 09:45:27 -0800
 > Ben Jencks <ben-freebsd-mobile at bjencks.net> wrote:
 > [...]
 > >
 > > 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

Is there any way to hook up 

  hw.acpi.lid_switch_state: S3

so that it also runs through devd and can run zzz?

The atheros wireless card in my T42p doesn't wake up properly when I
suspend/resume from X, but if I use vidcontrol to switch to a
different virtual terminal on suspend and back on resume then it works
just fine.

I've add a couple of hacks in /etc/rc.{suspend,resume}, but they're
not called on a lid close event.

g.





More information about the freebsd-mobile mailing list