From fa4d4397b857850b704ae43ea37e6eb954890625 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Tue, 15 Jan 2013 07:13:29 +1100 Subject: [PATCH] battery: be firmer about shutdown 'halt' doesn't seem to work, so use 'poweroff -f' --- utils/battery.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/battery.py b/utils/battery.py index f3a7082..d2d2d9b 100755 --- a/utils/battery.py +++ b/utils/battery.py @@ -270,7 +270,8 @@ class BatteryConfig(gtk.Window): return flight def shutdown(self, widget): - os.system("halt") + os.system("sync") + os.system("poweroff -f") def update_labels(self, *a): -- 2.39.5