Freebsd 14 release backlight reset to 100 after restart

Hello
I set the backlight of the device with the freebsd backlight command which changes the backlight of my laptop. I set the backlight with
sysctl hw.acpi.video.lcd0.brightness=70 in rc.conf but after system reboot sysctl show brightness is 70 but actual brightness is 100.
Thanks
 
Hello
I set the backlight of the device with the freebsd backlight command which changes the backlight of my laptop. I set the backlight with
sysctl hw.acpi.video.lcd0.brightness=70 in rc.conf but after system reboot sysctl show brightness is 70 but actual brightness is 100.
Thanks

You need to put

hw.acpi.video.lcd0.brightness=70

into /etc/sysctl.conf for it to be applied after booting.
 
Thanks for answer
I put it in sysctl.conf
This was my mistake in writing the post
This command don't work in rc.conf
Sorry
 
This is my rc.conf

hostname="pc"
sshd_enable="NO"
moused_enable="YES"
#powerdxx_enable="YES"
#powerdxx_flags="-n adaptive -a hiadaptive -b adaptive -H 75C:80C"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
dbus_enable="YES"
gdm_enable="YES"
#sddm_enable="YES"
kld_list="fusefs i915kms linux64 fdescfs linprocfs linsysfs nvidia-modeset"
linux_enable="YES"
wlans_iwm0="wlan0"
ifconfig_wlan0="WPA SYNCDHCP"
 
And this my sysctl.conf

#
# This file is read when going to multi-user and its contents piped thru
# ``sysctl'' to adjust kernel values. ``man 5 sysctl.conf'' for details.
#

# Uncomment this to prevent users from seeing information about processes that
# are being run under another UID.
#security.bsd.see_other_uids=0
kern.coredump=0
hw.acpi.video.lcd0.economy=50
hw.acpi.video.lcd0.fullpower=70
hw.acpi.video.lcd0.brightness=70
 
Some weeks ago I have played with modifications of the driver. That worked so far. With FreeBSD-14 I have in my users crontab a simple work around.
Code:
> crontab -l
mailto=chris
...
@reboot /usr/bin/backlight 50
 
Back
Top