Skip to content

Instantly share code, notes, and snippets.

@eenchev
Created June 5, 2021 14:56
Show Gist options
  • Select an option

  • Save eenchev/e5dfce7a1ce3a5ef0c5c6d98d62d5ec8 to your computer and use it in GitHub Desktop.

Select an option

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