Powersave script, compatible with systemd through udev rules