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

Reply
Thread Tools
Posts: 856 | Thanked: 1,681 times | Joined on Apr 2010 @ Aleppo ,Syria
#171
Originally Posted by Bad_Habit View Post
/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
 
Posts: 856 | Thanked: 1,681 times | Joined on Apr 2010 @ Aleppo ,Syria
#172
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
 
Posts: 48 | Thanked: 32 times | Joined on Dec 2010 @ Russia, Moscow
#173
Originally Posted by karam View Post
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?
 
Posts: 856 | Thanked: 1,681 times | Joined on Apr 2010 @ Aleppo ,Syria
#174
Originally Posted by Bad_Habit View Post
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
 
Posts: 48 | Thanked: 32 times | Joined on Dec 2010 @ Russia, Moscow
#175
Originally Posted by karam View Post
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...
 
Posts: 856 | Thanked: 1,681 times | Joined on Apr 2010 @ Aleppo ,Syria
#176
well maybe but the most important thing that you are fine now
And the patch works
and your system is fixed

Regards
 
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#177
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
 
Posts: 856 | Thanked: 1,681 times | Joined on Apr 2010 @ Aleppo ,Syria
#178
Originally Posted by Schturman View Post
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
 

The Following User Says Thank You to karam For This Useful Post:
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#179
Before install the .deb file, should I remove your script ?
 
Posts: 856 | Thanked: 1,681 times | Joined on Apr 2010 @ Aleppo ,Syria
#180
Originally Posted by Schturman View Post
Before install the .deb file, should I remove your script ?

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

The Following 2 Users Say Thank You to karam For This Useful Post:
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 21:25.