Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 May 2024 16:24:15 +0200
From:      Christoph Brinkhaus <c.brinkhaus@t-online.de>
To:        questions@freebsd.org
Subject:   Re: Best way to run command on system start
Message-ID:  <ZjZFD7tCobx0teFo@thinkpad>
In-Reply-To: <20240504150814.06c6c13c@PolarianBSD>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
Hello Polarian,

Am Sat, May 04, 2024 at 03:08:14PM +0100 schrieb Polarian:
> Hello,
> 
> So I have been having issues with setting the brightness on my E6430.
> 
> 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.
> 
> 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.
> 
> 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.
> 
> 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=70
hw.acpi.video.lcd0.economy=60
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
-- 
Ist die Katze gesund
schmeckt sie dem Hund.

[-- Attachment #2 --]
-----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-----
home | help

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