Hello,

I do monitor already the battery with some crontab job. I would like to
make a signal to the device owner (my wife) when the problem of fast
battery drain occurs, i.e. when for example the drainage in a given
interval is unusual high; I figured already out how to play a sound with:

$ sudo cp /var/lib/lxc/android/rootfs/system/res/sound/ringtone.wav ~
$ sudo chown phablet ringtone.wav
$ ubuntu-app-launch mediaplayer-app file:///home/phablet/ringtone.wav

This gives a 10 second continuous beep (not really a ringtone as the
filename says, but very good for the purpose);

How can I pop-up in parallel a message box on the screen with some text
like "Battery drain! Re-boot NOW and re-charge!", if possible together
with an OK button which fires up "sudo reboot"?

Thanks

        matthias
-- 
Matthias Apitz, ✉ [email protected], 🌐 http://www.unixarea.de/  ☎ 
+49-176-38902045

-- 
Mailing list: https://launchpad.net/~ubuntu-phone
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp

Reply via email to