Poll: Delet the values from the speedpatch?
Poll Options
Delet the values from the speedpatch?

Reply
Thread Tools
F2thaK's Avatar
Posts: 4,365 | Thanked: 2,467 times | Joined on Jan 2010 @ Australia Mate
#41
Originally Posted by lidow View Post
@karam,

after executing the cgroup_clean script, rc.local remains empty. I have bash installed anyway I tried both version ash and bash.
Also if rc.local does not exists the script do not create it.

I looked in you script and understand that infact this should be present in rc.local, so I add it manually.

mkdir -p /dev/cgroup/cpu
mount -t cgroup cgroup /dev/cgroup/cpu -o cpu
mkdir -m 0777 /dev/cgroup/cpu/user
echo "/usr/local/sbin/cgroup_clean" > /dev/cgroup/cpu/release_agent

tried the above but on second step got error: "failed: device or resource busy"

did as root

Last edited by F2thaK; 2011-05-22 at 10:49.
 
Banned | Posts: 358 | Thanked: 160 times | Joined on Dec 2010
#42
Originally Posted by karam View Post
HELLO Everybody
A lot of you must have heard about the 200 lines to speed up linux while blackhat announced 4 lines to do that
anyway neither of the available tutorials on internel are working on N900

BUT For Fortunately i was able to apply it to Maemo 5 on N900!!!!!

You will notice a lot of improvements in hildon-desktop
ex: faster multitask , faster contacts scrolling , faster images scroling
and basically every thing will be improved
Now the script is not made by me
all what i did is modified it a bit to work on maemo 5
BTW : it is recommended to use good transitions.ini although it is optional to use
Download the patch.tar.gz from attachment it contains the patch and the transitions
place it in MyDocs
Then enter CODE :

sudo gainroot

apt-get install bash
tar xzvf /home/user/MyDocs/patch.tar.gz
cp cgroup_patch /home/user/
cp speedpatch /etc/event.d/
chmod +rwx /home/user/cgroup_patch
/home/user/cgroup_patch
chmod +rwx /etc/rc.local
chmod +rwx /usr/local/sbin/cgroup_clean
chmod +rwx /etc/event.d/speedpatch
/etc/rc.local

DONE

And For transitions file (OPTIONAL)
if you are using the stock themes

cp /home/user/MyDocs/transitions.ini /usr/share/hildon-desktop/

if not then replace /usr/share/hildon-desktop with the path of your theme so in my case (using the blue sky theme)

cp /home/user/MyDocs/transitions.ini /usr/share/themes/Blue-sky/

DONE

NOTE: the transistions file has [thp tweaks] section in the end of it
Also parallax and zoom_on_press under [home] section
So you can use it with CSSU

You may not feel changes until reboot
But probably you will feel before as it happened with me

Enjoy
Please give feedbacks

LAST NOTE:
If you didn't think the patch worked or did anything don't worry it will not affect anything else

JUST to make sure no problems occure when all done
open a terminal window and type:

(As user)

bash

Then exit

(As root)

bash

Then exit
No Problem if you get some errors about files and directories

TO Reverse: ( To Delete The Patch ):

rm /etcr/c.local.backup.txt
rm /etc/rc.local
rm /etc/event.d/speedpatch

And then reboot


And For the people who wants to know what does this script do:
HERE

Whats the exact difference between your script and the already published 4line-hack on TMO some weeks ago although you getting a lot of attention and he is ignored by most ppl? Can you elaborate?

Last edited by epitaph; 2011-05-22 at 11:05.
 
Posts: 856 | Thanked: 1,681 times | Joined on Apr 2010 @ Aleppo ,Syria
#43
Originally Posted by lidow View Post
@karam,

after executing the cgroup_clean script, rc.local remains empty. I have bash installed anyway I tried both version ash and bash.
Also if rc.local does not exists the script do not create it.

I looked in you script and understand that infact this should be present in rc.local, so I add it manually.

mkdir -p /dev/cgroup/cpu
mount -t cgroup cgroup /dev/cgroup/cpu -o cpu
mkdir -m 0777 /dev/cgroup/cpu/user
echo "/usr/local/sbin/cgroup_clean" > /dev/cgroup/cpu/release_agent
Looks like you didn't reboot

well after a reboot cgroup folder will be created (that is why speedpatch is in event.d

and for rc.local run the patch twice to get created
i will edit this in 1#post
 
Posts: 7 | Thanked: 48 times | Joined on Mar 2010
#44
This patch is ********, it does nothing but broke mounting /syspart/ after reboot.
Then ohm daemon cannot do stuff (renicing apps, etc.)
It can feel like speed up, but this has some bad consequences.
 
Posts: 856 | Thanked: 1,681 times | Joined on Apr 2010 @ Aleppo ,Syria
#45
Originally Posted by epitaph View Post
Whats the exact difference between your script and the already published 4line-hack on TMO some weeks ago although you getting a lot of attention and he is ignored by most ppl? Can you elaborate?
well the reason is that 4line-hack has got multiple ways to get applied while The published 4line-hack uses only 1 way wich may not work on every n900

but my script gathers about 3 ways so there is no chance that at least 1 of them to work on n900
 
Posts: 856 | Thanked: 1,681 times | Joined on Apr 2010 @ Aleppo ,Syria
#46
Originally Posted by stano View Post
This patch is ********, it does nothing but broke mounting /syspart/ after reboot.
Then ohm daemon cannot do stuff (renicing apps, etc.)
It can feel like speed up, but this has some bad consequences.
You gotta be mistaken
first i have been using it for about 4 months and nothing wrong with syspart (as it doesn't use effect in it)

second this patch is not published for maemo5 only
it is actualy interigated in the newest linux-kernels
ex: latest ubunu has the patch applied in it
probably pr1.4 will does too
so make sure of what are you saying

regards



EDIT :
IF pr1.4 is going to be exest anyway

Last edited by karam; 2011-05-22 at 11:27.
 
Banned | Posts: 358 | Thanked: 160 times | Joined on Dec 2010
#47
Originally Posted by karam View Post
well the reason is that 4line-hack has got multiple ways to get applied while The published 4line-hack uses only 1 way wich may not work on every n900

but my script gathers about 3 ways so there is no chance that at least 1 of them to work on n900
Offtopic but interesting: How do you know which shell is active if you have both shell installed? Is there an environment variable or a special shell cmd like whoami for shells?

Last edited by epitaph; 2011-05-22 at 11:25.
 
laasonen's Avatar
Posts: 565 | Thanked: 618 times | Joined on Jun 2010 @ Finland
#48
Originally Posted by karam View Post
You gotta be mistaken
first i have been using it for about 4 months and nothing wrong with syspart (as it doesn't use effect in it)

second this patch is not published for maemo5 only
it is actualy interigated in the newest linux-kernels
ex: latest ubunu has the patch applied in it
probably pr1.4 will does too
so make sure of what are you saying

regards
pr1.4?
Originally Posted by epitaph View Post
How do you know which shell is active if you have both shell installed? Is there an environment variable or a special shell cmd like whoami for shells?
Code:
[laasonen@laasonen-laptop ~]$ echo $SHELL
/bin/bash
[laasonen@laasonen-laptop ~]$

Last edited by laasonen; 2011-05-22 at 11:24.
 

The Following User Says Thank You to laasonen For This Useful Post:
Posts: 856 | Thanked: 1,681 times | Joined on Apr 2010 @ Aleppo ,Syria
#49
Originally Posted by f2thak View Post
tried the above but on second step got error: "failed: device or resource busy"

did as root
no problem looks like you did it manualy
that is fine as you reboot it was mounted
so it will say device or resource busy
just do as i said in the instructions and every thing should be fine
 
Posts: 856 | Thanked: 1,681 times | Joined on Apr 2010 @ Aleppo ,Syria
#50
Originally Posted by lidow View Post
After applying what Karam provided here, looks like my device indeed speedup. Feels quicker and smoother.

Thanks karam.
Glad i helped and thanks for the feedback
 
Reply

Tags
autobrick, awesome-script, do no install, f***epitaph, install it now, perfect_ n900, script-a-brick, very safe


 
Forum Jump


All times are GMT. The time now is 12:00.