| Summary: | bugfix and new feature for apmd | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Base System | Reporter: | Walter C. Pelissero <walter> | ||||
| Component: | i386 | Assignee: | freebsd-bugs (Nobody) <bugs> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | ||||||
| Priority: | Normal | ||||||
| Version: | 4.4-STABLE | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
State Changed From-To: open->closed Comitted in -current. |
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"; }