Try disabling the red dot and powerbutton led at all times

This commit is contained in:
larstvei 2025-12-28 15:18:32 +01:00
parent ddf23300b4
commit 90aa1d170d

View File

@ -18,6 +18,29 @@
hyprlock.fprintAuth = true; hyprlock.fprintAuth = true;
}; };
systemd.services.disable-thinkpad-leds = {
description = "Disable ThinkPad lid logo LED and power button led";
wantedBy = [
"basic.target"
"suspend.target"
];
after = [
"hibernate.target"
"hybrid-sleep.target"
"suspend-then-hibernate.target"
"suspend.target"
"sysinit.target"
];
serviceConfig = {
Type = "oneshot";
ExecStart = [
"/bin/sh -c 'echo 0 > /sys/class/leds/tpacpi::power/brightness'"
"/bin/sh -c 'echo 0 > /sys/class/leds/tpacpi::lid_logo_dot/brightness'"
];
};
};
networking.hostName = "larstvei-think"; networking.hostName = "larstvei-think";
# Bootloader. # Bootloader.