yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] :
okay, and will there be a smartassV2 ThunderBolt version?
[Android Software/Hacking General [Developers Only]] justkidding74:
1.9.1???

I dont understand about 1.9.1 is it final version or experimental i have 1.9.0 version should i update or no, end how to update just to to run 1.9.1 over 1.9.0 or some other method??

2.3.5 deodexed stock rom

1.8.2 semaphore.....
[Android Software/Hacking General [Developers Only]] pikachu01:
So far, the Talon implementation of smartassV2 is good. I'm not sure about other kernels.

It's a final version, but meant to be experimental for CM7. However, it didn't work for CM7 as well without removing the screenstate_scaling script. You can update, as it includes some minor fixes as well. Just install it over in CWM. It's fine :)
[Android Software/Hacking General [Developers Only]] s30ckf:
Pika pika, after a ODIN flash of ROM, flashing 1.9.0 60MB LMK + 2 addons, I can say the battery usage is really a superb, even better than v1.5.1 previously. But the operation still mix with lagginess (were in Ondemand).

Until today, you release 1.9.1 I quickly flash 50MB LMK version and running with Ondemand also, and the operation is pretty smooth. I will continue observing the battery and performance in SmartassV2, as now I am in SmartassV2 [end of report]
[Android Software/Hacking General [Developers Only]] rmean:
Hey pika,

Is there any (dis-)advantage of using the screenscaling-script instead of setcpu-profiles?

Regards :)
[Android Software/Hacking General [Developers Only]] lippol94:
If you use setcpu-profiles you won't have correctly working VM scaling so --> LAGS.

So no. No disadvantages!

:)
[Android Software/Hacking General [Developers Only]] sherpa25:
For both awake and sleep?

Also, is 1.9.1 only for CM7 testing, or for others as well?
[Android Software/Hacking General [Developers Only]] rmean:
Thanks :) testing battery life using conservative governor as sleep state.. Will test smartassv2 afterwards, but i fear it will scale too high when listening music. Going to report :)

Regards
[Android Software/Hacking General [Developers Only]] lippol94:
Best configurations should be

AWAKE=smartassv2

SLEEP=conservative

Since Zach has tweaked conservative to scale frequencies faster you shound't have problems with, for example, listening to music while screen is off.
[Android Software/Hacking General [Developers Only]] kitkitfok:
Why don't use XWJVU ?
[Android Software/Hacking General [Developers Only]] danieldmm:
I think that XXJVT its better and XWJVU its Operator ROM (TMN Portugal)

Cheers
[Android Software/Hacking General [Developers Only]] pikachu01:
SetCPU app is running even though the device screen is off. It consumes just a little bit more battery than using screenstate_scaling.

Also, screenstate_scaling scales the VM settings too as lippol94 mentioned. :)

Yes, for both awake and asleep.

It's for everyone. Initially also contained CM7 fixes, but it didn't fix the CM7 issue.

Actually, I haven't tested smartassV2 while listening to music. And, I don't have any semblance of music worth listening for a couple of minutes (stuttering usually occurs after some time). Can someone test this?

I'm using XFJVA, which is even newer and also a multi-CSC ROM :)
[Android Software/Hacking General [Developers Only]] pikachu01:
I've found the root cause of the hang-at-boot issue for CM7/Fugumod when using screenstate_scaling.

Thanks to lippol94 for his time in testing out some theories I had.

It seems that this function has a bug:

cat /sys/power/wait_for_fb_sleep
cat /sys/power/wait_for_fb_wake

If you are in CM7/Fugumod, issuing those commands while screen is off or before a screen turns off, the OS will hang and refuse to wakeup/budge.

Since this is a CM7/Fugumod bug, I can't do anything to fix this issue at my end. If there's anyone who knows a developer I can contact, I can fill them in to this bug and hopefully they can fix it :)
[Android Software/Hacking General [Developers Only]] geokilla:
ThunderBolt got switched from ondemad to smartassv2 now? Because it's still showing ondemand in Control Freak and in the Semaphore app.

I'll see if I can report back with Mms.apk closing on me tonight. I didn't send too many texts yesterday :(
[Android Software/Hacking General [Developers Only]] danieldmm:
They dont change, you must change the script for that--->Post here

Cheers
[Android Software/Hacking General [Developers Only]] pikachu01:
Nope. Nothing is switched. I'm switched by editing the screenstate_scaling script :)

You can only switch by editing it.
[Android Software/Hacking General [Developers Only]] kalvinlou:
That means I cannot use this with CM7 nightly or Fugu right now?
[Android Software/Hacking General [Developers Only]] jocke_lulle:
Sorry, I might be stupid but I still have to ask just to be sure.

Im using semaphore 1.8.2 and tb-scripts 1.9.1. If I switch from ondemand (default) in semaphore app to smartassv2, I also have to edit the screenstate_scaling script as suggested in the post above?

What happens if I dont change the script? Will I still be using ondemand?

Sorry for the question.

Thanks
[Android Software/Hacking General [Developers Only]] folkg:
Yes, the script forces a certain governor. You will have to edit the script, but it's not hard to do. You can use a free tool like root explorer in ROM Toolbox to do it right on your phone. You also have to reboot.
[Android Software/Hacking General [Developers Only]] jocke_lulle:
So, i edited the script to use smartassv2 when AWAKE with Rom Toolbox and rebooted. Now I got both S98screenstate_scaling (with smartassv2 uncommented) and S98screenstate_scaling.bak (with ondemand uncommented) in my init.d folder. Is it right or should I delete the .bak-file?
[Android Software/Hacking General [Developers Only]] folkg:
The .bak file shouldn't be recognized as a script I don't think, but you don't really need it either, so you could delete it.

You can test its working by using pimp my cpu, voltage control, or another app to try and set the governor to something else, close the app, open it, and if it reverted back to smartassV2, then everything is working properly.
[Android Software/Hacking General [Developers Only]] jocke_lulle:
Ok. I use voltage control. But when I open it it shows the governor is ondemand although I have edited the script to use smartassv2 when awake and rebooted.

I have checked that the scripts are running as they should by using terminal emulator as pikachu suggest in 1st post.

I then reflashed the tb-script. If I now open voltage control and change governor from ondemand to conservative and then close the app and open it again, it still shows conservative. Shouldnt the governor revert back to ondemand if its working properly?
[Android Software/Hacking General [Developers Only]] danieldmm:
Pika i need your help, can you check whats wrong? See ScreenShots and if you can check my CWM --->Link Here

Thanks

Edit: Checked and its everything good..

Its in Frist Post the code is wrong.

You Wrote

getprop | grep MEM

And the code is:

getprop | grep ADJ

Cheers
[Android Software/Hacking General [Developers Only]] martinomac:
Pika, great work...as always.

Just a bit confused and want to clarify if I'm doing as recommended: In /sdcard/bolt_scripts I have remount9000 and sqlite_optimize

current process:

1. remounti9000 (run as root + run at boot) at each bootup

2. sqlite_optimize (run manually after all items startup)

Things are running quite smooth and no FC.

Thanks again!
[Android Software/Hacking General [Developers Only]] danieldmm:
You dont need to run each bootup, when you tick Run at boot, ScriptManager will run that for you at each reboot...

Cheers
[Android Software/Hacking General [Developers Only]] geokilla:
Delete all texts in Mms.apk and still getting the app closing on itself issue, though it only happens once or twice as usual, unlike when on Talon it happened numerous times which pretty much made the phone useless when I had to call or text someone.
[Android Software/Hacking General [Developers Only]] folkg:
Sorry, try closing the app, then turn the screen off, then turn it back on. Then if you go back and check it should be working properly. The processor states are triggered by the screen turning off and on.

---------- Post added at 05:56 PM ---------- Previous post was at 05:52 PM ----------

As far as the CM7 and Fugumod kernel go, I went back and tried Fugumod build 1921 as some people in that thread recommended and it boots up just fine with the screenstate_scaling script. So whatever they did to break that kernel function, it likely happened on build 1922, which came out Nov. 3, meaning also on CM nightly 168.
[Android Software/Hacking General [Developers Only]] jcvr:
Screen_state isnt working for me either. Even uncomented it for smartassv2 and conservative.
[Android Software/Hacking General [Developers Only]] AceofSpades90:
Sorry for a noob question but what is new in 1.9.1 for talon users? i mean do i have to reinstall 3g and bin and libsqlite scripts along with ThunderBolt-CWM i9000 v1.9.0 50MB LMK Talon.zip (in my case)?

Should i take off thunderbolt tweaks before updating talon kernel to 0.5.2.5??
[Android Software/Hacking General [Developers Only]] rico13:
Pika

when i type in

sysctl -a | grep vm

it displays the values as you indicated

but when i type in

getprop | grep MEM

it displays

[ro.FOREGROUND_APP_MEM]: [1280]

[ro.VISIBLE_APP_MEM]: [2560]

[ro.PERCEPTIBLE_APP_MEM]: [3840]

[ro.HEAVY_WEIGHT_APP_MEM]: [6400]

*and so on

does this mean that the script isnt working?
[Android Software/Hacking General [Developers Only]] danieldmm:
Type etprop | grep ADJ and not MEM

Cheers

Escrito pelo meu querido S using tapatalk...
[Android Software/Hacking General [Developers Only]] pikachu01:
Yup, there's a CM7 bug that prevents screenstate_scaling from working.

I'll post the working smartassV2 script later :)

No, it would stick to smartassV2 if you edited the script correctly.

Thanks for catching that. Updated the OP :)

Weird. Only two people experience this so far. I'm still banking it on some misbehaving app (or apps). It might be that both you and Rebel2k are using 2 different apps that are misbehaving.

Cool! Now I know exactly which date the commits are done. I'll take a look at Fugumod git later to determine which code broke it.

Did you check the permissions correctly? rwx-rwx-rwx?

Installing Talon will wipe some of ThunderBolt!'s scripts automatically. You'd have to reinstall anyways. :)
[Android Software/Hacking General [Developers Only]] saszseb:
@pika,

you said:"You can remove the screenstate_scaling script before flashing to avoid the problem, but you'd have to drop_caches periodically so that you don't get lags after a while due to aggressive VM settings."

What do you mean you have to drop_caches periodically? How/what to do?

Thanks.
[Android Software/Hacking General [Developers Only]] RaymondPJR:
When you open the bolt scripts using the script manager application, the first choice is 'drop'. That's the one you want to run periodically.
[Android Software/Hacking General [Developers Only]] sherpa25:
And an alternative to what RaymondPJR said, if you have Memory Freak, you'll find a 'Drop Caches' button as well, w/c does the same thing. Though the app is no longer used for LMK in the current version, I believe the function to drop cache still works.
[Android Software/Hacking General [Developers Only]] pikachu01:
Update v1.9.2. Tweaked the I/O queue tunables and read_ahead a bit. Also made the VM settings a bit less aggressive. It now feels a bit faster than v1.9.1.

Changelog:

11/14/2011 (1.9.2)

- Increased read_ahead_kb to 2048. Should increase reading disk speed.

- Increased nr_requests to 8192. Should increase smoothness a bit. Still an arbitrary value, so testing is needed.

- Reduced VM aggressiveness a bit. Should reduce microlags sometimes when cache is full.
[Android Software/Hacking General [Developers Only]] rlorange:
Pikachu. When uploading a big file to dropbox the file freezes or resets over and over again. Not sure if its related to thunderbolt but I thought I should mention it.

**Simply Honey 5.1 JVR rom & Talon kernel @ 1.3ghz**
[Android Software/Hacking General [Developers Only]] saszseb:
Thanks, but I don't have Memory Freak as I'm on MIUI.

---------- Post added at 09:27 AM ---------- Previous post was at 09:17 AM ----------

Thanks, but I don't have "/bolt_scripts in this patch: /sdcard/bolt_scripts/remount_{*}.

(Thunderbolt_1.8.0 is bundled in the MIUI_Mintberry_1.11.11).
[Android Software/Hacking General [Developers Only]] pikachu01:
I'll look into this :)

You should ask lippol94 to bundle the script :)
[Android Software/Hacking General [Developers Only]] bhu1:
But wont this eat more battery then what v 1.9.0 ate?
[Android Software/Hacking General [Developers Only]] bhu1:
I uploaded a file of 180 mb just some hours ago on dropbox, np. So I dont think its tweaks related problem.

Edit: btw, 180 mb is the limit for dropbox so their wont be a bigger file than this. I had to upload a 212mb file but because of the limit I broked it into pieces.
[Android Software/Hacking General [Developers Only]] lippol94:
Stop saying bullsh*ts! :-D

We've never said that thunderbolt! Scripts are built in Mintberry!!

We've added LMK + supercharger. Nothing more! :-)

Sent from my Samsung Galaxy S I9000 running MIUI Mintberry Edition
[Android Software/Hacking General [Developers Only]] pikachu01:
The battery increase is negligible. Oh, I forgot that I increased the garbage collecting interval also. This would reduce battery usage. Let me update that into the changelog. :)
[Android Software/Hacking General [Developers Only]] saszseb:
Pls. watch my init.d.

Thanks.
[Android Software/Hacking General [Developers Only]] bhu1:
Hehe, good for us. Ill include it in v9 doctorz rom.
[Android Software/Hacking General [Developers Only]] SGS_elko:
Ok guys, I'm new here in ThunderBolt thread. As I can see this skcript (collection of scripts) bring a lot of performance. I've read a littlebit trought the thread, and I'm confused. When I install v1.9.2 on my I9000 as described in the initial post, what have I to do if I want to use the CPUfreq governers whitch are in this post from picathu described.

http://xdaforums.com/showpost.php?p=19286185&postcount=1346

Can someone of you guys post a step by step instruction how to do this? I mean should I use skript manager for this or? Does this work with cf kernel?

Regards!
[Android Software/Hacking General [Developers Only]] jcvr:
When i execute s98screenstate_scalin in Script manager (just to see the output) it ends with "242: syntax error: end of file unexpected (expecting "fi").

I tried this because, even when i uncomented smartassv2 it always show ondemand on voltage control.

Thanks
[Android Software/Hacking General [Developers Only]] pikachu01:
It should be bundled into /sdcard/bolt_scripts. Not the init.d.

It will only work with kernels that is compiled the smartassV2 module, like Semaphore and TalonDev which is the two that I know. There may be others. You edit the script in your computer and replace the script into CWM and flash it. You can edit the script in your phone too right from the init.d and save it, reboot.

I'm not getting the error. I do sanity checks for each of my script by running it with script manager actually. Did you copy the screenstate_scaling incorrectly (your /system partition is full, hence only part of the script is copied) or you edited the script incorrectly?
[Android Software/Hacking General [Developers Only]] sherpa25:
hi pika...weird, while using 1.9.1, I edited S98screenstate_scaling in init.d to use Smartassv2 for Awake and Sleep. Then after flashing v1.9.2, I rechecked the file and it had all governors commented out with #.
[Android Software/Hacking General [Developers Only]] pikachu01:
Yup, I commented it out actually. That's because you're on Talon, and the default is ondemand which sleeps well. Hence, no need to scale the governor.

You can just change your governor to whatever you like and it'll stick. This applies only for Talon.
[Android Software/Hacking General [Developers Only]] jcvr:
It's stange indeed. The script is ok, it ends with "4000000 (test)". And the system is not full, i even deleted bootanimation.zip just to have sure.

I check if it is beeing aplied on voltage control, and it always show "ondemand". Is this correct?

Thaks.

PS: i'm just beeing perfectionist, because even whitout this the Thunderbolt is awesome.
[Android Software/Hacking General [Developers Only]] nmeuret:
I read the last few pages and I still didn't know if the laster version 1.9.2 is compatible with the latest CM nightly ???
[Android Software/Hacking General [Developers Only]] jamir5:
can someone help me pls

i have thunderbolt script with semaphore kernel 1.8.2bm wit ext4 enabled

i tried to undervolt using smartassv2 everythings fine at first after 15 mins it began to restart and restart and restart..

i cant do anything but to restore my nandroid backup, so i use to restore in cwm,

after it restore now i cant pass to the logo samsung galaxy s,

i cant go to recovery anymore only download mode

can some one help me i enable ext4

i read that to reflash rom again i have to convert to rfs again but how will i do that i i dont have recovery anymore pls help me its my birhtday today ugghhh
[Android Software/Hacking General [Developers Only]] sherpa25:
Oh, ok. Noticed it when I wanted to try Smartassv2 as you said it's smooth, even with Sleep.
[Android Software/Hacking General [Developers Only]] jamir5:
sherpa kabayan can you help me with my post above you
[Android Software/Hacking General [Developers Only]] pikachu01:
It's not unless you remove the screenstate_scaling script before flashing it. With that, you'd have to periodically drop caches when you feel that its laggy.

Also, read the OP.

I explained in the Semaphore post. Repasting here:

Protip when undervolting:

Stress test your phone before saving the undervolt settings as boot.

If you want to reflash your phone, you can do so by Odin, in which you will lose all your unbackuped data.

You don't need to convert your file system back to RFS to flash using Odin. Just reflash. It'll get reverted to RFS when you reflash.

Yeah. It is smooth, but battery usage when screen is on is a little bit higher than ondemand (what I noticed).
[Android Software/Hacking General [Developers Only]] saszseb:
I know. As I wrote in my post 1422, I don't have that patch:/sdcard/bolt_scripts. I don't have bolt_scripts folder(file).

I have: S98system_tweak and 98System_Tweaks. I don't think it's normal.
[Android Software/Hacking General [Developers Only]] pikachu01:
It's not normal, because you're using MintBerry's modified ThunderBolt!. You need to ask them to include them (not me).
[Android Software/Hacking General [Developers Only]] lippol94:
Exactly! Only God knows when people will start to think about what they're doing!

You can't flash whatever you want on whatever you're running.

Pay attention!

98System_Tweaks is made by mintberrycrunch for MIUI Mintberry.

S98system_tweak is made by Zach, modded by pikachu, and shipped with Thunderbolt!

You have to choose which one you want to keep.

If you choose the former you will loose pikachu's tweaks, if you choose the latter you will lose Mintberry goodies.
[Android Software/Hacking General [Developers Only]] pikachu01:
I'm interested to know what's in 98System_Tweaks. Probably I can learn a thing or two about Mintberry's goodness if you would permit :)
[Android Software/Hacking General [Developers Only]] lippol94:
PM mintberrycrunch :)

But I think shouldn't be any problem
[Android Software/Hacking General [Developers Only]] sherpa25:
Like @pika suggested, I'd also look at reflashing with Odin. I wouldn't know of another option if you're only able to go to Download mode. It should work ;)
[Android Software/Hacking General [Developers Only]] saszseb:
@lippol,

What I did is I flashed my favorite kernel (Platypus) instead of stock (Glitch).

That's all.
[Android Software/Hacking General [Developers Only]] keuda:
I have the same problem. Tried run the script with script manager and same result as you. Im on semaphore 1.82. Edited script and gave it all permissions too. Any idea what could be?

Enviado desde mi GT-I9000 usando Tapatalk
[Android Software/Hacking General [Developers Only]] GreenSGS:
read_ahead_kb

Hi Pika,

The read_ahead_kb tweaks, value is 2048 KB in script S98System_tweak could you please share some knowledge over it, in which situations it's helpful to have it high? May be a short desc.

Why I want to know this because,I always had it default like 256KB that worked always perfect for me, technically I have not much details about it but 256 KB and 64KB ( from semaphore tweaks, 3 extra entries 64KB. ) always felt better for me so I adjusted your scripts like this:

# Optimize for read- & write-throughput;

# Optimize for readahead;

for i in $STL $BML $MMC $ZRM;

do

if [ -e $i/queue/read_ahead_kb ]

then

echo "256" > $i/queue/read_ahead_kb;

fi;

done;

# =========

# TWEAKS: raising read_ahead_kb cache-value for sd card to 2048 [not needed with above tweak but just in case it doesn't get applied]

# =========

#echo "2048" > /sys/devices/virtual/bdi/179:0/read_ahead_kb

# improved approach of the readahead-tweak:

if [ -e /sys/devices/virtual/bdi/179:0/read_ahead_kb ]

then

/system/xbin/echo "256" > /sys/devices/virtual/bdi/179:0/read_ahead_kb;

fi;

if [ -e /sys/devices/virtual/bdi/179:8/read_ahead_kb ]

then

/system/xbin/echo "256" > /sys/devices/virtual/bdi/179:8/read_ahead_kb;

fi;

if [ -e /sys/devices/virtual/bdi/179:28/read_ahead_kb ]

then

/system/xbin/echo "256" > /sys/devices/virtual/bdi/179:28/read_ahead_kb;

fi;

if [ -e /sys/devices/virtual/bdi/179:33/read_ahead_kb ]

then

/system/xbin/echo "256" > /sys/devices/virtual/bdi/179:33/read_ahead_kb;

fi;

if [ -e /sys/devices/virtual/bdi/138:9/read_ahead_kb ]

then

/system/xbin/echo "64" > /sys/devices/virtual/bdi/138:9/read_ahead_kb;

fi;

if [ -e /sys/devices/virtual/bdi/138:10/read_ahead_kb ]

then

/system/xbin/echo "64" > /sys/devices/virtual/bdi/138:10/read_ahead_kb;

fi;

if [ -e /sys/devices/virtual/bdi/138:11/read_ahead_kb ]

then

/system/xbin/echo "64" > /sys/devices/virtual/bdi/138:11/read_ahead_kb;

fi;

if [ -e /sys/devices/virtual/bdi/default/read_ahead_kb ]

then

/system/xbin/echo "256" > /sys/devices/virtual/bdi/default/read_ahead_kb;

fi;

I am using this at the moment but without knowing all about it in detail.

Thank you.
[Android Software/Hacking General [Developers Only]] pikachu01:
Hmm, I didn't test the Others script. Might have a typo somewhere. :S

Let me look at it and get back to you guys.

I had it high as an experiment actually, to see if it would slow down the system or speed it up instead. So far I haven't seen any noticeable difference. I continually change the values to see which works best as I do not claim to know everything there is in the Linux world. Everything I've worked at so far is based on what I've experimented upon, which of course is based on solid theory on Linux's internal workings.
[Android Software/Hacking General [Developers Only]] zacharias.maladroit:
weird, I'm not subscribed to this thread yet

*fixed now* ^^
[Android Software/Hacking General [Developers Only]] GreenSGS:
Thanks for answer, I appreciate it, You are right it does not feels a like big difference (benchmarks go up but no meaning there) but my feedback is that lower values serves me better. I tried 512 also.

I have had bookmarked 2 articles(May be you know already), may be helpful in furthering making Thunderbolt more solid:

http://xdaforums.com/showthread.php?t=1032317

http://lwn.net/Articles/372281/
[Android Software/Hacking General [Developers Only]] rmean:
Hi there,

At the moment i have the feeling that he phone is draining more battery when idle then in awake state.. I don't really know why, sleep governor is set to conservative and i don't see any apps active in background.

I'm losing about 1% per ~30 minutes when at sleep, seems a bit high to me.

Anyone having the same experience?

Regards :)