From owner-freebsd-questions@FreeBSD.ORG Tue Feb 4 19:34:26 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 49212599 for ; Tue, 4 Feb 2014 19:34:26 +0000 (UTC) Received: from smtp-vbr4.xs4all.nl (smtp-vbr4.xs4all.nl [194.109.24.24]) by mx1.freebsd.org (Postfix) with ESMTP id BD78C11D0 for ; Tue, 4 Feb 2014 19:34:25 +0000 (UTC) Received: from slackbox.erewhon.net (a83-162-243-5.adsl.xs4all.nl [83.162.243.5]) by smtp-vbr4.xs4all.nl (8.13.8/8.13.8) with ESMTP id s14JYOEg004109; Tue, 4 Feb 2014 20:34:24 +0100 (CET) (envelope-from rsmith@xs4all.nl) Received: by slackbox.erewhon.net (Postfix, from userid 1001) id A34C112536; Tue, 4 Feb 2014 20:34:24 +0100 (CET) Date: Tue, 4 Feb 2014 20:34:24 +0100 From: Roland Smith To: Unga Subject: Re: How to disable low display brightness when power fail? Message-ID: <20140204193424.GA52865@slackbox.erewhon.net> References: <1391507713.72310.YahooMailNeo@web161906.mail.bf1.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4Ckj6UjgE2iN1+kY" Content-Disposition: inline In-Reply-To: <1391507713.72310.YahooMailNeo@web161906.mail.bf1.yahoo.com> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.22 (2013-10-16) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: "freebsd-questions@freebsd.org" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Feb 2014 19:34:26 -0000 --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--