Advertisement
metalx1000

Thinkpad led/light controls

Jun 8th, 2015
817
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. #run as root
  2. #to get commands for each device 'cat' the device
  3. #example:
  4. cat beep
  5. status: supported
  6. commands: <cmd> (<cmd> is 0-17)
  7.  
  8. #system beeps
  9. cd /proc/acpi/ibm
  10. for i in {0..17};
  11. do
  12. echo "$i"|tee beep
  13. sleep 1
  14. done
  15.  
  16. #turn light on and off
  17. echo on > light
  18. echo off > light
  19. #or
  20. echo 12 > cmos
  21. echo 13 > cmos
  22.  
  23. #leds - most slots not used on the T400
  24. for i in {0..15};do echo $i off|tee led;done
  25. for i in {0..15};do echo $i on|tee led;done
  26. for i in {0..15};do echo $i blink|tee led;done
  27.  
  28. #dim screen - 5
  29. for i in {0..20};do echo 5 > cmos;sleep .1;done
  30.  
  31. #brighten screen - 4
  32. for i in {0..20};do echo 4 > cmos;sleep .1;done
  33.  
  34. #more notes:
  35. http://www.cs.fsu.edu/~baker/devices/lxr/http/source/linux/Documentation/ibm-acpi.txt?v=2.6.11.8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement