Skip to content

Instantly share code, notes, and snippets.

@jasalt
Created March 16, 2014 19:01
Show Gist options
  • Save jasalt/9588133 to your computer and use it in GitHub Desktop.
Save jasalt/9588133 to your computer and use it in GitHub Desktop.
Thinkpad acpi-linux Thinklight® strobo
import os
import time
sleeptime = 0.03
def cycle_light():
while True:
os.system("echo 0 > /sys/class/leds/tpacpi\:\:thinklight/brightness")
time.sleep(sleeptime)
os.system("echo 1 > /sys/class/leds/tpacpi\:\:thinklight/brightness")
time.sleep(sleeptime)
cycle_light()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment