Skip to content

Instantly share code, notes, and snippets.

@matthiasbayer
Created April 22, 2016 23:07
Show Gist options
  • Save matthiasbayer/75bc0109abaaeab9688ed812628e642b to your computer and use it in GitHub Desktop.
Save matthiasbayer/75bc0109abaaeab9688ed812628e642b to your computer and use it in GitHub Desktop.
Samsung ATIV Book 9 keyboard backlight toggle
#!/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!"
@k2qwerty2k
Copy link

Please try this https://github.com/k2qwerty2k/samsung-ativbook-kb-led with some changes (need change DMI check for you note).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment