power/usb_acpi.py
2024-10-13 18:42:39 -05:00

7 lines
167 B
Python

import time
with open('/dev/hidg0', 'wb') as f:
f.write(b'\x01\x00\x00\x00\x00\x00\x00\x00')
time.sleep(0.1)
f.write(b'\x00\x00\x00\x00\x00\x00\x00\x00')