maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900 (https://talk.maemo.org/showthread.php?t=73315)

karam 2011-05-25 17:28

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
Quote:

Originally Posted by Bad_Habit (Post 1015259)
/etc/rc.local should contain this:

Code:

#!/bin/sh
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


please Read my previos post and yes it might be usefull
But those lines are in speedpatch wich is placed in /etc/event.d/
So those lines are applied for the whole core stuff

Meanwhile if you entered those lines in rc.local the patch will be only applied for the current terminal session
I mean only the leanched apps from the opened terminal window
will have the patch applied (well usualy it doesn't work well on n900)

But when the patched is applied to the core hildon-desktop + hildon-home are heavly effected (patched)

So in the bottem line: currently everything is working good
no need to edit anything
But if you wanna try and test
well no problem
any suggestions are welcomed ;)

karam 2011-05-25 17:40

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
And if you want you can also remove the # from the cgroup_patch
from line to 61 to line 66 if you want to have rc.local filled up with those lines

echo "#========== 200 lines kernel patch alternative ============" | tee -a $FICHERO
echo "mkdir -p /dev/cgroup/cpu" | tee -a $FICHERO
echo "mount -t cgroup cgroup /dev/cgroup/cpu -o cpu" | tee -a $FICHERO
echo "mkdir -m 0777 /dev/cgroup/cpu/user" | tee -a $FICHERO
echo "echo \"/usr/local/sbin/cgroup_clean\" > /dev/cgroup/cpu/release_agent" | tee -a $FICHERO
echo "#====================================" | tee -a $FICHERO

But according to the feedbacks there is no need to :)
It will does the samething as speedpatch in event.d ;)

Bad_Habit 2011-05-25 17:45

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
Quote:

Originally Posted by karam (Post 1015278)
And if you want you can also remove the # from the cgroup_patch
from line to 61 to line 66 if you want to have rc.local filled up with those lines

echo "#========== 200 lines kernel patch alternative ============" | tee -a $FICHERO
echo "mkdir -p /dev/cgroup/cpu" | tee -a $FICHERO
echo "mount -t cgroup cgroup /dev/cgroup/cpu -o cpu" | tee -a $FICHERO
echo "mkdir -m 0777 /dev/cgroup/cpu/user" | tee -a $FICHERO
echo "echo \"/usr/local/sbin/cgroup_clean\" > /dev/cgroup/cpu/release_agent" | tee -a $FICHERO
echo "#====================================" | tee -a $FICHERO

But according to the feedbacks there is no need to :)
It will does the samething as speedpatch in event.d ;)

For some reason /etc/event.d/speedpatch never gets executed, it means the MOUNTS_OK event doesn't fire up... Can you guess the reason the event doesn't happen?

karam 2011-05-25 17:48

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
Quote:

Originally Posted by Bad_Habit (Post 1015281)
For some reason /etc/event.d/speedpatch never gets executed, it means the MOUNTS_OK event doesn't fire up... Can you guess the reason the event doesn't happen?

NOO why won't it get launched
It is executed otherwise no cgroup folder will be created in /dev

Anyway i will remove #
from pach when building the deb
IMO this will be a placebo
casue speedpatch does the same job :)

Bad_Habit 2011-05-25 18:03

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
Quote:

Originally Posted by karam (Post 1015286)
NOO why won't it get launched
It is executed otherwise no cgroup folder will be created in /dev

Anyway i will remove #
from pach when building the deb
IMO this will be a placebo
casue speedpatch does the same job :)

Sorry, I was wrong. My steps were:

1. chmod -x /etc/rc.local, checked /etc/event.d/speedpatch, rebooted
2. started xterm, saw an error message complaining about /dev/cgroup missing
3. made my previous post
4. grep -lir "mounts_ok" /etc/event.d, noticed rescue-boot-late script which writes messages to /rb.log, checked its modification time which said I was wrong and the event actually DID fire up, but after full boot /dev/cgroup was missing for some reason
5. another reboot, now it's all fine

Will do my best to debug this thing once it happens again. I guess my system may be corrupted somehow, but I've made strong customization and that could be the reason...

karam 2011-05-25 18:08

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
well maybe but the most important thing that you are fine now
And the patch works
and your system is fixed

Regards

Schturman 2011-05-25 18:26

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
Hi
Tell me please if I need to install new version ? I installed this patch a 2-3 days ago, and it's looks like it's work good... Are you fixing something in the new version?
Thanks

karam 2011-05-25 19:31

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
Quote:

Originally Posted by Schturman (Post 1015325)
Hi
Tell me please if I need to install new version ? I installed this patch a 2-3 days ago, and it's looks like it's work good... Are you fixing something in the new version?
Thanks

So Far no need
But when misiak makes the deb you should install it :)
Cause there are couple a fixes :)

Schturman 2011-05-25 22:08

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
Before install the .deb file, should I remove your script ?

karam 2011-05-25 22:11

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
Quote:

Originally Posted by Schturman (Post 1015557)
Before install the .deb file, should I remove your script ?


Nop No need to as the deb file will replace all the files :)


All times are GMT. The time now is 13:20.

vBulletin® Version 3.8.8