suspend/resume event

Nate Lawson nate at root.org
Sat Jan 21 20:50:11 PST 2006


Manfred Lotz wrote:
> Hi there,
> With my Samsung X20 1730 suspend /resume works fine when doing
> acpiconf -s 3. I added /etc/rc.d/moused restart in /etc/rc.resume and
> the touchpad mouse gets awake after resuming. That's great.
> 
> However when closing the lid (I set hw.acpi.lid_switch_state=S3) and
> then pressing the power button although suspend/resume works
> fine the mouse won't get restarted. This means /etc/rc.resume and
> presumably /etc/rc.suspend won't get called in this case.
> 
> Same happen when pressing Fn-ESC the key for suspend.
> 
> How can I make sure /etc/rc.suspend as well as /etc/rc.resuem gets
> called in the "non-acpiconf" cases?

Ok, I committed code to -current to provide a resume event and will mfc 
in a week or two.  You can catch it in devd.conf with:

notify 10 {
         match "system"          "kern";
         match "subsystem"       "power";
	match "type"		"resume";
         action "SOME SCRIPT";
};

-- 
Nate


More information about the freebsd-acpi mailing list