Skip to content

Instantly share code, notes, and snippets.

@jclosure
Created February 1, 2026 18:52
Show Gist options
  • Select an option

  • Save jclosure/a9854fe3e06c1a50e2ec7d051c99ace9 to your computer and use it in GitHub Desktop.

Select an option

Save jclosure/a9854fe3e06c1a50e2ec7d051c99ace9 to your computer and use it in GitHub Desktop.
Disable the annoying LEDs for Lenovo laptops
#!/usr/bin/env bash
# ref: https://www.reddit.com/r/thinkpad/comments/7n1bfz/t570_annoying_red_led/
# About that byte that specifies the state of the LEDs: first nibble represents state, and can be:
# 0 - off
# 8 - on
# c - blink
# Last nibble represents which LED, can be from 0-15, and known ones (on my laptop at least) are:
# 0 - power
# 6 - Fn Lock
# 7 - sleep (I don't have it, but some models do)
# a - red dot on the back
# e - microphone
sudo modprobe -r ec_sys
sudo modprobe ec_sys write_support=1
# turn off the red dot on back
echo -n -e "\x0a" | sudo dd of="/sys/kernel/debug/ec/ec0/io" bs=1 seek=12 count=1 conv=notrunc 2> /dev/null
# turn off the FnLock light
echo -n -e "\x06" | sudo dd of="/sys/kernel/debug/ec/ec0/io" bs=1 seek=12 count=1 conv=notrunc 2> /dev/null
# turn off the power light
echo -n -e "\x00" | sudo dd of="/sys/kernel/debug/ec/ec0/io" bs=1 seek=12 count=1 conv=notrunc 2> /dev/null
sudo modprobe -r ec_sys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment