Created
April 22, 2016 23:07
-
-
Save matthiasbayer/75bc0109abaaeab9688ed812628e642b to your computer and use it in GitHub Desktop.
Samsung ATIV Book 9 keyboard backlight toggle
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
#!/usr/bin/env bash | |
# Path can depend on laptop model | |
FILE=/sys/firmware/efi/efivars/KBDBacklitLvl-8be4df61-93ca-11d2-aa0d-00e098032b8c | |
NOW=$(xxd -p ${FILE}) | |
if [ "0700000000" == "${NOW}" ]; then | |
echo 0700000005 | xxd -p -r > ${FILE} | |
echo "Backlight enabled" | |
else | |
echo 0700000000 | xxd -p -r > ${FILE} | |
echo "Backlight disabled" | |
fi | |
echo "Reboot required!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please try this https://github.com/k2qwerty2k/samsung-ativbook-kb-led with some changes (need change DMI check for you note).