yashsingh1/xdaforums huggingface dataset:
[myTouch 4G Android Development] faux123:
Hehe, I like your wall of text :D Nice work :p

The SmartAss Governor can almost do what you've described, I just need to tweak it further. Right now I followed what was stated in the code by Erasmux (the original author of SmartAss). Transitioning from IDLE to Active state, according to his comments, he recommended setting the frequency to MAX allowable (in the default case is ~1.1GHz) to reduce interactive UI lag. Also the amount of time the kernel spent at any given frequency is set to be around ~70 ms. I also set the ramp up step to be ~230KHz and ramp down to be ~115KHz this asymmetry was done on purpose to reducing the sudden ramp up frequency (hoping to reduce battery consumption). The current Ramp Up Load is set at 75% and the ramp down load is set @ 30%. Also Erasmux has added a dummy load to reduce rapid CPU frequency transitions. The way he calculates the dummy load is:

Dummy CPU load = current load + (100 -75) 75 is the Max Load threshold.

In beta 0.7.2 I removed this dummy load, which led to huge instability when users OC'ed beyond 1.4 GHz, it seemed that transitioning from 234MHz to 1.4+ GHz is causing the chip to lock up (that's why Erasmux added this dummy load). So we can't just arbitrarily set the CPU frequency as we would like, we also need to take account of the Chip's physical limitations..
[myTouch 4G Android Development] hunteryezd:
Hey mate, You R the most professional user I‘d ever saw!!!

Great Job!!!

It's amazing~~~don't know how you could have do it!!!
[myTouch 4G Android Development] shadowmike:
this has been a great kernel for me so far, no freezes/reboots, no lags cant wait for tomorrows addition.
[myTouch 4G Android Development] elry567:
7.7 sv has been working awsome for me so far on gorilla sense oced to 1.5 no profiles:)
[myTouch 4G Android Development] vw671:
What is your display on time?
[myTouch 4G Android Development] elry567:
My display is on full brightness

25m 2s with the lv kernel it used up my entire battery in bout 6 hrs
[myTouch 4G Android Development] vw671:
lol...when I looked at that screen grab I assumed it was 6hrs ...when I looked again this morning I realized it was 6mins..haha.
[myTouch 4G Android Development] ckisgen:
haha me too. this was the first thread I looked at this morning when I woke up and I was seriously confused...
[myTouch 4G Android Development] Marine6680:
You know more about this than I do.

So there are two reasons to avoid rapid swings in cpu speed, battery and stability.

The way I was thinking was that smartass is working well as a performance focused governor. Otimization is always a good thing though, so no objections there. I was just thinking that some may want performance first but smarter on battery, and others may want a balanced governor.

I'm torn... conservative seems to be almost there, just the long poll interval causes some lag here and there. Smartass is great as well for what it does.

For me, I am not a heavy user. There are days I may only send a few texts at most all day. I rarely make calls, surf the web, or anything. The most I do is play a game while bored in a line, sitting waiting for a table somewhere, or on break. So all I need is everyday good performance, the battery is rarely taxed on my phone.

Smartass works for me, but some may need the longer battery life, so I have been experamenting. Conservative sips battery compared to other governors, but I still want to try it out at the settings I mentioned. Maybe some others on this thread could test as well.

In reality, the display and cell radio eat about 75% of the battery when the phone is in active use, like surfing the net, so adjusting their use gives bigger gains. The cpu uses little battery by comparison, but every little bit helps.
[myTouch 4G Android Development] Uchennadi:
You're right abt the cell radio and the display consuming the majority of the battery. I started a habit of turning off data if I'm not gonna be using it, ie. When screen's off, texting or making calls, and to my pleasant surprise, the battery percentage barely moves. Especially when the screen's off most of the time, it goes down by maybe 5 percent at most for the whole 8 hrs I'm at work. And that's with replying to texts, and answering a few short calls here and there.

This is making me think that better battery life won't come until the manufacturers are able to make more battery efficient cell radios and displays. It just seems that the cpu isn't the biggest of problems here, and while custom kernels do help a lot sometimes, there's always that uncertainty there. I guess its the price we pay for wanting the best of the best when battery technology is still lagging.
[myTouch 4G Android Development] faux123:
Or that HTC releases another Radio ROM... So far we only have 1 Radio ROM, many other HTC models have several radio ROMs to choose from, some better than others in terms of reception and battery drain...
[myTouch 4G Android Development] Marine6680:
I am liking the signal quality so far. I get signal at a friends house where I did not before.
[myTouch 4G Android Development] feliciepr7:
Finnaly flash it the new v.0.7.7 LV with the instructions on the page #14 so now let see how it behave and my battery last and then will post back...until then... thanks.
[myTouch 4G Android Development] Marine6680:
I have been having problems with apps disappearing lately.
[myTouch 4G Android Development] Freek91:
So here are some screenshots i took of my battery history and usage

this is running 0.7.7 LV OC'ed to 1.3ghz max 368 min on smartass gov running no profiles

so 2 questions...would this be considered good battery life(to me its good)? and the second question is...Is a 5% battery reduction normal for only 6 minutes of use to go from taking the first screenshot and then going to gmail and uploading it and sending it and then going into SpareParts and doing the same over again?

i've also noticed that the same type of battery swing happens when playing a game for 5 or 6 min...ill get like a 4-6% in battery for that length of time
[myTouch 4G Android Development] Keldarr:
I just flashed 0.7.7b LV and I'm getting a lot of lag especially in games as well as menus not showing up.

I tried a full wipe and fix permissions and got the same results.

I just restored and im about to flash with SV 0.7.7b this time, even though Low Voltage 0.5.1b has been working great just in case i screwed up some how. Ill let ya know if I get the same.

Loving everything else so far Thanks!

coming from 0.5.1b

Stock ROM

Setcpu

max 1555

min 368
[myTouch 4G Android Development] faux123:
I believe I found the lag issue... I was too aggressive tuning the SmartAss Governor :o. I will re-tune the SmartAss again... I believe I know where the exact problem with the lag... I should have 0.7.8b out sometimes tonight. Stay tuned :D
[myTouch 4G Android Development] Keldarr:
Well most of the lag is resolved in SV 0.7.7b and i got this result as well. After i recovered from the seizure i took a screen shot.
[myTouch 4G Android Development] epsix:
What rom are you using?
[myTouch 4G Android Development] doooshty:
It's actually on v7.6b low voltage. right now I'm at about 21.5 hours in with 34% battery left. I am using no profiles, i have it set at 1209MHz max and 245MHz min. I am very happy with this kernel. This works great for me, I mainly use it for browsing and texts, checking twitter(I have sync off, and manually refresh when i open it) occasionally some low resource games. A+ on this from me
[myTouch 4G Android Development] hunteryezd:
V0.7.8.1 is much better than the former ones~~

I run a Quadrant Advanced 2300!! really Impressive~~
[myTouch 4G Android Development] Vinsane:
Mmmmm....v7.8...like buttah :)
[myTouch 4G Android Development] vw671:
0.7.8LV = Wow!

Where did this come from? Quadrant scores of 2,300-2,400 @ 1.4GHz Smartass (Stock ROM) and battery seems to be alot better then all the other 0.7.x versions (*maybe except 0.7.5). Running this baby today to get a better idea on the battery consumption...but so far so good. If battery can match old-DMA versions this thing is almost golden!
[myTouch 4G Android Development] blitz911:
Stock Rom, using 0.7.8 SV, 1.2GHz smartass governor, no profiles, fully charged to 100%, been off the charger while I slept and its been 5hours and 27mins+ and battery is still at 99%....wow, amazing so far...
[myTouch 4G Android Development] kyokyle:
Hey faux. Should I uninstall autokiller memory optimizer. I don't want to be using something your kernel already does for the phone. I'm also wondering if this affects battery life too. Thanks
[myTouch 4G Android Development] Marine6680:
This thing has a ton of ram. You do not need a memory optimizer.
[myTouch 4G Android Development] DADDYDC650:
I'm currently rooted (True root) and running the original stock ROM (2.2.1). If I install this kernal, can I still perform a factory reset if I decide to go back to the stock kernal? Can I install the latest kernals over the last version without any problems? How long can I keep installing newer versions of your kernals over eachother before I have to wipe everything? TY in advance.
[myTouch 4G Android Development] vw671:
Just make a backup in Clockwork to retain your stock image. If you want to go back to stock, restore the backup. Takes about 5-10mins each way. Backups are your friend. Yes, you can flash different versions of Faux's kernels (*I cache wipe for extra measure).
[myTouch 4G Android Development] gejenn:
installed v7.8 LV but im seeing faux123-stock-v0.7.8.1 on kernel version??
[myTouch 4G Android Development] DADDYDC650:
Ty for the quick reply! I understand that I can make a backup but I'd much rather use the factory reset option. Can I still factory reset back to stock ROM/Kernal if I flash Faux123's kernal? It's an OCD thing....
[myTouch 4G Android Development] TrueBlue_Drew:
The only thing a factory reset will do is erase your data so the answer is...no, you cannot go back to stock by just doing a factory reset.
[myTouch 4G Android Development] Vinsane:
If you need the oem kernel..i can send it to you or post.but you'll never look back once you flash these :)
[myTouch 4G Android Development] vw671:
No, all factory reset does is delete user data and removes all the apps installed. It does nothing to the install ROM/kernel.
[myTouch 4G Android Development] Marine6680:
Hey guys, I keep getting apps disappearing from my app drawer. Even if I move them to internal memory. Before I format, wipe and reflash, I figured I would ask if anyone knew a solution.
[myTouch 4G Android Development] faux123:
Have you tried fixing permissions? (try it in ROM manager first, then try again in Recovery)... Android is picky on file permissions, if they are set wrong, the OS may not like them...

System Apps needs to be 644 and owned by root.root. If you use root explorer to copy files, the copied files will be owned by SDcard.system and permissions will be wrong, it will be something like 755 or worst 777....

simple way to fix permissions for [SYSTEM APPS] with terminal emulator is do:

su

cd /system/app

chmod 644 *

chown root.root *

for [USER APPS]

su

cd /data/app

chmod 644 *

chown system.system *

The above will fix the system/user apps copied using any file explorer.... Remember every time you copy/move apps in and out of /system/app folder, the permissions and owner groups will all be f*cked up, you will need to run above to fix them...
[myTouch 4G Android Development] gejenn:
Anybody notice this? Seems like both LV & SV are the same?

Sent via MT4G Ice Glacier v 1.1.6 using XDA App
[myTouch 4G Android Development] Marine6680:
All I did was use titanium backup. I tried fix permissions in recovery, will try again in rom manager. All the apps I see are rw-r-r in both system and data. The data app folder shows rwxrwx-x and system app folder is rwxr-xr-x.

The fix permissions did not work btw. One more try.
[myTouch 4G Android Development] eliasadrian:
Unless faux123 has changed something, it doesn't say in the system anywhere if it's LV or SV. You just gotta remember what you flashed :)
[myTouch 4G Android Development] feliciepr7:
I am using 0.7.7 LV, my ? Is, do I have to do the same steps I did in post #14 to be able to install the new update?

Sent from my Rooted HTC Glacier 2.2.1 - XDA APP
[myTouch 4G Android Development] Vinsane:
Nope. Just flash the new kernel. Be sure to wipe dalvik and cache
[myTouch 4G Android Development] feliciepr7:
Wich one u recommend?

Sent from my Rooted HTC Glacier 2.2.1 - XDA APP
[myTouch 4G Android Development] Vinsane:
Newest. V7.8 has been awesome
[myTouch 4G Android Development] pseudotrash:
Lag & Low Quandrant?

Not sure what happened but ever since v0.7.2b-LV my phone has been laggy and I have not been able to reach over 1750 score. mainly in the 1500-1600's.

I do notice when I run quadrant it gets stuck on I/O (database writes) 2/4 for a little while where before it breezed through it. I clear cache / davlik every update. I keep thinking flashing a new kernel will fix it but it doesn't :confused:

Running latest 7.8b LV with no adjustments. Set cpu shows 1516800 max / 245760 min conservative.
[myTouch 4G Android Development] Vinsane:
What version are you tuning now? Also..have you tried the sv version to see if things change?

Also..after first initial flash...let the system fully load up..every process widget etc...then reboot..should help your lag.
[myTouch 4G Android Development] nlarge:
I only hit 1264 with smart ass and 1409 on conservative
[myTouch 4G Android Development] blitz911:
I remember reading that it displays a different number at the end for LV or SV after ubuntu...i flashed SV and it says #80...
[myTouch 4G Android Development] Vinsane:
I have stayed consistantly on smartass and have had great results.

Remember..live wallpapers..widgets..etc will reduce quadrant score

I'm running back to back 2200+ - 2300+ on v7.8 with lots of widgets and live wallpaper
[myTouch 4G Android Development] faux123:
ROM version? Background Services, Running Apps? Need more details in order to even start to help trouble shooting issues... Without them, I won't be able to do anything....

ROM version? Background Services, Running Apps? Need more details in order to even start to help trouble shooting issues... Without them, I won't be able to do anything....

Remember, vague descriptions like above does NOT help at all... :( Need better descriptions.

Here's a template on how to report issues:

ROM version: Iced Glacier 1.1.6

Kernel version: LV 0.7.6.0b

Running Services: Ebay, Dictionary, Etc...

Running Apps: Youtube, Pulse, Etc...

Issue: Low Quandrant score... Lag on UI

Have Tried: Fixed Permission, Wiped Cache, Wiped Dalvik etc..

:cool:

1 more thing... Make sure you wiped cache, wiped dalvik and fix permission before reporting errors...

Also make sure you RESET SETCPU clock settings after every new kernel... (allow SetCPU to detect frequencies after every kernel FLASH...

For example,

in pseudotrash's case, I don't know why your SetCPU is on "Conservative"? It does NOT make sense, SmartAss is the default Governor... Which means SetCPU is causing issues with my Kernel... Make sure you re-detect the clock frequencies with every new FLASH of kernel...

I recommend TURN OFF "Set on Boot" options for SetCPU before you FLASH any new kernel, then after the first boot, make sure everything is running fine before you use SetCPU to overclock or change Governor and REMEMBER to RE-DETECT CPU Frequencies after new Kernel...
[myTouch 4G Android Development] nlarge:
ROM version: stock tmo

Kernel version: LV 0.7.8.0b

Running Services:

Running Apps: profile valet, WiFi callomg

Issue: Low Quandrant score... Lag on UI

Have Tried: Fixed Permission, Wiped Cache, Wiped Dalvik etc..

:cool:

I did reset and got a score of 1902 with smartass
[myTouch 4G Android Development] faux123:
:D Good, glad that your problem is solved...
[myTouch 4G Android Development] eliasadrian:
You might be right, I flashed LV and mine says #79
[myTouch 4G Android Development] gejenn:
So SV is #80 and LV is #79

Sent via MT4G Ice Glacier v 1.1.6 using XDA App
[myTouch 4G Android Development] Marine6680:
What are the voltages for the 2 kernels. Was curious, and can't remember if it was mentioned before.
[myTouch 4G Android Development] Elloco305:
No. Just clear the caches and flash the new kernel.
[myTouch 4G Android Development] eliasadrian:
I don't remember it ever being said but SV is just normal, stock voltages for the mytouch4g and LV is just... lower than that, haha.
[myTouch 4G Android Development] DADDYDC650:
I am true rooted using gfree and I have the stock ROM installed. Whenever I try and install the Faux kernal using ClockWork 3.0.0.6 I get boot loops. I wiped the cache+delvik as well before installing. Installs fine on the latest Ice Glacier ROM though. Any ideas?
[myTouch 4G Android Development] vw671:
This has been covered like 20x already...read post number #136 (page 14).
[myTouch 4G Android Development] kenrippy:
Yeah, maybe faux should mention this in his OP to help with the confusion.
[myTouch 4G Android Development] DADDYDC650:
That would be greatly appreciated!
[myTouch 4G Android Development] kenrippy:
Tried .7.8 LV all day yesterday and I have to say this seems to be the best mix of battery vs. performance so far, using Iced glacier 1.16
[myTouch 4G Android Development] vw671:
+1, After one day of pretty heavy usage I got this.

0.7.8LV Faux running at 1.4GHz Smartass @ Auto-brightness. 90% on 3G/46 & 10% on Wifi. Stock ROM
[myTouch 4G Android Development] netter123:
Newb question, relating to setcpu. Is there a way to get the max/min sliders back to their default values for each scaling option?

After installing this kernel, I installed setcpu for the first time. I was changing from "smartass" to "conservative" and then accidentally moved one of the max/min sliders. I thought the values were different between smartass/conservative, but now it shows Max 1113600 and Min 245760 regardless of the Scaling option I have selected.

If I tweak the max/min values, they stay tweaked even upon reboot (I do not have 'set on boot' checked). They also stay tweaked for all scaling options. In other words, if for example I set 900 as both the max and min, it will stay that way upon reboot. It will also stay that way when switching between the various scaling options. Uninstalling/reinstalling setcpu also didn't seem to reset the defaults.

I tried a wipe and reinstall of the kernel, but not sure if 1113600/245760 is really the default and if those values really aren't supposed to change between the different scaling options.
[myTouch 4G Android Development] Vinsane:
In setcpu....hit menu..then detect automatically..that will revert it back to 1.1ghz max and 245 min
[myTouch 4G Android Development] netter123:
You mean hit menu, device selection, and the autodetect speeds recommended? Because that does not seem to change the sliders once I've tweaked them...
[myTouch 4G Android Development] Vinsane:
Yes. It sets them back to original settings then you can adjust them to what you want.
[myTouch 4G Android Development] eliasadrian:
At 52% after 6 1/2 hours on 7.8.1 LV, but that's with 3 hours of 3G/4G, 3 1/2 of wifi, a handful of widgets, almost two hours of xda/internet, flashing a few things with a handful of reboots, and about ten minutes of calls.

Pretty amazing, I think.
[myTouch 4G Android Development] Vinsane:
V7.8.2 SV :)

Stock ROM, frozen apps, widgets out tha ying-yang, live wallpaper and lots of stuff going on in the background
[myTouch 4G Android Development] netter123:
This doesn't work - help please - what am I doing wrong with setcpu?

I'm at 113/245 max/min with smartass. I slide the max down to something like 902, and the min up to something like 537. I hit menu, device selection, autodetect speeds recommended...it gives the "requesting root" prompt, then "settings saved" prompt...then takes me back to the screen where the sliders are still at 902/537 just like before. Switching the scaling from smartass to any other option keeps the settings at 902/537 as well.
[myTouch 4G Android Development] diazkyubi:
the updated kernel is freezing my glacier running evil d 4g-hd v0.3.2...ne reason y?
[myTouch 4G Android Development] negreenfield:
I'm actually trying out evil hd rom myself. Which version are you running and what settings? I'm on 0.7.8.2 sv but it seems laggy to me so far.
[myTouch 4G Android Development] diazkyubi:
mines started off laggy then just froze up. im doing a full wipe n reflash then kernel flash n see wut happens. ill let u know my findings
[myTouch 4G Android Development] negreenfield:
Ok, I've tried multiple governors and multiple speed settings but they all seem to lag. I was using the kernel that comes with the evil hd rom and it ran ok but wanted to try faux's since it worked so well on iced glacier. The lag is really bad though with 0.7.8.2 on evil hd but I'm not having any freezing problems.
[myTouch 4G Android Development] blitz911:
Using 0.7.8.2 LV and the battery is noticeably better especially with WiFi on..I also enabled setcpu profiles.
[myTouch 4G Android Development] isme84:
I flashed it back to Stock using this file http://xdaforums.com/showthread.php?t=901477

permroot with s-off

flashed this kernel and I get boot loops.

any idea what might have happend?
[myTouch 4G Android Development] brwnohno:
For whatever reason using the web browser on 7.6b sv or lv is much smoother than on 7.7 or 7.8.2. Don't know why but when I scroll down the page in the stock web browser with my finger on the screen I get choppy scrolling on 7.7 or 7.8. Don't know if it's because 7.6b was using CFS and the kernels after 7.6 were using BFS. Anyhow, I keep going back to 7.6 for overall phone experience.
[myTouch 4G Android Development] Vinsane:
I haven't noticed any issues with 7.8.2 so far...very odd you guys are getting freezes...lags etc. I am though totally stock...so kernels perform better ob different rom's it looks like.
[myTouch 4G Android Development] Elloco305:
Faux put the #'s and all to shut everybody up lol . But anyways I'm tempted to flash since trusty Vinsane says he's on stock and he's running .2 just fine. Might flash later. I'll wait for more feedback.
[myTouch 4G Android Development] ckisgen:
Im on gorillasens DHD and had some minor lag with 7.7 and 7.8.1 until I saw faux and a couple others suggestions for avoiding lag on new kernel flashes from a page or two back .

of course wipe both caches.

but the last two times with 7.8.1 and 7.8.2 - after flashing and letting it boot up initially out of recovery - I restarted again (let it boot completely the first time before restarting , let all widgets load etc) and then once I was all booted from that last restart - I let SETCPU redetect my clock speeds / find defaults or whatever its called (menu button on the main setcpu screen...it says default something or other )

after I did these two new steps in my new kernel flashing process I haven't had any lag since..I just checked out my web browser too. no lag on scrolling whatsoever

try that and see if it helps..also I can't remember if you guys said you tried SV but some of these newer Sense ROMs - I'm wondering if they wouldnt benefit from the higher voltages
[myTouch 4G Android Development] eliasadrian:
No qualms with 7.8.2, seems to run just as good as 7.8.1. No time to test battery right now, but performance seems great so far.
[myTouch 4G Android Development] kenrippy:
see page 14 of this thread for the answer to your problem. (see vinsane's post)
[myTouch 4G Android Development] Vinsane:
Yup. Add the few extra steps, it really works out.

Wait for full load...reboot...auto detect in setcpu....then set it. :)
[myTouch 4G Android Development] electronicrice:
I've found that these instructions provided by Gr8gorilla work every time, instead of flashing the .zip file:

* Unzip the zImage and bcm4329.ko file.

* In terminal Type: adb reboot bootloader,

* Then type: fastboot flash zimage /path/to/zImage

* Then type: fastboot reboot

*Now just like in the G2 thread, your wifi will be broken, so type:

adb push bcm4329.ko /sdcard/bcm4329.ko

adb shell

su

mount -o remount,rw /dev/block/mmcblk0p25 /system

cat /sdcard/bcm4329.ko > /system/lib/modules/bcm4329.ko

Now your wifi will work.