yashsingh1/xdaforums huggingface dataset:
[HD2 Android SD Development] bronx:
ok... so initially after installing 8.3b my battery was insanely baaad, however after few hours it seems to settle down and now it is simply incredible. in 2.5hs of quite intensive hammering (some gaming, wifi browsing mostly) I lost 25% of batt. on 8.2 it would rather be about 40% - 50%. stability is great, no freezes, everything seems to be even more smooth...

thank You hastarin. great job!

[EDIT]

oh yeah... I use froyostone 3.2 with h8.3b (as You can guess), no oc/uv on 8gb sandisk class6.
[HD2 Android SD Development] MarlinFF:
Strange, it completely disabled my camera. I know because I used it yesterday to capture a picture.. I overwrote the HTCCamera.apk on the system root and now it gives the same thing as well.. However aftera bit it will say tap on the screen to use the camera, however tapping it does nothing.
[HD2 Android SD Development] hastarin:
I had a quick look at the code for the smartass governor. I don't think it's locked to 998MHz. If I am correct it jumps up to 998MHz when it's jumping up from idle, but it may still go higher if it needs to.

Sounds reasonable to me. I haven't tried it, but I can't see why that wouldn't work.
[HD2 Android SD Development] fmedrano1977:
If you know how to update the kernel this should be easy for you. Create this directory root/system/app and place the apk in there. For the libraries there is a readme.txt with instructions. Of course reboot.
[HD2 Android SD Development] MarlinFF:
Already installed the APK in the Apps folder of the phone. Still not working. For libraries there is TWO versions, and I am not using a Desire NOR a Nexus One build I am using the mdj EVO so which one should I install?
[HD2 Android SD Development] fmedrano1977:
Good question, I'm using a Desire build and this fixed my camera so I don't know what to tell you. I would just try both.
[HD2 Android SD Development] tritran18518:
i try your build but the camera app doesn't work, just black screen.
[HD2 Android SD Development] hd945157206:
i am use cm6 . but camera not work why? using hastarin 8.3and update (nexus camera root)
[HD2 Android SD Development] hastarin:
It seems the 99complete file was not fixed properly sorry. :(

You can try fixing permissions on it via a shell (Terminal Emulator app, or G-Script Lite) with root (su) permissions:

chmod 777 /etc/init.d/99complete

chmod 777 /system/etc/init.d/99complete

I don't know why the settings didn't take.

I've attached a file you can run in G-Script Lite to fix them.

You'll need to reboot afterwards.
[HD2 Android SD Development] kaizer hanz:
Camera Work with EVO Build

Clarification, camera work with some issues (NOT AUTO WHITE BALANCE).

I'm using CoreDROID v0.7, but camera have some graphic issues like (see Red circle) :

did you have same issues guys..?

*sorry for my english :D
[HD2 Android SD Development] zaibatsu:
Thanks hastarin!

I had the same problem with the camera in your build, now its working.

Sweet! :)
[HD2 Android SD Development] sorodrigo:
traducción del español al inglés

great job, has some bugs

:D
[HD2 Android SD Development] mdeejay:
HTCCamera.apk ONLY for Desire based builds
[HD2 Android SD Development] MarlinFF:
Okay I managed to fix my evo camera by copying over the S6 files from mdjs kernal. However I do get that random bar at the bottom after taking a picture.
[HD2 Android SD Development] captainhakan:
Hastarin I just wanna thank u for not letting extended battery users down with your last 8.3eb version. I always knew u were gonna make it someday! It runs so fast and smooth. You totally made my day
[HD2 Android SD Development] jmmmmm:
It has already been stated that the 8.3 update WILL break the camera and the patch WILL NOT work for evo based builds. :confused: :eek:
[HD2 Android SD Development] sorodrigo:
not work in desire :(
[HD2 Android SD Development] MotoMudder77:
Installed 8.3b, and the camerafix files linked to in OP. I get no service, why would this be

EDIT

For some reason a Reboot fixed the issue. disregard
[HD2 Android SD Development] kaizer hanz:
oooh.. ok, sorry my mistake.

but where I can find HTCCamera.apk for EVO build..? or how to fix it..? :D

WR,

Kaizer Hanz
[HD2 Android SD Development] MarlinFF:
Camera works fine when you use the libcamera files from mdjs S6 Kernal
[HD2 Android SD Development] Chitown021:
I'm sorry but I'm missing something in trying to fix the camera issue after updating the kernel. I've tried running the Fix99 from my SD card via Gscript lite but it doesn't seem like the program will recognize it from my card. I get to the scree that says "select a file .sh from sdcard but there's none listed to choose from.

I've also tried the HTCCamera.apk but I must not be putting it in the right place to get it working. Sorry for being such a noob. I've tried several times to fix it myself but I'm not getting anywhere.
[HD2 Android SD Development] victa:
8.3b causes a force close in "system" at each boot on phireMOD Ace 1.0... :(

Tried on 2 clean installs...
[HD2 Android SD Development] FlawlesStyle:
8.3b seems to have completely removed SOD/TS freezes for me on bangsters build. Everything is pretty much perfect at this point.

Thank you so much.
[HD2 Android SD Development] malaeus:
8.3b working with HD2ONE, android core crashes once every 2-3 hours. seems to be on screen rotate, but is not repeatable. so idk, will report again, if im able to force it to crash.

seems to be working, after a week of effing with builds trying to get tether to work maps stopped loading. this kernel *seems* to have fixed these weird issues for now

android core crash is on widget resize. probably a build issue, will post there as well.
[HD2 Android SD Development] dortok:
except u don't have a working camera, right?
[HD2 Android SD Development] supermantxz24:
so i just downloaded Fix99completePerms.zip where do i put it in my android folder for it to work. i also downloaded the HTCCamera.apk and put it in the right folders what do i do now to get the camera to work. when i go to linda manager to install the HTCCamera.apk it says cant install.
[HD2 Android SD Development] hastarin:
To use the Fix99 script put in the "gscript" folder in the root of your sdcard.

Quick and dirty guide (for Desire Sense build):

Follow the instructions in the michyprima file I linked (CameraFixes.zip) to get the libraries and updated 99complete file copied on. Or use your own discretion (Root Explorer or whatever, I used Android Commander).

Check all the permissions, maybe run the script I provided.

Replace the /system/app/HTCCamera.apk with the one I provided.

Reboot

Hope that helps.
[HD2 Android SD Development] tritran18518:
with the script you provided, i can turn on my camera app, but after shooting video for a while , i can't turn the camera app off ( visual buttons disappear) And then, i can't open the camera app anymore (black screen comes back). Weird^^!
[HD2 Android SD Development] socrated13:
I can confirm this, I am using phiredrop skinnyEVO 1.7 with 8.3b, I used the libcamera files as well and my camera is fully functional now. thanks :D

EDIT: it WAS working...I had no problem with it using the app on first boot, I tried to access it again and now I just get a black screen...
[HD2 Android SD Development] MarlinFF:
Did you try using the camcorder in 720 HD by any chance? That made it just show a blank screen until i restarted. I'm going to just install the stock camera that came with mdj's evo..
[HD2 Android SD Development] hastarin:
Sounds like you're trying to use 720p It's still broken, so don't use it. ;)

If you rebooted in between it sounds like a problem with the symlinks that get created from the 99complete file. At least I've had that problem until I sorted the permissions on that file. See my post in the last few pages for a script that should fix the permissions if that's your problem.
[HD2 Android SD Development] supermantxz24:
i downloaded the HTCCamera.apk and when i go to the root folder/system after i click the system folder all there is is the lib folder so i made an app folder as well. My question is am i even doing it right? if so what do i do after i put HTCCamera.apk in the app folder? i tried rebooting and got nothing. Please help i am using the mccm sw v3.2 darkstone sense build
[HD2 Android SD Development] sarp25:
How to set MNC from 10 to 11 in APN setting?

Because every time i have change MNC to 11 my APN setting is gone.

Need your suggestion. Thanks :)
[HD2 Android SD Development] curiousGeorge:
It doesn't go beyond 998 when it needs to. The framerate in test videos, as well as benchmarks both within and outside of setcpu show this as well. It does briefly jump above 998MHz, but too rarely to do any good. This is reasonable only up to 998MHz, and not one iota beyond. This is broken behavior.

PS: The voltage setting ability is amazingly slick. 800mV hard-locks for me, 825 works but freezes after a bit, and 850 seems stable (stress tested for a while too).
[HD2 Android SD Development] tyween:
I have been playing with the vdd_levels all day too. Are you talking about 800mv on 245mhz? I didn't get a hard lock but it did freeze later, same with 825. I am going to stick with 850. Right now I am using these values and it seems pretty stable:

cat /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels

245000: 850

384000: 900

422400: 925

460800: 950

499200: 975

537600: 1000

576000: 1025

614400: 1050

652800: 1075

691200: 1100

729600: 1125

768000: 1150

806400: 1175

844800: 1200

883200: 1225

921600: 1225

960000: 1225

998400: 1250

1036800: 1250

1075200: 1250

1113600: 1275

1152000: 1275

1190400: 1275

What are your values looking like? I was trying to figure out how to write a script to include these in bootup but am having difficulties. Has someone done this yet? Thanks!
[HD2 Android SD Development] mdskrzypczyk:
So this is what I did:

1. Copy all of the hastarin 8.3b files into the android folder

2. Copy the new libhtc rapper v0.06 onto the root

3. Run the Fix99perission script in gscript

4. Reboot several times during this process

5. Try the camera several times during this process

I could not get the camera to work, I just get a black screen when I start the camera up. I'm using shubCRAFT 2.0. I also tried clearing the data and force stopping the camera in the applications settings and could not get it to work. any help?
[HD2 Android SD Development] hastarin:
OK well I'm currently testing some updates, including tweaks for the smartass governor. If all goes well I'll post 8.4 tonight.

For a preview of what it includes just read my commit log:

http://gitorious.org/~hastarin/linux-on-wince-htc/hastarins-linux_on_wince_htc/commits/master
[HD2 Android SD Development] djdanska:
My camera app force closes. BUT apps that use the camera on my phone work fine. I streamed a 5 minute video using qik and it worked fine. I can't take pictures though. I am fairly sure a solution will be found.
[HD2 Android SD Development] curiousGeorge:
Pretty close! 850, 875, ...1100 at 768Mhz, 1200 at 998Mhz, 1325 at 1190Mhz. ;) I'm still trying to find out if they're stable. Beware -- 1150mV looked stable at 998Mhz, but froze after a little while, as did even 1175mV after a longer while in interactive.

Oh and by the way, the camera... is 1 step forward, 2 steps backward in my opinion. The only thing that looks new is the "zoom" functionality (not that we need such horrific aliased hardware upscaling as the "digital zoom"). The flash, as everyone knows, produces green pictures. ISO changing still doesn't work properly, and pictures are coming out as grainy as ever--now just more discolored (yes, even with "flourescent" or other white balance modes).
[HD2 Android SD Development] jmmmmm:
Oh yeah that
[HD2 Android SD Development] hastarin:
Yeah I tend to agree with you. The other change is autofocus is now working. Though it seemed to work before for me so not sure if it just works better/faster or what the deal is.
[HD2 Android SD Development] curiousGeorge:
Yeah, same here, I don't notice a difference... oh well. Progress is progress!
[HD2 Android SD Development] tyween:
Cool man, if you can do a cat /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels

whenever you find some stable values let me know.. I will be doing the same, what I have posted for me seems stable for the last 5 hours. I don't have time to mess with it any more but I will be messing with it more tomorrow! Maybe together we can get the most optimized values ;).

@hastarin, this is the fastest kernel I have ever used! I have never scored over 2k in quadrant and I scored 2030 using the standard class 2 sd card that my phone came with! This was when using the interactive governor as the smartass governor has some problems that we have all seen. Seems that shall be fixed with the smartass tweaks you are putting into 8.4?
[HD2 Android SD Development] imatrix:
hastarin,

is the new camera fix posted in the 1st post needed for Darkstone FroyoSense v3.2?

thanks,
[HD2 Android SD Development] hastarin:
The thing is what is stable for you may not be stable for others. I've started reading up on HAVS, which mdeejay and huanyu are using. It sounds interesting, but I need to read more to see if it would be a better option or not.

Yeah it's pretty quick. Hopefully 8.4 will be a fraction quicker (I just updated my toolchain) and yes it will have the tweaks for smartass. I'm actually running smartass on my phone now, via SetCPU, to test it. I don't think I'll jump to making it the default just yet though.

The Interactive governor will also gets some tweaks in 8.4 So whichever you choose to use it's only good news. :)

You can try without it, but yes, pretty sure you'll need the Desire version.
[HD2 Android SD Development] heichi13:
Camera

Hey there. I messed up my camera after I installed them. Is there any way I can revert it back to CyanogenMod 6.1 Nightly build's camera? Thanks.
[HD2 Android SD Development] dungphp:
Install Fast r8.3b: http://www.mediafire.com/?7kckc4cvcrao6nr

-Copy to Android folder

-ReBoot

OK

Desire, EVO
[HD2 Android SD Development] tyween:
Yea, I know but having a base of what is stable will save me some time. I would venture to say that what is stable for most people will probably be within the 50mv range of what is stable for another person. I am not new to overclocking/voltage tweaking. It's just nice to compare results to have something to work with.
[HD2 Android SD Development] curiousGeorge:
How did you get over 2000? What did you do? What build/speed/etc??! :)

My values are as such:

echo '245000 850' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '384000 875' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '422400 900' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '460800 925' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '499200 950' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '537600 975' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '576000 975' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '614400 1000' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '652800 1025' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '691200 1050' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '729600 1075' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '768000 1100' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '806400 1125' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '844800 1150' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '883200 1150' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '921600 1175' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '960000 1175' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '998400 1200' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '1036800 1225' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '1075200 1250' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '1113600 1275' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '1152000 1300' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '1190400 [b]1300[/b]' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels

It's surprisingly close to hastarin's 800 code, except with a steadier initial slope, steadier middle segment, and truncated 1300mV at 1.2Ghz.
[HD2 Android SD Development] tyween:
Running everything in my signature, Interactive governor @ 1190mhz. 1gb rootfs. Thanks for your values!
[HD2 Android SD Development] hastarin:
r8.4/r8.4_eb released

OK after last nights debacle, this one should be a bit smoother, since I've actually tested both kernels and made sure the files I uploaded were the rights size. :p

See changelog for more info. It's basically just a few tweaks to 8.3b but given two of those tweaks were to the two most popular governors I thought folks would want to try them out.

Oh and I updated the toolchain I use to compile things, so it might be optimized a bit more. No idea if you'll notice a difference though. It was already fast. ;)
[HD2 Android SD Development] tyween:
Awesome.. smartass doesn't seem to stick at 998mhz now. :) Not sure if I will stick with smartass or interactive yet.
[HD2 Android SD Development] nguyen112694:
Hey hastarin with 8.4 and froyo sense clean 2.3 does overclocking with setcpu to 1190mhz cause any problems?
[HD2 Android SD Development] LittleH79:
Wow, another update!

Thankz!:D

But I have to say 8.3b was already great!

Hastarin, you commented on my reply in MDJ's thread on my batt not stop charging in his S6 kernel:

Originally Posted by hastarin

First everything I've said is referring to original batteries only. If you have a cheap clone I can't say how it would work, but...

From my observation the WM driver does the same thing, and both the old driver and new one do it too. They will show 100% but keep charging until the battery is taking less than 5mA at which point they recalibrate that as the "full" charge.

If you don't trust it try charging to 100% in WM, and you'll notice it keeps charge on. Then when it's done, boot in to Android you'll see it switches off quite fast.

But as usual, it's use at your own risk, so feel free to ignore my ramblings and just not use it.

Yeah I can understand that.

But what the problem is, I've loaded your 8.3b and almost instantly when it reaches 100% it stops charging (at least says it's full) and light turns green.

End Quote..

Can you let your expert mind say something about this:

On MDJ's S6 I left in on charge for another hour and no go. It was on 100% at all time, current widget showed 0% batt usage at the time and still it wouldn't say fully charged (charging was seen in the batt icon) and the light was still amber..

btw, I'm using the stock standard battery btw, no extended cheap crap or something..
[HD2 Android SD Development] sorodrigo:
thanks

when you get your battery?

:rolleyes::D:eek:
[HD2 Android SD Development] tyween:
has anyone written an init script for setting vdd_levels? I don't know what I'm doing wrong but I am getting directory nonexistent errors using the same commands that I use to set vdd_levels through adb shell.
[HD2 Android SD Development] hastarin:
That will depend on your phone. On mine it's stable at the configured voltage. How much benefit the overclocking actually gives you is another matter. But I leave that up to the end user to decide.

I generally don't overclock unless I'm running a game that is heavy on the CPU.

Was current widget showing any current still going in to the battery? Ie. a positive number?

If not then it should have switched off charge...

Relevant lines from the patch I gave him. min_curr = 5000 = 5mA

In english it says if the last two polls (every minute when charging) saw less than 5mA going in to the battery and the battery is over 95% charge then recalibrate to full and stop charging.

+	// Check whether the bat is full and change the ACR to right 100% value
+	if(curr >=0 && curr < min_curr && lastval < min_curr && perc > 95 && source) {
+	ACR = ((di->raw[8] << 8) | di->raw[9]);
+	if( ACR > 9000 ) {
+	FL = (LEO_EXTENDED_BATTERY_CAPACITY * 1570) / 625;
+	ACR_EMPTY = (LEO_EXTENDED_BATTERY_EMPTY * 1570) / 625;
+	} else {
+	FL = (LEO_BATTERY_CAPACITY * 1570) / 625;
+	ACR_EMPTY = (LEO_BATTERY_EMPTY * 1570) / 625;
+	}
+	I2C_Write_ACR(di, FL+ACR_EMPTY);
+	di->status.battery_full = 1;
+	di->status.percentage = 100;
+	charge_mode = CHARGE_OFF;
+	}
+	else {
+	di->status.battery_full = 0;
+	}

You could try my _eb kernel to see if that behaves the same as mdeejays. He should have my old driver (he basically applied a diff between my two kernels to his kernel) with the extended battery support.

Hope that helps.
[HD2 Android SD Development] JanssoN:
That was a fast update ;) Thankz

Have you compiled this kernel with the new git? They said there is an update for the g-sensor? Or did you just used the patch? Sorry if I got something wrong :o
[HD2 Android SD Development] LittleH79:
No it wasn't. it was in my cradle and it showed 0ma.

I've been looking quite a lot at this since loading android and this is what I normally see:

- current widget on and reporting every minute.

- when charging current widget shows around 225ma.

- when reaching 100% light turns green.

- then current widget starts dropping slowly like for example 200ma > 140ma > 65ma > 10ma > and then for a longer period positive numbers under 10ma and then finally it goes to 0ma.

And then it feels like it's completely fully charged in my mind :)

But with MDJ's S6 it does exactly the same but the light just won't turn green and it would just keep saying that it's still charging even hitting the endpoint 0ma with current widget.

Was going to load 8.4 to my device but lets have a look at your eb version first and see how that behaves, just to compare..
[HD2 Android SD Development] hastarin:
I've had it for about a week and a half. Though only used it for testing so far. It doesn't fit in my car dock, or I'd consider using it normally.

I've applied the patch for g-sensor to my branch of the kernel. The original tree does not have it. Markinus, who controls it, didn't want to apply a workaround.
[HD2 Android SD Development] hastarin:
Strange, I'll be interested to see how you go with the eb version. If you get the same problem then it's something to do with the old driver. If you don't then perhaps he's made a mistake applying it.
[HD2 Android SD Development] JanssoN:
Ok, thanks. I was confused because I've read about it in the irc logs and wasn't shure, because they said the were finished and applied to push it to git. But it works, that's all I need ;) So thanks again and keep up your great work.

Edit: I've just seen that the standby drain is going down to 5 or 6mA. Impressive! :D

Cheers

J
[HD2 Android SD Development] 2udCrRAZdK:
Thank you for your efforts!

7GL14771GL030693V
[HD2 Android SD Development] hastarin:
And thank you for the donation. :)
[HD2 Android SD Development] LittleH79:
Loaded the eb version and it acts exactly the same as MDJ's.

Here's the current widget log:

2010/11/18 09:50:25,188mA,97%

2010/11/18 09:51:25,219mA,97%

2010/11/18 09:52:25,197mA,97%

2010/11/18 09:53:26,179mA,98%

2010/11/18 09:54:26,169mA,98%

2010/11/18 09:55:26,158mA,98%

2010/11/18 09:56:26,139mA,98%

2010/11/18 09:57:26,130mA,98%

2010/11/18 09:58:26,117mA,99%

2010/11/18 09:59:26,115mA,99%

2010/11/18 10:00:26,108mA,99%

2010/11/18 10:01:26,96mA,99%

2010/11/18 10:02:26,91mA,99%

2010/11/18 10:03:27,79mA,99%

2010/11/18 10:04:27,82mA,99%

2010/11/18 10:05:27,78mA,100%

2010/11/18 10:06:27,70mA,100%

2010/11/18 10:07:27,67mA,100%

2010/11/18 10:08:27,64mA,100%

2010/11/18 10:09:27,61mA,100%

2010/11/18 10:10:27,58mA,100%

2010/11/18 10:11:27,54mA,100%

2010/11/18 10:12:27,52mA,100%

2010/11/18 10:13:28,49mA,100%

2010/11/18 10:14:28,48mA,100%

2010/11/18 10:15:28,46mA,100%

And it would go on to 0ma in the end, but the light is still amber and it's still charging.

So something in the ex batt driver doesn't like default stock batteries I'd say..
[HD2 Android SD Development] hastarin:
It should go until you see 4mA (depending how often you log) then 0mA and show as full. I have the eb kernel on my phone at the moment so I'll test things myself as well overnight and post my findings here.
[HD2 Android SD Development] LittleH79:
my bad, gonna let sit out till the end this time.

Reporting back later..