Skip to content

Instantly share code, notes, and snippets.

@jasursadikov
Created December 30, 2024 06:15
Show Gist options
  • Save jasursadikov/c69c15f7b62feb8d4d8bb7e30ca075d9 to your computer and use it in GitHub Desktop.
Save jasursadikov/c69c15f7b62feb8d4d8bb7e30ca075d9 to your computer and use it in GitHub Desktop.
Disables LED light on the back of the laptop for Alienware R15x
#!/usr/bin/env python3
import hid
vendor_id=0x187c
product_id=0x0550
with hid.Device(vendor_id, product_id) as h:
off_lights='03266400130001020405060708090a0b0c0d0e0f10111213000000000000000000'
h.write(bytes.fromhex(off_lights))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment