Solved backlight

On my Thinkpad T495 FN keys for brightness never work and I use accessibility/. But now I start to use backlight. In .xinitrc I have backlight and value and it works and I like it. External monitor I adjust with monitor settings.
Is it possible to put backlight to rc.conf or somewhere other that works when laptop start.
Thank you.
 
Hi fernandel,
there is more than one option. You can run backlight right after reboot using the @reboot statement of crontab(5). It is also possible to use a script start by the rc framework.

Actutally I have a script /usr/local/etc/rc.d/backlight as below.
Code:
#!/bin/sh
# $FreeBSD$
# PROVIDE: backlight
# REQUIRE: LOGIN
# /usr/local/etc/rc.d
. /etc/rc.subr
name="backlight"
desc="Initialize the backlight"
rcvar="backlight_enable"
start_cmd="backlight 50"
load_rc_config $name
run_rc_command "$1"
The script is invoked by a line in /etc/rc.conf
Code:
backlight_enable="yes"
 
Back
Top