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)

prankster 2011-06-16 10:47

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
thanks f2thak but there are issues about smart reflex,but lets stick to thread, CSSU maemo 15,fast custom transitions,to me enough for a speedy N900,isnt that true?

MetalSer 2011-06-16 11:12

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
Opening 15 webpages and other apps isn't enough? I want to flash my device in a few weeks maybe it will then work properly. Right now when I was stressing it the device just freezes. I have only two apps from testing and devel so thats why I am confused. I can maybe make a video to show it if you would like to watch it. I have overclocked my decie at 805 mhz with the starving profile, I use the recommended settings of swappolube, I have smart reflex vdd1 and 2 enabled and I have the cssu installed and I have enabled the hardware sync of hildon desktop.

karam 2011-06-16 14:44

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
@epitaph
i ment it can be modified to give a better performance
so it is good

and no haven't test them yet

cause my parents took my n900
BECAUSE i have backaloria (in my country syria) it is 1 year of heaaavy study (it will decide my whole future)

anyway hope i stay in touch

karam 2011-06-16 14:49

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
@prankster
@MetalSer

For me i have smartreflex vdd1 and vdd2 enabled with the default profile
all the tweaks applied ( including the patch)
haven't overcloaked n900 (600mhzs) and it is super fast and smooth and reponsive

i can at least open 9 webpages and play 1 webos game and play video also listeing to mediaplayer
(all at the same time)
also recieving a call is fully functional (it is known that if you stressed the cpu n900 might not receive some calls)
and got no lags at AAALLLL!!!

Seker_94 2011-06-16 20:44

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

i have tried your updated patch
it just adds few lines to rc.local wich worked on my second n900

i have 2 N900
1 for me
1 for my bro

mine worked with the old patch
but my brother's one didn't

now with the updated patch it works on both N900

so thanks a million times for your effort and hardwork
Cheers

MetalSer 2011-06-16 21:25

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

Thats definetly not the case for me. Strange...

Seker_94 2011-06-16 22:51

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

It's defenetly my case ;)
i just have my N900 like that

you may wanna try all the tweaks together to get that result
just like what happened with me

PS : even if you didn't get that result
you will at least see your n900 2x smoother

The patch it self does wonders
not only on n900
also on a desktop PC
Try it out

mehulrajput 2011-06-16 22:54

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

Originally Posted by karam (Post 1030293)
@prankster
@MetalSer

For me i have smartreflex vdd1 and vdd2 enabled with the default profile
all the tweaks applied ( including the patch)
haven't overcloaked n900 (600mhzs) and it is super fast and smooth and reponsive

i can at least open 9 webpages and play 1 webos game and play video also listeing to mediaplayer
(all at the same time)
also recieving a call is fully functional (it is known that if you stressed the cpu n900 might not receive some calls)
and got no lags at AAALLLL!!!

you use stock kernel or titan one? also what tweaks have you applied, the one on the first page or some other tweaks too?

karam 2011-06-16 22:58

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
All the tweaks in the first page only
BUT ALLL of them

So i use kernel-power v47 (it's mentioned as a tweak in first page)

MetalSer 2011-06-17 07:06

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
I also use allmost all of them, or just all of them. The only thing that is different for me is that I use kernel-power v46. Maybe this is the difference between karam and me and why the patch doesn't seem to work for me. Maybe a bit off topic but why would I want to use v47 instead of v46?

karam 2011-06-17 09:37

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
i use kernel-power v47 because i see it is the most responsive one
to the patch
also it has injection wireless modules

thingonaspring 2011-06-17 15:16

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
Hi Guys,

I've tidied up the cgroup patch a lot. It's now a self-contained script, it no longer needs bash and it's a bit more effective when you run things from x-terminal (previously you had to run bash before anything in x-term would be cgrouped).

Code:

#!/bin/sh

if [ $USER != root ]; then
  echo "Error: you need to run this script as root."
  echo "Exiting..."
  exit 0
fi
     
mkdir /usr/local/sbin >/dev/null 2>&1
cat <<_EOF >/usr/local/sbin/cgroup_clean       
#!/bin/sh
if [ "$*" != "/user" ]; then
  rmdir /dev/cgroup/cpu/$*
fi
_EOF
chmod u+x /usr/local/sbin/cgroup_clean

cat <<_EOF >/etc/event.d/speedpatch
description "speedpatch"

console none

start on MOUNTS_OK
stop on stopping xomap

script
    mkdir -p /dev/cgroup/cpu
    mount -t cgroup cgroup /dev/cgroup/cpu -o cpu,memory
    mkdir -m 0777 /dev/cgroup/cpu/user
    echo "/usr/local/sbin/cgroup_clean" > /dev/cgroup/cpu/release_agent
    echo "1" > /dev/cgroup/cpu/user/notify_on_release
end script
_EOF

if [ `cat /home/user/.profile |grep /dev/cgroup |wc -l` -eq 0 ] ; then
  cat <<_EOF >>/home/user/.profile
  if [ "\$PS1" ] ; then
    mkdir -p -m 0700 /dev/cgroup/cpu/user/\$\$ 
    echo \$\$ > /dev/cgroup/cpu/user/\$\$/tasks
    echo "1" > /dev/cgroup/cpu/user/\$\$/notify_on_release
  fi
_EOF
fi

echo Patch complete, reboot to enable

To apply this, cut+paste the code into a file named "patchit.sh", chmod u+x on the file, then run it as root "./patchit.sh".

If you've applied the original cgroup patch, then you should remove the 4 cgroup lines from rc.local too. It probably won't hurt to have rc.local with the old patch enabled, it's just tidier to get rid of it. If you've got nothing other than cgroup in /etc/rc.local, then it's safe to remove the file entirely.

Usual disclaimer - use the patch at your own risk, I take no responsibility for anything bad that happens in your life.

mehulrajput 2011-06-17 15:51

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
@karam one more question, where does your swap reside emmc or microsd??

karam 2011-06-18 13:06

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
Thank you thingonaspring
i just can't test anything right now
can somebody test it and tell the result please

make sure if you have already applied the patch (the one in the first post) remove it before applieng the new one

karam 2011-06-18 13:55

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

actually emmc
cause i don't have microsd

But i edited the swap to have 1 gb swap inside emmc

used gparted with backupmenu (complicated)

but even before doing this i had a great n900 with the tweaks and the patch

CasTTeLLo 2011-06-18 16:54

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

Originally Posted by locolyric (Post 1025518)
did you forgot to key in the command as root?


Quote:

/home/user # /etc/rc.local
mount: mounting cgroup on /dev/cgroup/cpu failed: Device or resource busy
mkdir: cannot create directory '/dev/cgroup/cpu/user': File exists
me oso got the same error after trying to update the patch....what next?

karam 2011-06-18 16:59

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
That is normal :)
No problems with it


PS : i said this over the 30 pages about 30 times ;)

Seker_94 2011-06-18 17:00

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
actually yes it is normal

that happened once with me
but as long as i have /dev/cgroup that means the patch is done correctly

thingonaspring 2011-06-18 22:37

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
1 Attachment(s)
Attaching patch.tar.gz for karam.

karam 2011-06-18 23:33

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900 (HUGE UPDATE)!!!!!!!!!!! NOW Easy Apply
 
HUGE Update every one
Read the first post :)

Thanks to thingonaspring
Oh and thingonaspring i modified it a bit

nafajafam 2011-06-19 00:33

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900 (HUGE UPDATE)!!!!!!!!!!! NOW Easy Apply
 
thank u
it works great.

GregLand 2011-06-19 00:35

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900 (HUGE UPDATE)!!!!!!!!!!! NOW Easy Apply
 
Works great now !
Thanks a lot !

xRobby 2011-06-19 01:08

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900 (HUGE UPDATE)!!!!!!!!!!! NOW Easy Apply
 
Quote:

mkdir: cannot create directory 'user/local/sbin': File exists
Can't even get past the first script line :/
What do i do?

bman 2011-06-19 01:34

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900 (HUGE UPDATE)!!!!!!!!!!! NOW Easy Apply
 
thanks dude
i only installed the patch none of the other optional fixes and felt a huge difference in responsiveness :D

bman 2011-06-19 01:38

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900 (HUGE UPDATE)!!!!!!!!!!! NOW Easy Apply
 
Quote:

Originally Posted by xRobby (Post 1031752)
Can't even get past the first script line :/
What do i do?

read the first page
dont listen 2 any of the errors just follow the steps
the first step creates a folder the error is the folders already created.... problem..? i think not
then next error u will get is saying the folder doesnt exist... problem....? no cos it just created it
then if u see correctly u re do that step anyway which then doesnt bring that error up

F2thaK 2011-06-19 02:01

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900 (HUGE UPDATE)!!!!!!!!!!! NOW Easy Apply
 
hi karam,

in your 1st post the line below is incorrect Im sure.. its meant to be "rm /etc/rc.local*" right?

Quote:

rm /etc/rc.locall*

BTW install instructions need fixing too.

To install:


Quote:

sudo gainroot

mkdir /home/user/.profile
mkdir /usr/local/sbin
tar xzvf /home/user/MyDocs/patch.tar.gz
chmod +rwx patchit.sh
./patchit.sh
./patchit.sh
rm patchit.sh
mv transitions.ini /home/userMyDocs/

kolos 2011-06-19 09:40

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900 (HUGE UPDATE)!!!!!!!!!!! NOW Easy Apply
 
F2thaK, .profile is not a directory, but a file. So instructions without mkdir /home/user/.profile are correct.

Also I think we can skip mkdir /usr/local/sbin, because in the new script (patchit.sh) these is a command mkdir /usr/local/sbin >/dev/null 2>&1.

karam 2011-06-19 10:17

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900 (HUGE UPDATE)!!!!!!!!!!! NOW Easy Apply
 
@F2thaK
rm /etc/rc.locall* is correct because the old patch creates 2 files
1-) rc.local
2-) rc.local.back.......

rc.locall* means all the files that have the name rc.local + any addition name
and Btw
@kolos i have removed the step mkdir /usr/local/sbin

kolos 2011-06-19 10:26

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900 (HUGE UPDATE)!!!!!!!!!!! NOW Easy Apply
 
karam, shouldn't be just one letter L at the end of the word local (locall* -> local*)?

Also I think the last command mv transitions.ini /home/userMyDocs/ should be just rm transitions.ini.

karam 2011-06-19 10:29

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900 (HUGE UPDATE)!!!!!!!!!!! NOW Easy Apply
 
@kolos
it can be one letter
or 2 letters (it doesn't make any diffrence in this case)
and mv transitions.ini /home/user/MyDocs (to the next optional step)
to move these transitions.ini to the current theme

kolos 2011-06-19 10:38

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900 (HUGE UPDATE)!!!!!!!!!!! NOW Easy Apply
 
Quote:

Originally Posted by karam (Post 1031947)
@kolos
it can be one letter
or 2 letters (it doesn't make any diffrence in this case)
and mv transitions.ini /home/user/MyDocs (to the next optional step)
to move these transitions.ini to the current theme

But in my case command with two letters didn't delete necessary files.

Regarding transitions.ini, I like to have transitions as they are, so I didn't apply these changes (I deleted their lines from patchit.sh).

karam 2011-06-19 10:43

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900 (HUGE UPDATE)!!!!!!!!!!! NOW Easy Apply
 
Quote:

Originally Posted by kolos (Post 1031952)
But in my case command with two letters didn't delete necessary files.

They are probably already deleted
It MUST Do That

karam* = karak* = karaf* = karai*
means kara + any other letter

rc.local* = rc.locaf*= rc.locaw*
means rc.loca + any other letter

so:

rc.locall* = rc.localw* = rc.locaq*
means rc.local + any other letter

Hope you get it ;)

Oh and for the transitions
there lines are already deleted in the patch.tar.gz (wich is in the first post)

F2thaK 2011-06-19 10:48

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900 (HUGE UPDATE)!!!!!!!!!!! NOW Easy Apply
 
actually its

local* = local + any other letter

kolos 2011-06-19 10:51

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900 (HUGE UPDATE)!!!!!!!!!!! NOW Easy Apply
 
I'm not programmer, but if I understand right the star (*) replaces all following letters/symbols/numbers and doesn't annul letters/symbols/numbers written before the star. So in case locall*, that should seek all words which start with locall..., but not with local... (except locall...).

karam 2011-06-19 10:52

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900 (HUGE UPDATE)!!!!!!!!!!! NOW Easy Apply
 
Aaaaaah what can i say then

F2thaK i always use this
and i know what i'm saying
i will make another test and remake sure of that silly info ;p

Edit : just made another sure of that
and it doesn't make any difference

F2thaK 2011-06-19 11:00

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900 (HUGE UPDATE)!!!!!!!!!!! NOW Easy Apply
 
Sorry but you have it wrong Karam

http://www.tuxfiles.org/linuxhelp/wildcards.html

karam 2011-06-19 11:13

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900 (HUGE UPDATE)!!!!!!!!!!! NOW Easy Apply
 
F2tahaK
1-) it is a bash (not ash) as N900 uses (although this might not be important
2-) it says mv *linux*.html dir1 (notice 2 stars) so the command moves all the HTML files, that have the word "linux" in their names, from the working directory into a directory named dir1:
3-)but if we did
mv linux*.html dir1 then the command moves all the HTML files, that have the word "linu" in their names, from the working directory into a directory named dir1

EDIT : BTW i have replaced rm rc.locall* with

rm /etc/rc.local
rm /etc/rc.local.backup.txt

F2thaK 2011-06-19 11:52

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900 (HUGE UPDATE)!!!!!!!!!!! NOW Easy Apply
 
but if you wanted to delete these files that are in the same folder:

exampleA
exampleB
exampleC

you would do "rm /example*"

---

Im just trying to help you out, making sure the instructions are correct.

Again I really appreciate this script/MOD, as Im sure many others do.

Thank you.

mr_pingu 2011-06-19 11:58

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900 (HUGE UPDATE)!!!!!!!!!!! NOW Easy Apply
 
Yes the * means any character but you the last letter can't be any character so

just like F2thaK said

example* includes
exampleA
exampleB
exampleC

but it doesn't work like you think:
You think this way:
exampleA* includes them all but that's wrong since A is included, and then it won't affect the others!

Changegames 2011-06-19 12:09

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900 (HUGE UPDATE)!!!!!!!!!!! NOW Easy Apply
 
i just want to ask did the last version got the same transitions.ini or is it the same thats included in the updated version?


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

vBulletin® Version 3.8.8