View Single Post
Posts: 1,313 | Thanked: 2,978 times | Joined on Jun 2011 @ Finland
#1100
Originally Posted by thedead1440 View Post
ajalkane,

For the bme restart I've been using a dbus call to display the bme stop/start output so that I do know for sure when bme has been restarted; not sure if its of any use:

Code:
#!/bin/sh

stop=$(/sbin/stop bme)
dbus-send --print-reply --dest=com.meego.core.MNotificationManager/notificationmanager com.meego.core.MNotificationManager.addNotification uint32:0 uint32:0 string:'device' string:'' string:"$stop" string:'' string:'' uint32:0
sleep 10
start=$(/sbin/start bme)
dbus-send --print-reply --dest=com.meego.core.MNotificationManager/notificationmanager com.meego.core.MNotificationManager.addNotification uint32:0 uint32:0 string:'device' string:'' string:"$start" string:'' string:'' uint32:0
I've tested more and the first sleep 10 seems not too necessary for me at least...
Seems good. I'll amend the instructions with that improvement!

Back then when I tested it, both sleeps seemed to be necessary - and even then it sometimes failed to restore battery.
__________________
My N9/N950 projects:
 

The Following User Says Thank You to ajalkane For This Useful Post: