Skip to content

Instantly share code, notes, and snippets.

@eenchev
Created June 5, 2021 14:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eenchev/e5dfce7a1ce3a5ef0c5c6d98d62d5ec8 to your computer and use it in GitHub Desktop.
Save eenchev/e5dfce7a1ce3a5ef0c5c6d98d62d5ec8 to your computer and use it in GitHub Desktop.
Razer Blade Stealth 2016 battery state refresh on Ubuntu
#!/bin/bash
while sleep 15; do
busctl call --system org.freedesktop.UPower /org/freedesktop/UPower/devices/battery_BAT0 org.freedesktop.UPower.Device Refresh
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment