Date: Tue, 4 Feb 2014 20:34:24 +0100 From: Roland Smith <rsmith@xs4all.nl> To: Unga <unga888@yahoo.com> Cc: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: Re: How to disable low display brightness when power fail? Message-ID: <20140204193424.GA52865@slackbox.erewhon.net> In-Reply-To: <1391507713.72310.YahooMailNeo@web161906.mail.bf1.yahoo.com> References: <1391507713.72310.YahooMailNeo@web161906.mail.bf1.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--4Ckj6UjgE2iN1+kY
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Tue, Feb 04, 2014 at 01:55:13AM -0800, Unga wrote:
> Hi all
>=20
> I have a laptop running FreeBSD 9.2 and KDE4.=20
>=20
>=20
> When main A/C power fails, this laptop immediately reduces the display br=
ightness. When power restores, it also immediately restore the full brightn=
ess.
>=20
> Because of this I cannot show a presentation without power.
>=20
> Therefore, how to disable becoming low bright when no main A/C power?
>=20
> I prefer a xorg.conf entry.
This is possibly done via a script called by devd when it catches a AC line
state event. In that case there should be a block of commands in either
/etc/devd.conf, or in one of the files in /etc/devd or /usr/local/etc/devd
that looks like this:
# Switch certain settings when the AC line state changes.
notify 10 {
match "system" "ACPI";
match "subsystem" "ACAD";
action "/usr/local/etc/rc.d/acstate $notify";
};
The name of the action and the priority (the number behind "notify") can be
different. Commenting-out this block of commands and restarting devd will
inhibit the action.
But it can be that KDE has its own mechanism for doing this. Have a look at
the KDE settings.
Roland
--=20
R.F.Smith http://rsmith.home.xs4all.nl/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
--4Ckj6UjgE2iN1+kY
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (FreeBSD)
iEYEARECAAYFAlLxQMAACgkQEnfvsMMhpyWrzACfYQVHerV4egmkVS9YpCYo9AUy
8ysAn2xJJsUb/S9ZcU6/id/u1v9zc3dI
=VgXB
-----END PGP SIGNATURE-----
--4Ckj6UjgE2iN1+kY--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140204193424.GA52865>
