[脱裤子放屁] 使用 blight 命令替代实现自动恢复亮度

#[脱裤子放屁] 使用 blight 命令替代实现自动恢复亮度# 引言 在 切换系统到 Debian 13 中我提到了在每次关机/重启时总是无法保存亮度设置,而打开 systemctl list-units: ╰─$ su -c 'systemctl list-units | grep backlight' 密码: sys-devices-platform-dell\x2dlaptop-leds-dell::kbd_backlight.device loaded active plugged /sys/devices/platform/dell-laptop/leds/dell::kbd_backlight systemd-backlight@leds:dell::kbd_backlight.service loaded active exited Load/Save Screen Backlight Brightness of leds:dell::kbd_backlight system-systemd\x2dbacklight.slice loaded active active Slice /system/systemd-backlight 只有一个用来保存键盘背光的 unit, 于是每次开机后都要把亮度调整下来。 想了一下,折腾不明白不如自己写一个替代实现:只需要实现在关机(poweroff 或者 halt)以及重启前获取亮度,将其写入磁盘,而在系统启动时,将亮度值取出并设置就可以了。 这个时候我们可以使用 blight 工具。 使用 blight 首先我们需要安装 blight 工具: su root apt update apt install blight -y 查看 blight 用法: ╭─linserin@debian ~/Desktop/Hugo ╰─$ blight help blight: A backlight utility for Linux that plays well with hybrid GPUs "And man said, 'let there b-light' and there was light.

前往查看原文

© 2026 博友墨迹 All Rights Reserved Developed by 摸鱼小窝。