yashsingh1/xdaforums huggingface dataset:
[Galaxy Tab 10.1 Android Development] AAccount:
Yes, it will effect all stock roms. The work around would be that people on stock rom need to charge with the tablet turned on. You can turn the screen off like it's on standby/idle mode. Unfortunately, I don't have the time to add features to the build script to build 4 kernels so I'm afraid I'll have to make the compromise and let the cm rom get the "charging mode working properly" feature. However, on the GT8.9 kernel i'm leaving charging mode for stock rom since most people over there use stock roms. I can do that because the GT10.1 and GT8.9 use different battery drivers. However, to make different charge modes for

the same

gadget would require swapping the same file out.

Sorry for the inconvenience. If this was still the summer holidays I'd probably have the build script edited and cranking out 4 kernels by tomorrow afternoon :( As a beginner new to kernel deveopment AND bash scripting, these kinds of script tweaks take a while to get working *exactly correct* without unusual side effects. :(
[Galaxy Tab 10.1 Android Development] Benzoman:
+1

I guess I'm lucky. I'm running V1.7 A1-p4-1.7-wifi.zip

I don't have any issues with charging on or off. Icons appears as they should and actual charging is working as it should.

Guess I should just stay on V1.7 unless there are some major improvements in updates for CM versions to get me to switch from Toldo's rooted stock ICS.
[Galaxy Tab 10.1 Android Development] AAccount:
You have no problem because you are on stock rom and A1 v1.7 is setup to charge correctly on stock rom.

Sent from my GT-P7510
[Galaxy Tab 10.1 Android Development] djmatt604:
Likely the same story for me then. I am on Infamous2 1.2 which is based on stock LPL 4.0.4 and running 1.6.4 on it. I always shut my tablet off to charge it and I never have a problem. I'm super happy with the performance.
[Galaxy Tab 10.1 Android Development] Blindi1985:
3G dont Work on my P7500 with 1.2.1 :(
[Galaxy Tab 10.1 Android Development] AAccount:
Oops, forgot to swap out files to do 3G. Will upload a corrected one after trying gpu oc. 1.2.1 is a very minor update anyways.
[Galaxy Tab 10.1 Android Development] AAccount:
I'm giving it a shot but how do I prove that it works or doesn't work? I'm doing tests using the GL Benchmark . Should there be a noticeable difference in scores comparable to the OC done? For example 400MHz OC from 333MHz stock should give a 120% score increase? Wikipedia says stock is 333 and the best ever made was 400MHz released for this one tegra2 device I've never heard of.
[Galaxy Tab 10.1 Android Development] jaswinky:
Ok, you will note that batt_improper_ta is in a object named info, so I think maybe this is only for information, the icon set and so on...

I've test, if you plug the data wire with the oficial charger, the state in settings->battery turns from uncharging to AC (also if I connecte it to a external battery using the adaptor simulatin samsung charger); if I plug the data cable with no adaptors to the external battery or to a non-samsung wall charger, the state turns to Charging (USB).

Now, you will see there is this function in the code:

static void p3_get_cable_status(struct battery_data *battery)

{

if (check_ta_conn(battery)) {

if (battery->pdata->check_dedicated_charger())

battery->current_cable_status = CHARGER_AC;

else

battery->current_cable_status = CHARGER_USB;

...

...

}

this is another call to check_dedicated_charger() function, so surely here could be the problem... If you set here allways battery->current_cable_status = CHARGER_AC instead of = CHARGER_USB even if the function return 0 (no samsung charger), The system will allways think there is a original samsung charger (or I hope so...).:confused:

With this change it is better to undo my previous recomended change (set p3_set_charging(battery, 2); again) because USB charging now will never be set. Your change commenting //battery->info.batt_improper_ta = 1; line will still be necessary to prevent the USB charging error icon will appear, at least...

Regards,
[Galaxy Tab 10.1 Android Development] Blindi1985:
Take your time, the main thing is it all to your satisfaction
[Galaxy Tab 10.1 Android Development] AAccount:
It is probably not a good idea to always set the status as CHARGER_AC otherwise it will always try and draw 2A thinking it is plugged into the box charger. I think newer computers have high current USB ports by my trusty compiler/only laptop doesn't have that. I'm not sure if there is a failsafe somewhere else to check if the power source can really do 2A but I don't want to learn that one the hard way...
[Galaxy Tab 10.1 Android Development] jaswinky:
Mmm... not sure... the 2A is a hardware limitation... really this value in the code is only usefull to identify the charger device... If the charger or the PC cannot give more than 0,1 or 1A, they will not give them...

If you want you can send mi a private with this change compiled and I'll test on my own risk... I could try it with a 0,5 wall charger I didn't use and It is not a problem form me to burn it... :D

Thanks!
[Galaxy Tab 10.1 Android Development] steveman29:
Man you are a genious! It worked! Before i was geting 26 fps on nenamark and now i get 31! It definitly works. Thank you!
[Galaxy Tab 10.1 Android Development] CazeW:
Good news everyone! I finally got 1.4GHz working. It turns out that pershoots voltages were correct after all. Why they didn't previously work was so simple that I felt like banging my head to the wall when I noticed it. The reason why it didn't previously work was this function:

static int tegra2_dvfs_rel_vdd_cpu_vdd_core(struct dvfs_rail *vdd_cpu,
struct dvfs_rail *vdd_core)
{
if (vdd_cpu->new_millivolts > vdd_cpu->millivolts &&
vdd_core->new_millivolts < vdd_cpu->new_millivolts + [b]120[/b])
return vdd_cpu->new_millivolts + [b]120[/b];

if (vdd_core->new_millivolts < vdd_cpu->millivolts + [b]120[/b])
return vdd_cpu->millivolts + [b]120[/b];

return vdd_core->new_millivolts;
}

That is the function that handles the relation between the voltages for cpu, core and aon. Why pershoots voltages didn't work is because of the values in that function that dictate that the core and aon voltage has to be 120mV higher than cpu voltage. When I was browsing through pershoots git I noticed this:

static int tegra2_dvfs_rel_vdd_cpu_vdd_core(struct dvfs_rail *vdd_cpu,
struct dvfs_rail *vdd_core)
{
if (vdd_cpu->new_millivolts > vdd_cpu->millivolts &&
vdd_core->new_millivolts < vdd_cpu->new_millivolts + [b]50[/b])
return vdd_cpu->new_millivolts + [b]50[/b];

if (vdd_core->new_millivolts < vdd_cpu->millivolts + [b]50[/b])
return vdd_cpu->millivolts + [b]50[/b];

return vdd_core->new_millivolts;
}

So in other words pershoot lowered the requirement so that core and aon voltages only need to be 50mV higher than cpu voltage and that is how he got them working.

So basicly AAccount you only need to change those 120 values to 50 in your broken1.4 tegra2_dvfs.c and you'll have a working 1.4GHz OC.

Now I only need to get Voodoo Screen Tuning working and I'm one happy programmer. :fingers-crossed:
[Galaxy Tab 10.1 Android Development] Blindi1985:
Now everything works fine. 3G too ;)

Thanks for your great work, and keep it up.
[Galaxy Tab 10.1 Android Development] AAccount:
Thank you so much for that helpful hint. You're right, the change was so obvious it's truly a Kowalski head banging moment. (See Penguins of Madagascar to get the Kowalski reference) I tried it with pershoot's voltages but I got stuck on the galaxy tab 10.1 screen. Then, I tried it with samsung stock voltages but just with a longer potential cpu voltage list. That worked for me. Now, to test it...
[Galaxy Tab 10.1 Android Development] darren.hoo:
will GPU oc make the tablet play high profile video?
[Galaxy Tab 10.1 Android Development] AAccount:
What is high profile video? If it's a codec related issue try using Mobo Player on hardware decoding. That's what I use to play videos the stock android won't do.

GPU overclocks the GPU much like overclocking a CPU. They have the exact same results: the processors run at higher frequencies and get more done at once. GPU OC should help a little in games.
[Galaxy Tab 10.1 Android Development] Blindi1985:
Thanks again for your Great Work. 1.4 rocks with 1.4GHz
[Galaxy Tab 10.1 Android Development] steveman29:
Everything is working ok with 1.4 too. Just one thing. Could you support in a future version the application "current widget" like pershoot does? It shows the current drain or charge of the device.
[Galaxy Tab 10.1 Android Development] jaswinky:
I didn't know that app (current widget)... so cool... It would be very usefull if it worked for testing the USB charging!! But it doesn't...
[Galaxy Tab 10.1 Android Development] steveman29:
Yes it is very useful and cool but only works with pershoot's kernels in this device.
[Galaxy Tab 10.1 Android Development] jaswinky:
Perfect working on wifi only tab version at 1,4GHz... Asphalt 7 now goes great and at same performance as SGS2 so that I can make better race by WiFi !!! Thanks CazeW and AAccount!!!

AAccount: I've seen that you didn't undo the change on the p3_set_chg_en() function setting back the second line p3_set_charging(battery, 1); to p3_set_charging(battery, 2); It didn't give us any result, so I think it's better to get back the original code.

Thanks again!!
[Galaxy Tab 10.1 Android Development] n1vlek:
When flashing tab with Stock+V1.4, screen stuck at Samsumg
[Galaxy Tab 10.1 Android Development] AAccount:
Ok, looking into it.
[Galaxy Tab 10.1 Android Development] wtgserpant:
@aacount and everyone else

Preshoot took down cm9 09012012 build, so if anyone with a copy uploads it, then many like me can easily use A1 kernel ........ but otherwise we will have to wait until preshoot gets his computer fixed!
[Galaxy Tab 10.1 Android Development] AAccount:
Ill put it on mediafire when i have time tomorrow.

Sent from my GT-P7510
[Galaxy Tab 10.1 Android Development] wtgserpant:
As usual......... u r awesome bro! :D
[Galaxy Tab 10.1 Android Development] grzwolf:
navigate to sueders post on

http://xdaforums.com/showthread.php?t=1670964&page=54
[Galaxy Tab 10.1 Android Development] hanspampel:
@AAccount

A little confusion to me. Is the cm9 Kernel you introduce in OP, the stock kernel of cm9? Im asking, why im on pure AOSP and want to try your kernel. The KernelCM9-3G.zip works, but theres no 1.6Ghz oc. So i think i have to flash this one A1-p4-1.7.2-3G.zip. But this is not booting. Stucks on Samsung Logo. Or is this only für Stock ICS ROMs what i thought first?:confused: Enlighten me.
[Galaxy Tab 10.1 Android Development] AAccount:
It is supposed to work on cm9 that supports the 3.1 kernel. Don't download the kernel through the xda app. I got a corrupted download. Do it through the browser. Just tried to install the 1.7.2 kernel again and it booted fine.

Sent from my GT-P7510
[Galaxy Tab 10.1 Android Development] jaswinky:
AAccount, sorry for my confusion but, then, does 1.7.2 manage the charging on stock roms by different way than 1.7 needing to set the tab swithced on?

If so, I would condider 1.7.2 only compatible for CM.

Thanks,
[Galaxy Tab 10.1 Android Development] AAccount:
Yes, 1 line is changed so that it will charge properly when turned off in cm roms. All the other features still work on both cm and stock ROMs. Stock rom can still be charged turned on.

Sent from my GT-P7510
[Galaxy Tab 10.1 Android Development] hanspampel:
Hmm strange, i reflashed the kernel and it works now.:)
[Galaxy Tab 10.1 Android Development] jaswinky:
Thanks but, can stock roms be charged turned off as same way than prior versions? Nothing changes for stock roms?

Enviado desde mi GT-P7510 usando Tapatalk 2
[Galaxy Tab 10.1 Android Development] AAccount:
Stock roms need to be charged turned on starting v1.7.2. Previous versions can do it turned off and on.

Sent from my GT-P7510
[Galaxy Tab 10.1 Android Development] cybersyx:
With the last cm9 nightly and last kernel a1 1.7.2 the wifi doesnt work.Any idea?
[Galaxy Tab 10.1 Android Development] AAccount:
Read the cm notice in the first post for how to tell.

Sent from my GT-P7510
[Galaxy Tab 10.1 Android Development] jaswinky:
Thanks. Maybe you should write this as changelog in first post...

Enviado desde mi GT-P7510 usando Tapatalk 2
[Galaxy Tab 10.1 Android Development] AAccount:
It is. Anyways here's the pershoot 9/01 cyanogenmod 9 build.

3G

Wifi

It's google docs, not mediafire. For some reason, mediafire gave me 20kbyets/sec upload speed.

-------------------------------------------Afterthought--------------------------------------------------------------

Can anybody confirm that the twrp image restore function works? It will save me a lot of time.
[Galaxy Tab 10.1 Android Development] cfao:
@AAccount

Regarding the charging issue, what happens if you're on stock and the battery discharges completely to the point it won't turn on and shows the red battery icon?
[Galaxy Tab 10.1 Android Development] AAccount:
?? Youve run down to 1% and your tablet refuses to turn on and will only do low power charging mode? In that case let it charge to like 8% then turn it on. Im not sure what this has to do with my kernel.

Sent from my GT-P7510
[Galaxy Tab 10.1 Android Development] jaswinky:
Ok, maybe here could be a confusion... some of us understood from your words that in 1.7.2 stock roms can not charge the tablet turned it off... is it right or we are wrong?

Enviado desde mi GT-P7510 usando Tapatalk 2
[Galaxy Tab 10.1 Android Development] cfao:
Exactly what I meant. Just want to make sure before flashing that this is not a possible outcome.
[Galaxy Tab 10.1 Android Development] scaryshark:
How about this.

If you are on cm flash 1.7.2 if TW then 1.7 and there are no charging problems!
[Galaxy Tab 10.1 Android Development] mike2nl:
From the first posting:

Hi AAccount,

one question about that in the 1st post:

that means that you will make NO more kernels for the stock?

As sample the JellyBeanRom ICS.
[Galaxy Tab 10.1 Android Development] AAccount:
What he said.

Sent from my GT-I9300
[Galaxy Tab 10.1 Android Development] AAccount:
We'll see eventually. At this point there arent really any new feature requests and i dont really have any new ideas.

Sent from my GT-I9300
[Galaxy Tab 10.1 Android Development] scaryshark:
@AAccount

;)
[Galaxy Tab 10.1 Android Development] RalphDe:
Hi,

i am a little bit confused. I use the JellyBeanRom ICS v6 Rom on my 7510. What a Kernel can i use? At time i have A1 v2.2. But i think the 1.6.4 is newer. Right? With the 1.6.4 i have use the Rom bevor this. I dont know what Kernel is good for my Tab. I read from CM and JB and Tab 7.8. No way. :(

Please help.

Thanks
[Galaxy Tab 10.1 Android Development] Benzoman:
I'd recommend using V1.7 or at least V1.6.4 just choose the version you need for wifi or 3g.

V1.7 is the newest for stock based roms such as JellyBeanROM ICS V6.

If you're not using CM roms there is no reason to use anything above V1.7 yet.
[Galaxy Tab 10.1 Android Development] clemsyn:
Hi, Im a kernel dev for the Nexus7, Gtablet, TF101 but I dont own this particular device so I could be wrong here. The next step after 400 gpu for the tegra 2 is unfortunately 600 mhz. This requires an increase in vcore/vrail voltage, and even then some tegra 2 cant handle the speed. You see the max pll_c set at the top slot is 600mhz. The GPU works with a divider of 1.5 (400mhz gpu) or divider of 1 (600mhz GPU). If you guys are interested in trying out the 600 mhz GPU, PM me and I'll give you the settings since I got it running on Gtablet using TeamDRH ROM and kernel. Unfortunately, even some devs at TeamDRH can't handle the 600 mhz GPU.

I believe we can run the top at 533 GPU but we need to change the top slop from of dvfs to 533 and not 600 but I haven't gone to look at this.
[Galaxy Tab 10.1 Android Development] AAccount:
Maybe on Friday. I have too much school work during the week :(

Sent from my GT-I9300
[Galaxy Tab 10.1 Android Development] AAccount:
In general, if anybody has feature requests, consider the fact that I only have friday afternoon/evening and random hours on Saturday to work on the kernel so please put feature requests up on Monday or early in the week so I can at least think about it during the week.
[Galaxy Tab 10.1 Android Development] Braaank:
I have big problems using this rom, first of all wifi doesnt work, and video recorder doesn work too.

i dont know if i did something wrong or i download the bad kernel. Im tried it on CM10 by pershoots
[Galaxy Tab 10.1 Android Development] hanspampel:
It doesnt work on CM10. Which CM10 Build did you flash? Pershoots from 16-08? It doesnt use a 3.1 Kernel. So it cant work. Dont flash something if you dont know what it is!!!
[Galaxy Tab 10.1 Android Development] Dalabad:
~problem solved~
[Galaxy Tab 10.1 Android Development] :
Hey guys,

On 1.7.2, I have a problem. If I'm charging my tab, via AC outlet, The lockscreen is unresponsive, even after a reboot. I had to go back to 1.6.x
[Galaxy Tab 10.1 Android Development] AAccount:
Read the info on the first page. Notice how the thread title says **READ NOTICE**

Sent from my GT-P7510
[Galaxy Tab 10.1 Android Development] danielsf:
May I ask if you got a chance to look into the higher GPU frequencies that clemsyn described? :) As personally I care more about gpu clock speed than cpu clock speed as a good gpu overclock is noticeable straight away in many games :)
[Galaxy Tab 10.1 Android Development] AAccount:
Sorry, i didn't have any time this weekend to work the kernel. Probably wont get a chance until this Friday.

Sent from my GT-P7510
[Galaxy Tab 10.1 Android Development] pege63:
How to get access to the performance menu in system menu?
[Galaxy Tab 10.1 Android Development] wtgserpant:
This is only for CM9, read the first post
[Galaxy Tab 10.1 Android Development] Braaank:
Right, but some people said that i can use A1 Kernel on CM10 is it a version for a different ROM?
[Galaxy Tab 10.1 Android Development] wtgserpant:
Mic and some other things won't work ( and some other stuff) . So its ll boot but if your OK with the problems, then u can go ahead and flash it and if ur unhappy u can just reflash the cm10 rom
[Galaxy Tab 10.1 Android Development] AAccount:
Hi everyone. I managed to squeeze in a bit of time to try to overclock the gpu higher. Unfortunately, it is really determined not to go higher than 400MHz. I tried changing pll_m's frequency table so the 600MHz one would be commented out and only the 660MHz one showing. Since 400 is 2/3rds of 600 I tried setting the gpu at 440MHz (following the same math). Unfortunately it would not do this. I also tried lowering pll_m's max rate to 660 MHz but that didn't work either. I did remember to set 400MHz in the dvfs but... no luck. I'm not sure how dependent or related the gpu is on pll_m but I tried it as a suggestion from clemsyn.

Any more ideas??
[Galaxy Tab 10.1 Android Development] moodloid:
Hey :)

Tabs restarts instead of turning off while charging on cm9 :( please do sth + when its connected to PC it freezes when you turn p7500 on :( thnx AAccount
[Galaxy Tab 10.1 Android Development] AAccount:
You need to flash v1.7.2 for proper cm9 charging.

Sent from my GT-I9300
[Galaxy Tab 10.1 Android Development] osama_talha:
Has anyone tried this on the latest pershoot build 10/03? I have flashed the kernel but it wont install. Still showing CM kernel in settings -> about tablet.
[Galaxy Tab 10.1 Android Development] AAccount:
Tried it a few nights ago. Working fine for me.
[Galaxy Tab 10.1 Android Development] osama_talha:
Then what am I missing? Tried again and again but no success! :(
[Galaxy Tab 10.1 Android Development] angiotell:
could you tell me how to flash this kernel, please?
[Galaxy Tab 10.1 Android Development] AAccount:
Flash from recovery. If you need step by step instructions on how to flash from recovery, I suggest you do the appropriate reading.
[Galaxy Tab 10.1 Android Development] dcorrea:
Reboot into recovery and flash like a rom.
[Galaxy Tab 10.1 Android Development] dcorrea:
When using this kernel with the Ganborou rom, the rom will not boot if I have the tab docked in the Samsung keyboard dock. When i remove the tab from the dock and boot up, the rom will not recognize any of the keys on the keyboard as inputs. Anyway to get this fixed? I removed the A1 kernel and the keyboard works fine again so it is definitely kernel related.
[Galaxy Tab 10.1 Android Development] AAccount:
I have no dock so unfortunately, I can't fix it. :(
[Galaxy Tab 10.1 Android Development] Ostrich Egg:
Awesome kernel, running it on a 3.1 kernel CM10 build. The 1.6ghz cpu and overclocked gpu make a big difference. Keep up the good work. :good:
[Galaxy Tab 10.1 Android Development] jiri.hlavacek:
USB speakers support

Just the question:

Is it possible to insert support for USB audio output somehow?

JB could have USB audio support inside, so I think, there must be a way to compile kernel module or something similar also for this ICS-like kernel.

I really need to use Logitech USB speakers with tablet.
[Galaxy Tab 10.1 Android Development] AAccount:
Is there someone else's kernel I can reference for the feature? It would be really hard for me to write the code from scratch.
[Galaxy Tab 10.1 Android Development] CazeW:
I looked at the kernel sources and there's code for USB audio enabled as default so in theory it should already work for kernel part at least. I did some reading on how it's done on the S3 and it looks like that you still need software to enable it.

EDIT: Correction. It doesn't need to be enabled separately from software, it's enough that you have a USB OTG cable and a device that sends the correct signal. I don't know if it works on our tab though as I don't have a DAC to test with.
[Galaxy Tab 10.1 Android Development] AAccount:
The only accessory i have is a bluetooth keyboard so i cant really test the accessories.

Sent from my GT-I9300
[Galaxy Tab 10.1 Android Development] aelsharawi:
Is it possible to develop a kernel for cm 10 ?

U can have the source from droidbasment dated 13 October '

I tried your cm 9 over it it boots but without WiFi ,I didn't test other things

Thx in advance
[Galaxy Tab 10.1 Android Development] Ostrich Egg:
Ha, I was gonna come here and ask exactly this. A CM10 kernel would be just awesome. No 1.6ghz and no GPU overclock is killing me ;)
[Galaxy Tab 10.1 Android Development] nazix:
Thank you for kernel that best performance for Tab 10.1
[Galaxy Tab 10.1 Android Development] AAccount:
Do not flash this kernel on the new 10/16 cm 10 build. Your wifi will not work. The kernel requires a small fix which I will do on Friday. I can confirm the small fix is easy to do and does work. (It's working right now).
[Galaxy Tab 10.1 Android Development] Ostrich Egg:
Probably a dumb question, but do you build from CM10 (pershoot) kernel source or Samsung ICS kernel source?
[Galaxy Tab 10.1 Android Development] arkin56:
can this kernel do a force ac? cause i have this problem, whenever i plug my tab unto the wall charger that came with the tab instead of prompting me with an AC CHARGING, it keeps saying USB CHARGING, don't know what happen? last thing i know it was working? so can this kernel do an FORCE AC, please help.
[Galaxy Tab 10.1 Android Development] jaswinky:
Probably you have your samsung charger damaged, but with prior 1.7 or 1.6 4 versions should do what you need...

Enviado desde mi GT-P7510 usando Tapatalk 2
[Galaxy Tab 10.1 Android Development] AAccount:
It's supposed to say usb charging. Check to make sure it is actually charging. I think I fixed that problem a while ago by switching the driver to p4_battery instead of p3_battery. Forced ac charging is kinda a dead topic.

I build from Samsung's source. I add in the patches one by one by hand (so to speak).
[Galaxy Tab 10.1 Android Development] arkin56:
i think my charger is busted, might try for other charger, to make sure if it's the charger or battery acting up, did go back to stock, problem is still there, might be the battery or charger problem.
[Galaxy Tab 10.1 Android Development] AAccount:
Stock kernel doesnt have usb charging enabled. I copied pershoot's usb charging mod except made it automatic so you didnt have to activate it through the /sys folder.