Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Aug 2006 23:29:21 +0400 (MSD)
From:      Maxim Konovalov <maxim@macomnet.ru>
To:        Vladimir Grebenschikov <vova@sw.ru>
Cc:        acpi@freebsd.org, current <current@freebsd.org>
Subject:   Re: ACPI power source detection
Message-ID:  <20060809232722.C4889@mp2.macomnet.net>
In-Reply-To: <1155024745.2601.2.camel@localhost>
References:  <1155024745.2601.2.camel@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 8 Aug 2006, 12:12+0400, Vladimir Grebenschikov wrote:

> 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 ?

IIRC you have the same notebook I do (sony pcg505bx).  The config
above works fine for me on week old -current.  Will try fresh -current
in a couple of days.

-- 
Maxim Konovalov



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