Laptop turn off backlight

Model: Dell Inc. Latitude E6410
Target Platform: x86/64
Firmware Version: OpenWrt 23.05.4

Related posts:

  1. How to turn off backlight of a laptop display?
  2. How to turn off the screen of a laptop? - #2 by frollic

Post 1. suggests disconnecting the display. That's not an option for me. It also mentions a package named 'vbetool' and that 'vbetool dpms off' may do the trick. Although there's no available openwrt package and therefore untested.

Post 2. suggests using 'setterm' to turn off the display. I was able to test it and it works but it only blanks the display but leaves the backlight on.

setterm -term linux -blank 1 > /dev/console

I was wondering if someone successfully implemented a software solution that turns off the backlight.

Thank you

Read setterm manual, i think you need something like force poweroff added, force to not wake and poweroff for the obvious.

Or via acpi ymmv
https://wiki.archlinux.org/title/Backlight

I did read the setterm manual. ; )

--blank[=0-60|force|poke]
The force argument keeps the screen blank even if a key is pressed.

I forgot to mention that I also tried the following which made no difference.

setterm -term linux -powerdown 1 > /dev/console

'acpid' is available as an openwrt package. I read up on it at the link that you provided. It's possible to use it by sending an acpi event, but it does depend on 'xset' or 'vbetool' to turn the backlight off, rather than adjusting the brightness.
I did find two openwrt packages: ' kmod-backlight-pwm' and 'kmod'backlight'. Although, I couldn't find any details how they could be utilized in my use case scenario.
Thanks for your suggestions!

I've installed 'kmod-backlight-pwm'. I can now set the brightness level to '0' from the command line.

cat /sys/class/backlight//brightness # show current brightness level
echo 0 > /sys/class/backlight/
/brightness # set brightness level to 0

This still doesn't turn off the display, though, and is the equivalent of using 'FN' hotkeys to adjust the brightness.