yashsingh1/xdaforums huggingface dataset:
[Galaxy Ace S5830 Original Android Development] mdfzhi:
thats because i rewrite the battery driver to make it more precise.

default stock driver uses stupid algorithm that calculates battery level by jumpy steps.

it calculates from 1%-4% then stop. 1% and 4% is accurate level while 2% and 3% is based on loose calculation.

then it continue to calculates again base on steps from 5%-19%, 20%-34%, 35%-49%. 50%-64%, 65%-79% and 80%-99%

for anyone who knows c language, here it is

int calculate_batt_level(int batt_volt)
{
int scaled_level = 0;

//if(batt_volt >= BATT_FULL_VOLT) //99%
if(batt_volt >= BATT_RECHAR_VOLT) //100%
{
scaled_level = 100;
}
else if(batt_volt >= BATT_LEVEL6_VOLT) //99% ~ 80%
{
//	scaled_level = ((batt_volt -BATT_LEVEL6_VOLT+1)*9)/(BATT_FULL_VOLT-BATT_LEVEL6_VOLT);
scaled_level = ((batt_volt -BATT_LEVEL6_VOLT+1)*19)/(BATT_RECHAR_VOLT-BATT_LEVEL6_VOLT);
//	scaled_level = scaled_level+90;
scaled_level = scaled_level+80;
}
else if(batt_volt >= BATT_LEVEL5_VOLT) //79% ~ 65%
{
scaled_level = ((batt_volt -BATT_LEVEL5_VOLT)*15)/(BATT_LEVEL6_VOLT-BATT_LEVEL5_VOLT);
//	scaled_level = scaled_level+70;
scaled_level = scaled_level+65;
}
else if(batt_volt >= BATT_LEVEL4_VOLT) //64% ~ 50%
{
scaled_level = ((batt_volt -BATT_LEVEL4_VOLT)*15)/(BATT_LEVEL5_VOLT-BATT_LEVEL4_VOLT);
//	scaled_level = scaled_level+50;
scaled_level = scaled_level+50;
}
else if(batt_volt >= BATT_LEVEL3_VOLT) //49% ~ 35%
{
scaled_level = ((batt_volt -BATT_LEVEL3_VOLT)*15)/(BATT_LEVEL4_VOLT-BATT_LEVEL3_VOLT);
//	scaled_level = scaled_level+30;
scaled_level = scaled_level+35;
}
else if(batt_volt >= BATT_LEVEL2_VOLT) //34% ~ 20%
{
scaled_level = ((batt_volt -BATT_LEVEL2_VOLT)*15)/(BATT_LEVEL3_VOLT-BATT_LEVEL2_VOLT);
scaled_level = scaled_level+20;
}
else if(batt_volt >= BATT_LEVEL1_VOLT) //19% ~ 5%
{
scaled_level = ((batt_volt -BATT_LEVEL1_VOLT)*15)/(BATT_LEVEL2_VOLT-BATT_LEVEL1_VOLT);
scaled_level = scaled_level+5;
}
else if(batt_volt > BATT_LOW_VOLT) //4% ~ 1%
{
scaled_level = ((batt_volt -BATT_LOW_VOLT)*4)/(BATT_LEVEL1_VOLT-BATT_LOW_VOLT);
scaled_level = scaled_level+1;
}
else
{
if( msm_batt_info.charger_type == CHARGER_TYPE_NONE ) scaled_level = 0;
else scaled_level = 1;
}

//printk("[Battery] %s : batt_volt %d, scaled_level %d\n", __func__, batt_volt, scaled_level);

return scaled_level;
}

dont worry, just charge to full 100% and see how it drain after that.
[Galaxy Ace S5830 Original Android Development] smorz:
v1.1 patch installation aborted here.

I'm installing over cm 7.1 (with v1.0 kernel, of course)
[Galaxy Ace S5830 Original Android Development] mdfzhi:
thats the patch to apply on whole 300mb kernel sourcecode and then compile it, not to apply on precompiled kernel or to flash directly into phone. if u not a dev u dont need it.
[Galaxy Ace S5830 Original Android Development] dragonnn:
Not patch!! Patch is for developers that will try to implicate that changes to his kernel, flash zImage-Mod-v1.1.

EDIT

an0nym0us_ is the kernel source just the Linux kernel, or it is a special modified source, where can I found it?
[Galaxy Ace S5830 Original Android Development] smorz:
My bad, I was too excited for the new version release that i didn't even think about what i was flashing :)
[Galaxy Ace S5830 Original Android Development] nishantmnit:
One qq- how to disable cm set CPU? Cant see an option in cm settings. Please advise.

-Nisha
[Galaxy Ace S5830 Original Android Development] mdfzhi:
https://opensource.samsung.com/community.do?menu=1&projId=72
[Galaxy Ace S5830 Original Android Development] alexnm:
Hi! After installing 1.1 I got a lot of reboots, I had to do a factory reset. Luckily I made a TB backup yesterday :)

I'm on CM 7.2 and applied the kernel over v1.
[Galaxy Ace S5830 Original Android Development] mdfzhi:
u could always reflash with previous version if current version gives u troubles. or just make cwm backup and restore. cwm backup is a must before everything u want to flash ;)

btw as already stated on first post, make sure u dont have or just turn off any autorun scripts or apps that set the cpu/governor on boot before flashing kernels, including setcpu, nofrilss cpu control, or even if u set the cpu from cm setting, revert it back to default as those might interfere with new kernel that had something new implemented :)
[Galaxy Ace S5830 Original Android Development] alexnm:
Yeah, I know it's entirely my fault. I wast so anxious to try you kernel that I flashed it right away :D

Good work, thank you.
[Galaxy Ace S5830 Original Android Development] 123r4ka456:
i have 2 question.....

1. is this a OC kernel??? i can't find any information in 1st post/page

2. will you include UV/OV in future release???
[Galaxy Ace S5830 Original Android Development] mdfzhi:
btw dragonnn, regarding libcap i dont think kernels and/or android supports it by default. maybe need porting/patching or compile libcap binary (if its a binary) specifically for arm

https://groups.google.com/group/android-ndk/browse_thread/thread/c65013ca4bdb778b?pli=1

http://blog.umitproject.org/2011/05/libpcap-for-android.html
[Galaxy Ace S5830 Original Android Development] madman:
how much you have underclocked axi bus??
[Galaxy Ace S5830 Original Android Development] mdfzhi:
1- no its not.

2- i already did (by theory) undervolt all those 10 cpu frequencies, i just didnt say it out loud because personally i dont feel any much difference. maybe somehow the kernel by default got automatic voltage control that sets the voltage based on cpu loads that it maybe revert my changes to default. btw automatic voltage control do exist in armv7 cpus, i just dont know if our armv6 msm7227 supports it, or even if it support it, i still dont know if its activated or not. really, really complicated situation :p

btw @madman_amit, from max 200000khz to max 160000khz and apparently it works judging by dmesg.
[Galaxy Ace S5830 Original Android Development] dragonnn:
Not libpcap, the are two different libraries:

core/libpcap 1.2.1-1 [installed]
A system-independent interface for user-level packet capture
core/libcap 2.22-2 [installed]
POSIX 1003.1e capabilities

I have already build this library and it binaries for ARM (using smitna script that allows you to compile Linux programs for Android), only problem is that kernel doesn't support it, don't really know why, because since 2.6.32 ale Linux kernel should have it enabled http://cateee.net/lkddb/web-lkddb/SECURITY_FILE_CAPABILITIES.html the option CONFIG_SECURITY_FILE_CAPABILITIES could be find in older kernels, but newer kernels don't have it, can it by that Google or Samsung have disabled this option it the kernel (by changing the kernel code)?
[Galaxy Ace S5830 Original Android Development] 123r4ka456:
o.k

thanks.....finally i can sleep
[Galaxy Ace S5830 Original Android Development] mdfzhi:
my bad :p

btw even if the CONFIG_SECURITY_FILE_CAPABILITIES doesnt exist in kernel defconfig doesnt mean its removed. i do know for facts that there are bunch of features that were activated by default in our kernel in its kconfig, but doesnt have any reference whatsoever in the defconfig file.
[Galaxy Ace S5830 Original Android Development] b00bs:
OMG. Thank you for the update! I think it's ready for UV for future update..LOL :D
[Galaxy Ace S5830 Original Android Development] mdfzhi:
wow ur good with grep :D

nope, it shouldnt always be in the /arch/arm directory.

the battery driver that i've modified located in /drivers/power, cpu governor modules located in /drivers/cpufreq, and disk iosched located in /block. the reference being outside /arch/arm directory doesnt mean it doesnt work with arm architecture ;)
[Galaxy Ace S5830 Original Android Development] PsychicJian:
All great, for now.

Thanks you! :D
[Galaxy Ace S5830 Original Android Development] dragonnn:
I know that the drivers and other are outside the /arch/arm, but all the files that I had found are in /arch, I think it doesn't make difference when I modify for example the arch/powerpc/configs/amigaone_defconfig because it is for power pc. It Ace architecture are in /home/dragonn/Pulpit/ace_kernel/kernel/arch/arm/mach-msm ?
[Galaxy Ace S5830 Original Android Development] mdfzhi:
yes, most of ace's crucial reference located in /arch/arm/mach-msm.

btw from this thousands of thousands devs and users of android, surely ur not the first person who tried to enable that libpcap thingy?

surely there must be someone before u who tried, and surely there must be a kernel here in xda that successfully enable it if its possible. search for that particular kernel and it doesnt matter if its for other device, we just need to know howto enable it. if that particular kernel got source in github its even better

edited: already found thread here in xda regarding that libpcap, and judging by their discussion few had succeeded. dont know what devices or kernel they use because its in main general forum but its worth to mention anyway.

http://xdaforums.com/showthread.php?t=1010391
[Galaxy Ace S5830 Original Android Development] dragonnn:
Mostly when you search for libcap on Android you find some thing about libpcap (I made this mistake again:p). At first I will try to add the settings in /arch/arm/mach-msm/Kconfig, will see what will happened, but will it try tomorrow.

EDIT

I have put libcap word into xda search, and what I find https://www.google.com/cse?q=libcap...=ISO-8859-1#gsc.tab=0&gsc.q=libcap&gsc.page=1 only one topic isn't my :p.
[Galaxy Ace S5830 Original Android Development] mdfzhi:
yeah, googling for libcap for android mostly gave libpcap results, and searching on xda just gave results of this thread and another thread where u who also mention it. what a bummer :D
[Galaxy Ace S5830 Original Android Development] Taracair:
Which one is faster? 1.0 or 1.1?

Have you experienced data lose because of wrong reboot/taking off the battery/sth else?
[Galaxy Ace S5830 Original Android Development] djsky2011:
Kernel seems really stable, well done mate. The governors seem to limit the CPU speed to between 240-710 and rarely seem to hit 800 mhz even under heavy load tho?
[Galaxy Ace S5830 Original Android Development] PsychicJian:
Guys, when i turn on wifi my Ace going to reboot. Any advice?
[Galaxy Ace S5830 Original Android Development] CallMeVentus:
I wanna use this kernel......just that there's no OC :/

Herpderp Adreno + Tegra.
[Galaxy Ace S5830 Original Android Development] djsky2011:
Kernel does not support m3u8 file extensions
[Galaxy Ace S5830 Original Android Development] mdfzhi:
did u try any player that supports vitamio?

http://vov.io/vitamio/

https://market.android.com/details?id=io.vov.vitamio.v6vfp
[Galaxy Ace S5830 Original Android Development] alley23:
How to install the patch?...:)
[Galaxy Ace S5830 Original Android Development] mdfzhi:
u dont. read the bold part above the attachment.
[Galaxy Ace S5830 Original Android Development] gengi:
For me v1 seems faster than v1.1. Using deodex vo-1 updated.
[Galaxy Ace S5830 Original Android Development] galaningenieros:
Great Job anonymous. But i cant play dead space, it doesnt boot up. I can play with ketuts kernel, maybe because of oc?
[Galaxy Ace S5830 Original Android Development] mdfzhi:
try different io scheduler, also different cpu governor. both do have some impact if you found the right combination for your needs. i didnt add all those just for fancy ;)
[Galaxy Ace S5830 Original Android Development] madman:
v1.1 very good [as always:D]

as you have rewritten battery code.... drop from 100 to 86 was pretty fast for me and after that it was good even after many hours battery says 78 with some gaming and music..

in idle mode its eating very less power on your rom :D
[Galaxy Ace S5830 Original Android Development] invention:
Somehow version 1.1 doesn't want to work on my phone, while the previous one runs fine.

When I installed 1.1 I noticed that the phone keeps restarting. After one minute after locksreen appeared. But I'm happy with 1.0 so it's not an essential problem for me :)
[Galaxy Ace S5830 Original Android Development] mdfzhi:
so how about the battery? any better or worst for u guys?

mine just passing 2 days and still got 34% juice left. thats with light to medium usage. i dont use 3g, just 2g. a little sms, some music and around 30 minutes call. before it rarely survive a day and a half without recharge :)
[Galaxy Ace S5830 Original Android Development] alexnm:
For me it was the same, 15% in one minute, I got scared :P

But yes, after that it was pretty awesome, battery sucks like always, but the 1% thingy really works and I feel it more accurate.
[Galaxy Ace S5830 Original Android Development] mdfzhi:
a side note, because now that the battery report is true 1%, when it reaches below 10% u might wanna search for chargers fast.

on stock battery driver, codeaurora write the code to make it last longer on 4%. thats why u might notice that the battery stays much longer on 4%, it because its actually lying all along. while it shows 4% maybe it actually on 15%. codeaurora make it to drain fast on upper 100$ to 20% and much slower drain from 20% and below
[Galaxy Ace S5830 Original Android Development] madman:
and one more thing which you told me about battery life an0nym0us_ in cm roms...

yesterday after this kernel update flashed your rom and got this kernel battery was smooth..

today connected phone to pc and was did logcat... there are so many errors in frameworks that it might be main cause of our battery drains.. even your kernel made good improvements to battery that errors actually might suck up more juice than what we imagine....

after flashing your rom and kernel did a small antutu benchmark just for tp and was amazed to see something less than stock :eek::eek: on a cm..

really this changes in kernel if made to stock kernel can make hell of improvement for battery and performance
[Galaxy Ace S5830 Original Android Development] dragonnn:
an0nym0us_ I have some question to you:

1. The first is about the compile process. When I apply you patch on the sources, the make make_kernel_GT-S5830.sh and build the boot.img (will unpack yours, and change only the kernel) will I get a full working cm compatible kernel? Or need I do something too?

2. The second question is the "underclocked axi bus". Many user have report that the 1.1 is slower then 1.0. I think this same. And I think it makes problem when playing music, sometimes, but not often the music stops for a short time, some lag. Can you make a version of v1.1 without underclocked axi bus? I think you made this to get lower battery consumption but for my it's more important to have performance then battery. Long battery live is great but not when I makes lower performance. If I remove the lines:

@@ -778,8 +780,13 @@
&& t->ahbclk_khz > 128000)
t->axiclk_khz = 160000;
if (axi_200mhz && drv_state.max_axi_khz >= 200000
-	&& t->ahbclk_khz > 160000)
-	t->axiclk_khz = 200000;
+	&& t->ahbclk_khz > 128000)
+	t->axiclk_khz = 160000;
+	if (axi_200mhz && drv_state.max_axi_khz >= 160000
+	&& t->ahbclk_khz > 128000)
+	t->axiclk_khz = 160000;
+	// && t->ahbclk_khz > 160000)
+	// t->axiclk_khz = 200000;
}

In your patch will I get normal axi bus clock?
[Galaxy Ace S5830 Original Android Development] mdfzhi:
1. yes, u'll get fully working cm kernel.

2. u can apply my patch fully, then edit the msm_battery.c in that part to look like this and u'll get stock axi bus back

/* Fix up PLL0 source divider if necessary. Also, fix up the AXI to
* the max that's supported by the board (RAM used in board).
*/
axi_160mhz = (pll0_l == PLL_960_MHZ || pll1_l == PLL_960_MHZ);
axi_200mhz = (pll2_l == PLL_1200_MHZ || pll2_l == PLL_800_MHZ);
for (t = &acpu_freq_tbl[0]; t->a11clk_khz != 0; t++) {

if (pll0_needs_fixup && t->pll == ACPU_PLL_0)
SLOWER_BY(t->a11clk_src_div, 2);
if (axi_160mhz && drv_state.max_axi_khz >= 160000
&& t->ahbclk_khz > 128000)
t->axiclk_khz = 160000;
if (axi_200mhz && drv_state.max_axi_khz >= 200000
&& t->ahbclk_khz > 160000)
t->axiclk_khz = 200000;
}
[Galaxy Ace S5830 Original Android Development] dragonnn:
Only one question more, are you using the "Sourcery G++ Lite 2009q3-68 toolchain for ARM EABI" that is recommended, or another version of arm-none-eabi-i686-pc-linux-gnu? I ask for this because you add to Makefile the option -Wno-error=unused-but-set-variable but for my it make problems - get info that doesn't exist option like this.

---------- Post added at 09:04 PM ---------- Previous post was at 08:55 PM ----------

EDIT

And how long takes to build the kernel? I was really surprised when it finished after few minutes. Is this normal?
[Galaxy Ace S5830 Original Android Development] b00bs:
I'm just the only one, when press 'back' button at app it always back to first view of app?

For example when you press back button on Tapatalk at someone thread, you'll go back to first view of app, not to thread list :(

But I don't know it's because of kernel or ROM..I'm using CM7.2 vo deodexed.
[Galaxy Ace S5830 Original Android Development] madman:
about toolchain firstly i used which was specified in samsung original source code readme.. then also tried the latest one.. you can use latest one directly

and yes kernel compiles within some 10-15 min.. its android which takes more time to compile :D
[Galaxy Ace S5830 Original Android Development] dragonnn:
At least one do you mean arm-2011.09-70-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 or other, can you give me link to the newest version?

EDIT

First try and it works :D. The Quadrant doesn't really change, but I think the smoothness is better. Will see tomorrow what about the lag when play music. But libcap still not working :(. I have try to add in /arch/arm/mach-msm/Kconfig this lines:

config CONFIG_SECURITY_FILE_CAPABILITIES
default y

But I doesn't work. an0nym0us_ have you another idea how to enable libcap in kernel? For all the will try my creation http://dl.dropbox.com/u/1664131/zImage-Mod.v1.1-dragonn-speed.zip only difference to an0nym0us_ is the axis bus - I changed the frequency back to stock.
[Galaxy Ace S5830 Original Android Development] alexnm:
So... In words I can understand (:P) Does it mean more speed and less battery?? :confused:
[Galaxy Ace S5830 Original Android Development] athlon1:
igot a strange problem, after installing the kernel wehen textin an sms ive got a black stripe above the keyboard. When i tur the phone its not there after turning ist back to "normal" position it there again...
[Galaxy Ace S5830 Original Android Development] deathkroz:
Thanks for the update. But i am facing alternate touch problem. I am using latest cm7 by vo1.
[Galaxy Ace S5830 Original Android Development] black_1986:
i get wifi error on [Rom] BehradGH Rom Series | CyanogenMod 7.1 2.3.7 RC 2.2 "2011.10.21" "Cyano Ace"
[Galaxy Ace S5830 Original Android Development] madman:
you got latest kernel ?? as older kernels need wifi module to be pushed yourself
[Windows 8 General] EQUANCY:
Yes I've already read the anouncement, may be I've missed something.

But...

I think timing is a liitle bit soon for Windows 8 ARM section.

Most of created threads about Windows 8 desktop version which has not oficially released even there is no beta version.

BTW: ARM ( RISC ) version is not released too, except a few ES demonstrations.

I'm also exciting about Windows 8 Risc version but I also hope this section will not continue about x86 version.

So,

We'll see.

Regards.
[EVO 4G Q&A, Help & Troubleshooting] Rocklee99:
So, I've been able to root and flash phones and figure a lot out on my own and with the help of other, but i always wanted to know exactly how to develop roms and apps for these phones or any phones.

I can follow instruction right now, but thats about all, i wanted to know if there was someone who was able to kinda give me a step by step or guide on how to do so.

Does it take a lot of learning? Do i need to take a class or something? C++? i really dont know but id like to know and would like to make something of my own, if possible. I dont really understand codes too well enough to even do the "hello world" tutorial on my own without the tutorial itself...
[EVO 4G Q&A, Help & Troubleshooting] tropicalbrit:
I'm interested in the ROM-building part too. I suggest Lithid's thread here and I learned a little here too on the Android site...
[Samsung Epic 4G Touch] dtr145r:
:D

Hey guys I’ve been looking for a good VoIP caller for my phone that uses my sprint number for a while now, and I finally found one and I would like to share it with everyone

It’s called groove ip

click up ^^ here for the market link

It is a paid app, I found it on the market and I believe it wasn’t any more than 5 dollars.

set up:

I integrated Google voice on my account keeping my sprint number

I then downloaded Google voice on my phone and set it all up.

Then I downloaded groove ip and signed in.

you have options on when to use groove ip.

i have it auto start and set to ask when placing a call.

there is no battery drain when on standby.

obviously it uses some battery when placing or receiving calls

ive used it for a few days now, and i love it.

texts also work with the google voice app

Now you can use my phone even if you don’t have service as long as there is wifi !!
[Samsung Epic 4G Touch] Amd4life:
Yeah I like , since it allows you to use either your google voice or sprint number

I use my google choice to hand out to people to save my incoming minutes, and telemarketers lol
[Samsung Epic 4G Touch] dabezt1:
Ive had Groove Ip for a while and works great. I just switched back to Sprint but when i tried integrating my sprint number with google voice text messages would only go to the GV app and not directly to the phone. Or in some cases it would go to both, Calling worked fine.
[Samsung Epic 4G Touch] pojieps:
You can change that setting in google voice settings from your browser. Log into google voice, click the gear in the top right corner, click voice settings. Then you just need to check the box under your GV integrated number that says "Receive text messages on this phone"
[Samsung Epic 4G Touch] gedster314:
I like my google number better then my sprint number. I was able to get a local number; xxx-xxx-name, name being my first name.

Thumbs up for GrooveIP, been using it for a while.
[Samsung Epic 4G Touch] info[]box1:
Groove IP totally disappeared from Market w/my new$5!

Groove IP totally disappeared from the face of the Earth today(Android Market). I just paid $4.99 for the App two days ago and there gone. I know there not a fly by night app cause I have been hearing good things bout since my WinMo days. Is this want they do when they're updating the App? Is this normal or has me and many other been hood-winked??
[Android Q&A, Help & Troubleshooting] alex94kumar:
I was trying to look around for this, but couldn't find anything. Is it possible? And if it is, what are the apps/programs for this?
[Android Q&A, Help & Troubleshooting] alex94kumar:
Sorry for the bump (which im not even sure is allowed here), but I'd really like to know if this is possible
[EVO 4G Themes and Apps] dtr145r:
Hey guys I’ve been looking for a good VoIP caller for my phone that uses my sprint number for a while now, and I finally found one and I would like to share it with everyone

It’s called groove ip

click up ^^ here for the market link

It is a paid app, I found it on the market and I believe it wasn’t any more than 5 dollars.

set up:

I integrated Google voice on my account keeping my sprint number

I then downloaded Google voice on my phone and set it all up.

Then I downloaded groove ip and signed in.

you have options on when to use groove ip.

i have it auto start and set to ask when placing a call.

there is no battery drain when on standby.

obviously it uses some battery when placing or receiving calls

ive used it for a few days now, and i love it.

texts also work with the google voice app

Now you can use my phone even if you don’t have service as long as there is wifi !!
[EVO 4G Themes and Apps] ghostyroasty:
What about mms? I have Grooveip as well, but I'm hesitant to port my number completely to Voice. I use Voice for the voicemail and voip only... I use my Sprint number for everyday calling to other cells and sms/mms