Reply
Thread Tools Search this Thread
Win7Mac's Avatar
Posts: 322 | Thanked: 184 times | Joined on Apr 2012 @ Hamburg
#1331
Originally Posted by ajalkane View Post
In my tests the restoring of battery level seemed to be extremely sensitive to the delays in the script between stop bme/start bme. The examples in the recipe were for values I found working and are quite conservative. Ie. the longer the delay between restarting bme the more likely it seemed to work.
Again failed with a stop time of 15sec in script.
Next time I check out schturmans script with 5 sec.
When I used
Code:
/sbin/stop bme; /sbin/start bme
in terminal (with ~1 sec. visible delay), I had no issues at all
__________________
N9 64GB BLACK PR1.3 (40.2012.21-3_PR_001)
 
Schturman's Avatar
Posts: 3,475 | Thanked: 2,295 times | Joined on Jan 2010 @ Israel
#1332
If you want with notifications, this commands i use:
When rule activates:
Code:
sh -c "dbus-send --print-reply --dest=com.meego.core.MNotificationManager /notificationmanager com.meego.core.MNotificationManager.addNotification uint32:0 uint32:0 string:'device' string:'' string:'  Restarting BME !!!' string:'' string:'/usr/share/themes/blanco/meegotouch/icons/icon-m-settings-battery.png' uint32:0 && echo root | devel-su -c '/sbin/initctl stop bme && sleep 10 && /sbin/initctl start bme && sleep 30 && /sbin/initctl stop bme && sleep 30 && /sbin/initctl start bme'"
When rule deactivates:
Code:
sh -c "dbus-send --print-reply --dest=com.meego.core.MNotificationManager /notificationmanager com.meego.core.MNotificationManager.addNotification uint32:0 uint32:0 string:'device' string:'' string:'  BME restarted !!!' string:'' string:'/usr/share/themes/blanco/meegotouch/icons/icon-m-settings-notification.png' uint32:0"
__________________
Lausanne & Lyon de descente...
----------------
Schturman home page

N9 QuickTweak - If you like my work, you can donate here
. Thanks!
 

The Following 2 Users Say Thank You to Schturman For This Useful Post:
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

 
Forum Jump


All times are GMT -4. The time now is 07:35 AM.