Active Topics

 


Reply
Thread Tools
Dark_Angel85's Avatar
Posts: 519 | Thanked: 123 times | Joined on Oct 2010 @ Malaysia
#351
I tried running this script... it reboots my phone.. i thought it was because I oC'ed... but i tried running default clock and it still reboots. It's not consistent, for example, after i reboot, I try running the script and it seems fine, but after a while of usage, tried running the script and it reboots the phone after running the script for a short while
__________________
[N900]
1000min 1000max @ ulv
PR1.3 with CSSU latest update
Malaysian N900 user!!!
 
Posts: 270 | Thanked: 45 times | Joined on May 2010 @ UK
#352
hi i recently downloaded the power button shortcut for optimize n900 but i dont like it and i want to remove it. please help me as im ending up switching my phone off everytime as the secure device button used to be there whch got messed up since i downloaded optimize power menu shortcut.
 
Posts: 214 | Thanked: 256 times | Joined on May 2010
#353
Open terminal
sudo gainroot
apt-get remove optimizen900-pm

That's why I recomend to stick to the script on the first page. It will not mess with anything on your device because it does not install itseft.
 
Posts: 22 | Thanked: 5 times | Joined on May 2010
#354
I had a chance to work on the original script, furthermore now you can run the script from systemui using the power button.

In order to do so:

Unzip optimize.zip and place optimize.xml under /etc/systemui/
Remove the .txt extension and place optimize under /home/user/

followed by a

killall systemui


Systemui component (optimize.xml)
Code:
<powerkeymenu path="/">
 <menuitem priority="200" name="Optimize">
  <callback service="com.nokia.xterm" path="/com/nokia/xterm" interface="com.nokia.xterm" method="run_command" bus="session" autostart="true">
   <argument type="string">/bin/sh /home/user/optimize</argument>
  </callback>
 </menuitem>
</powerkeymenu>

Revised optimize (killall) script:
Code:
#!/bin/sh

echo Device is being optimized...

#Refresh the Audio Process to avoid audio glitch
killall -q pulseaudio
sleep 1;

#Refresh the Tracker process
killall -q trackerd
sleep 1;
killall -q tracker-indexer
sleep 1;

#Refresh the browser MicroB
killall -q browser browserd
sleep 1;

#Refresh of the most common applications and UIs
killall -q calendar
sleep 1;
killall -q osso_calculator
sleep 1;
killall -q camera-ui
sleep 1;
killall -q rtcom-call-ui
sleep 1;
killall -q modest
sleep 1;
killall -q rtcom-messaging-ui
sleep 1;
killall -q image-viewer
sleep 1;
killall -q osso_notes
sleep 1;
killall -q osso-addressbook
sleep 1;

#Refresh the all UI Hildon, menus and bars.
killall -q hildon-desktop
sleep 1;
killall -q hildon-status-menu
sleep 1;
killall -q systemui
sleep 1;

#NOTE: Killing the hildon-home process can erase all widgets and that is why it is disabled
#killall -q hildon-home
#sleep 1;

#Refresh other processes
killall -q tonegend
sleep 1;
killall -q mafw-gst-renderer
sleep 1;

Hope you guys find it useful.
Attached Files
File Type: zip optimize.zip (319 Bytes, 120 views)
File Type: txt optimize.txt (1,000 Bytes, 116 views)

Last edited by tan; 2011-06-27 at 21:37.
 

The Following User Says Thank You to tan For This Useful Post:
Posts: 270 | Thanked: 45 times | Joined on May 2010 @ UK
#355
Originally Posted by JorgeFX View Post
Open terminal
sudo gainroot
apt-get remove optimizen900-pm

That's why I recomend to stick to the script on the first page. It will not mess with anything on your device because it does not install itseft.
when i tried that code in xterminal it says optimizeN900-pm not removed as its not installed.

but it shows up in power menu!
how do i remove this?
 
Posts: 22 | Thanked: 5 times | Joined on May 2010
#356
As explained under [app]con900 thread:

Originally Posted by ivgalvez View Post
You have to be root to be able to delete it. In CuteExplorer enable the option for root access, reboot and delete the file (carefully!), then disable this option to avoid any future problems.

You can also do it manually with xterm (you need to have tootsh installed):

Code:
sudo gainroot
rm /etc/systemui/OptimizeN900.xml
 

The Following User Says Thank You to tan For This Useful Post:
Posts: 270 | Thanked: 45 times | Joined on May 2010 @ UK
#357
thank you tan its finally gone! i cant believe how many times i switched my phone off because of it.
 
robin92's Avatar
Posts: 476 | Thanked: 438 times | Joined on Nov 2010 @ Sweden
#358
where is the start file of optimize located in n900?
I wonder because I will run it with alarmed one time in the week
 
Posts: 270 | Thanked: 37 times | Joined on Sep 2010
#359
Originally Posted by tan View Post
I had a chance to work on the original script, furthermore now you can run the script from systemui using the power button.

In order to do so:

Unzip optimize.zip and place optimize.xml under /etc/systemui/
Remove the .txt extension and place optimize under /home/user/

followed by a

killall systemui


Systemui component (optimize.xml)
Code:
<powerkeymenu path="/">
 <menuitem priority="200" name="Optimize">
  <callback service="com.nokia.xterm" path="/com/nokia/xterm" interface="com.nokia.xterm" method="run_command" bus="session" autostart="true">
   <argument type="string">/bin/sh /home/user/optimize</argument>
  </callback>
 </menuitem>
</powerkeymenu>

Revised optimize (killall) script:
Code:
#!/bin/sh

echo Device is being optimized...

#Refresh the Audio Process to avoid audio glitch
killall -q pulseaudio
sleep 1;

#Refresh the Tracker process
killall -q trackerd
sleep 1;
killall -q tracker-indexer
sleep 1;

#Refresh the browser MicroB
killall -q browser browserd
sleep 1;

#Refresh of the most common applications and UIs
killall -q calendar
sleep 1;
killall -q osso_calculator
sleep 1;
killall -q camera-ui
sleep 1;
killall -q rtcom-call-ui
sleep 1;
killall -q modest
sleep 1;
killall -q rtcom-messaging-ui
sleep 1;
killall -q image-viewer
sleep 1;
killall -q osso_notes
sleep 1;
killall -q osso-addressbook
sleep 1;

#Refresh the all UI Hildon, menus and bars.
killall -q hildon-desktop
sleep 1;
killall -q hildon-status-menu
sleep 1;
killall -q systemui
sleep 1;

#NOTE: Killing the hildon-home process can erase all widgets and that is why it is disabled
#killall -q hildon-home
#sleep 1;

#Refresh other processes
killall -q tonegend
sleep 1;
killall -q mafw-gst-renderer
sleep 1;

Hope you guys find it useful.

but your files are inserted in optimize on repository? I have optimize 0.0.1-2.
 
robin92's Avatar
Posts: 476 | Thanked: 438 times | Joined on Nov 2010 @ Sweden
#360
Originally Posted by iscio View Post
but your files are inserted in optimize on repository? I have optimize 0.0.1-2.
optimize-pm
 
Reply

Tags
faster, reflash, refresh, script-a-brick, sell it


 
Forum Jump


All times are GMT. The time now is 16:01.