Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 08 Aug 2006 12:12:25 +0400
From:      Vladimir Grebenschikov <vova@sw.ru>
To:        current <current@freebsd.org>
Cc:        acpi@freebsd.org
Subject:   ACPI power source detection
Message-ID:  <1155024745.2601.2.camel@localhost>

next in thread | raw e-mail | index | archive | help
Hi

Something broken with ACPI power profiles on recent (yesterday)
7-CURRENT

Below configuration, that always works fine for me, now lead to instant
screen brightness blinking while activity.

# cat /etc/devd/acpi_power.conf 
notify 20 {
        match "system"          "ACPI";
        match "subsystem"       "ACAD";
        action                  "/usr/local/etc/acpi_power $notify";
        action                  "/etc/rc.d/power_profile $notify";
};

# cat /usr/local/etc/acpi_power
#!/bin/sh

case "$1" in 
        0x01)
                sysctl dev.acpi_sony.0.brightness=8
                ;;
        0x00)
                sysctl dev.acpi_sony.0.brightness=2
                ;;
esac

Any hints about this case ?

-- 
Vladimir B. Grebenschikov
SWsoft Inc. vova@swsoft.com



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