From nobody Sat May 04 14:24:15 2024 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VWqg86lLbz5Kf4T for ; Sat, 4 May 2024 14:24:20 +0000 (UTC) (envelope-from C.Brinkhaus@t-online.de) Received: from mailout06.t-online.de (mailout06.t-online.de [194.25.134.19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mailout00.t-online.de", Issuer "Telekom Security ServerID OV Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VWqg81Tv0z4P5q for ; Sat, 4 May 2024 14:24:20 +0000 (UTC) (envelope-from C.Brinkhaus@t-online.de) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of C.Brinkhaus@t-online.de designates 194.25.134.19 as permitted sender) smtp.mailfrom=C.Brinkhaus@t-online.de Received: from fwd75.aul.t-online.de (fwd75.aul.t-online.de [10.223.144.101]) by mailout06.t-online.de (Postfix) with SMTP id E0EC39C4C for ; Sat, 4 May 2024 16:24:16 +0200 (CEST) Received: from localhost ([217.226.181.243]) by fwd75.t-online.de with (TLSv1.3:TLS_AES_256_GCM_SHA384 encrypted) esmtp id 1s3GJE-3vcVQu0; Sat, 4 May 2024 16:24:16 +0200 Received: from thinkpad.local (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 2442726d for ; Sat, 4 May 2024 16:24:16 +0200 (CEST) Received: (from chris@localhost) by thinkpad.local (8.17.1/8.17.1/Submit) id 444EOFW2090464 for questions@freebsd.org; Sat, 4 May 2024 16:24:15 +0200 (CEST) (envelope-from chris) Date: Sat, 4 May 2024 16:24:15 +0200 From: Christoph Brinkhaus To: questions@freebsd.org Subject: Re: Best way to run command on system start Message-ID: References: <20240504150814.06c6c13c@PolarianBSD> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ZkvASVM7MH14V9P+" Content-Disposition: inline In-Reply-To: <20240504150814.06c6c13c@PolarianBSD> X-TOI-EXPURGATEID: 150726::1714832656-3F9E2C7B-4A4BA5E6/0/0 CLEAN NORMAL X-TOI-MSGID: b81fbc30-65fa-41ac-ba3e-9e73017ea2ff X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.52 / 15.00]; SIGNED_PGP(-2.00)[]; NEURAL_HAM_LONG(-0.98)[-0.985]; NEURAL_SPAM_SHORT(0.92)[0.920]; NEURAL_HAM_MEDIUM(-0.55)[-0.554]; MID_RHS_NOT_FQDN(0.50)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; R_SPF_ALLOW(-0.20)[+ip4:194.25.134.16/28]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[t-online.de]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[4]; FREEMAIL_FROM(0.00)[t-online.de]; MIME_TRACE(0.00)[0:+,1:+,2:~]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ASN(0.00)[asn:3320, ipnet:194.25.0.0/16, country:DE]; FREEMAIL_ENVFROM(0.00)[t-online.de]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MISSING_XM_UA(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; RWL_MAILSPIKE_POSSIBLE(0.00)[194.25.134.19:from]; RCVD_IN_DNSWL_NONE(0.00)[194.25.134.19:from] X-Rspamd-Queue-Id: 4VWqg81Tv0z4P5q --ZkvASVM7MH14V9P+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Polarian, Am Sat, May 04, 2024 at 03:08:14PM +0100 schrieb Polarian: > Hello, >=20 > So I have been having issues with setting the brightness on my E6430. >=20 > xbacklight seems to do nothing, and setting brightness via xrandr seems > to just shift the colour of the pixels to a darker colour... instead of > decreasing the physical brightness. >=20 > backlight(8) does work, and it works very well... but there does not > appear to be any config or way to get it to persist across boots. >=20 > I have read the forums and seen suggestions of using a rc service to > set the backlight on boot, however there must be a better way to do > this. >=20 > Any suggestions? You can use crontab(1) to run backlight at reboot. This is what I have: ~> crontab -l @reboot /usr/bin/backlight 50 A second option could be to load the acpi_video module. In /etc/sysctl.conf you can define settings as hw.acpi.video.lcd0.fullpower=3D70 hw.acpi.video.lcd0.economy=3D60 For testing you can load the module by kldload und use sysctl to try if the settings are working with your hardware. Kind regards, Christoph --=20 Ist die Katze gesund schmeckt sie dem Hund. --ZkvASVM7MH14V9P+ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCAAdFiEEj7zWuLpAjGEt2B3aIXCAe2OOngIFAmY2RQsACgkQIXCAe2OO ngK5pwv8CujvZpuBJD9PB9Nm/eXrT7ru2cAQUhtgyK/hK/A3B5HZKuq3LTEe+V53 n2x5hoWeMySJvhAjf5nCnUgPvYW5GpAxkwUyOfS45x1Alnuq4CO07BUYQ5yrkx0q +uORgOLMjiU4oJwAAzbsv2cgrZbJJuUg/4DHBQn5yrwZ0b6NDdkhcqT6f/c1fFsr f0bHZQ02C4ySXCOhvfcKOUiCs5/DuQ9gzjMkR30oMJ4627UmudL5QIx4BCb0FrNI ScXUbsL2pknnLzukNrnQjVEttELOjTARz/PAxLTRdaFqDwkKHMwFKRJH0V4phnD6 PVKeH25lEsxFZiwz16Lh+gu9Rh14aefDZGUe+UqchgA+1xItY7pCBRqORzOL7+vx TZ4H+TWOrpppXbfJguRi3WZulOhflZyCZ3gWBdx2yisryFiAzgA+TQ3QujCPbcPx DUwzlpSuog74XvMA45L64lUbWqmvoGUyVZmPkIpZ4A63731CEGFk/fk98EeVjYbH Qmpgww5r =XfFt -----END PGP SIGNATURE----- --ZkvASVM7MH14V9P+--