Skip to content

Instantly share code, notes, and snippets.

@theodric
Last active December 30, 2024 22:28
Show Gist options
  • Save theodric/0e6dda7f34952558ecbb04dec2741ee8 to your computer and use it in GitHub Desktop.
Save theodric/0e6dda7f34952558ecbb04dec2741ee8 to your computer and use it in GitHub Desktop.
ThinkPad E14g2 Cool LED Shit

So you want the LEDs on your Acer-with-a-clit (ThinkPad E14 gen2) to be more humane?

Mute and micmute LEDs = off?

Power indicator LED = flashes with phy0 RX (white) and TX (green?

Good news, everyone! Do this:

create /some/where/tpled.sh:

echo phy0tx > /sys/class/leds/tpacpi\:orange\:batt/trigger
echo phy0rx > /sys/class/leds/tpacpi\:green\:batt/trigger
echo none > /sys/class/leds/platform\:\:mute/trigger
echo none > /sys/class/leds/platform\:\:micmute/trigger

create /etc/systemd/system/tpled.service:

[Unit]
Description=Custom LED Trigger Setup
After=multi-user.target

[Service]
Type=oneshot
ExecStart=/some/where/tpled.sh
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

then:

sudo systemctl daemon-reload

sudo systemctl enable tpled.service

and finally:

sudo systemctl start tpled.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment