Skip to content

Instantly share code, notes, and snippets.

@Toxblh
Created March 9, 2026 16:03
Show Gist options
  • Select an option

  • Save Toxblh/2f041aa06a83268cfa7527d5a7834f4d to your computer and use it in GitHub Desktop.

Select an option

Save Toxblh/2f041aa06a83268cfa7527d5a7834f4d to your computer and use it in GitHub Desktop.
Actions to find custom led in key of keyboard on UX3405MA
1. su -
2. cd /sys/kernel/debug/asus-nb-wmi
3. Script for find led put to terminal and run:
for devid in $(seq 0x00040000 0x00040030); do
echo $devid > dev_id
VAL=$(cat dsts 2>/dev/null | grep -oP '0x\w+$')
echo "devid=$devid dsts=$VAL"
# Try to turn ON
echo 0x1 > ctrl_param
cat devs > /dev/null 2>&1
sleep 0.2
# Turn OFF
echo 0x0 > ctrl_param
cat devs > /dev/null 2>&1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment