Bug 32251

Summary: bugfix and new feature for apmd
Product: Base System Reporter: Walter C. Pelissero <walter>
Component: i386Assignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.4-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Walter C. Pelissero 2001-11-24 13:50:01 UTC
Apmd would benefit of the included patches.

One is to correct a bug: apmd ignores termination signals.

The other one introduces a new feature.  With the -s flag apmd
simulate a POWERSTATECHANGE event when a power state change is
detected (AC_POWER_STATE) but the bios of the laptop doesn't report
it.  This enables you to do things like dimming the LCD backlight when
you unplug the power cord.

How-To-Repeat: 
To verify the bug:

	killall apmd

To verify the new feature add this to your /atc/apmd.conf:

	apm_event POWERSTATECHANGE {
		exec "/bin/sh /usr/local/bin/my-preferred-power-state-change-script";
	}
Comment 1 Matthew N. Dodd freebsd_committer freebsd_triage 2003-06-22 06:35:04 UTC
State Changed
From-To: open->closed

Comitted in -current.