Last active
September 25, 2015 10:00
-
-
Save ardianta/ae0024360d08f48fec57 to your computer and use it in GitHub Desktop.
Tambahkan cahaya layar laptop (Kali Linux)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
cahaya = open('/sys/class/backlight/intel_backlight/brightness') | |
maxCahaya = open('/sys/class/backlight/intel_backlight/max_brightness') | |
minCahaya = int(maxCahaya.readline()) / 14 | |
tambahCahaya = int(cahaya.readline()) + minCahaya | |
if(tambahCahaya < minCahaya*14 + minCahaya): | |
os.system('echo '+str(tambahCahaya)+' > /sys/class/backlight/intel_backlight/brightness') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment