yashsingh1/xdaforums huggingface dataset:
[Shield Tablet Original Android Development] Nikownzyu:
Ok so i check the freq in file manager system log you find more details about the benchmark like 3dmarks slingshot and whatnot so ok

I feel like an idiot could the reason be because i disnt flash the dtb? Because i forgot?

By the way i use AIDA64 and go to display the gpu goes from like 52 to 924 and i noticed while not using your kernel the maximum is like 824 witch is weird i could have SWORN on 5.0 stock kernel the maximum was 924 anyways it says it can go up to 924 but it stays at 524 i even run the device in max performance and run the benchmark and the app in MM's new multitask feature side by side and it stays at 524 while doing the most demading benchmark ever the 3dmark slingshot one also i benchmarked both using your kernel and not using your kernel and actually scored 80 points lower using yours (witch my highest is like 2480) but im sure this was because i didnt know kernel samepage merging was left on by default by the way is not good for benvhmarks obviously but good for games. But i will say the higher cpu overclock got me more fps in the CPU stress section of 3dmarks slingshot test (by the way all these tests are done on the 1440p one) basically what im getting at here is my device isnt overclocking but maybe thats because i didnt flash the dtb but i didnt think that mattered i will check back later after flashing it and seeing if my reaults are fortunate.

****EDIT**** so after flashing the dtb everything is still the same :/ what do you think im doing wrong is there any way i can send a system log or something i really want GPU overclocking :)
[Shield Tablet Original Android Development] philipp21897:
I didnt flashed the DTB and all is running fine and smooth without any reboots or something else. So my questions is Do I have to Flash it? [MENTION=6411851]BitOBSessiOn[/MENTION] said in his kernel thread that it is not necessary on the New mm bootloader. Thanks for your work!
[Shield Tablet Original Android Development] laufersteppenwolf:
Alright, so I just did exactly what you described: installed AIDA64 and it really does show 540MHz as max current freq with only AIDA open. Then I went on running sling shot and reading the freq via adb a couple of times during the bench and the freq was hopping between 756 and 924MHz just like it should:

root@shieldtablet:/ # cat /sys/kernel/tegra_gpu/gpu_rate
924000000
root@shieldtablet:/ # cat /sys/kernel/tegra_gpu/gpu_rate
756000000
root@shieldtablet:/ # cat /sys/kernel/tegra_gpu/gpu_rate
924000000
root@shieldtablet:/ # cat /sys/kernel/tegra_gpu/gpu_rate
756000000
root@shieldtablet:/ # cat /sys/kernel/tegra_gpu/gpu_rate
756000000
root@shieldtablet:/ # cat /sys/kernel/tegra_gpu/gpu_rate
924000000
root@shieldtablet:/ # cat /sys/kernel/tegra_gpu/gpu_rate
924000000
root@shieldtablet:/ # cat /sys/kernel/tegra_gpu/gpu_rate
756000000

Please check via adb as well while running the benchmark and let me know your findings ;)

Yes you definitely should, especially when using OC freqs. The throttle tables are now stored within the device tree as well, which means the stock ones won't fit the current clock rates which could cause trouble once the devices tries to throttle down.

The DTB is needed regardless of the bootloader, they just have to match one another (LP bootloader and LP DTB vs MM bootloader and MM DTB)
[Shield Tablet Original Android Development] Nikownzyu:
Ok so tell me this if you have the time or backups have you tested the bench with and with out the kernel and i did what you did and whatta you know its overclocking BUT WHAT THE **** so why are we not seeing a performance increase? Is Aida the only reliable gpu checker lol are we being lied to by the system? If so? I wonder where does aida check its gpu freq i feel like going on an app system file ADVENTURE TO FIGURE THAT OUT i dont know maybe im expecting too much for gpu overclocking.

Might i have some suggestions for kernel additions? Like a simple line of code to automatically put in androids new mm multi window feature its buggy but can help ALOT for some stuff

Maybe research a zip called nitrox

Iteli plug so i dont have to use shields custom performance settings set the device at 2 cores to save power THEN go to device control and tick my freq

Most of of BitO's K features

I mention all these as your still the only 6.0 kernel for this tablet and yea i know you just released this kernel and i still love it but just some ideas you know

And GPU overclocking is still a priority ;)
[Shield Tablet Original Android Development] laufersteppenwolf:
Sure, suggestions are always welcome ;)

But, those suggestions should be kernel related. Multi window and the mod-zip are both system related, not kernel.

Regarding the automatic freq changes by the system, I am looking into it, but from what saw from a quick grep, it seems as if the freqs are set by the power HAL.
[MENTION=6411851]BitOBSessiOn[/MENTION] did you look into it yet? can you confirm the power HAL setting the freqs, or is it the psh lib? Haven't been looking into it deeply yet.
[Shield Tablet Original Android Development] MrPhilo:
I hate asking this question, but what else are you going to add into the kernel?
[Shield Tablet Original Android Development] Nikownzyu:
Ok the non kernel ideas i thought maybe could just be you know all in one big flashable zip some people loke to do that and call it THE ULTIMATE MODDERS PACK or something but inteli plug WOULD BE AWESOME
[Shield Tablet Original Android Development] Dashwood Foxe:
Is this compatible with the modified 6.0 on the original tablet?
[Shield Tablet Original Android Development] laufersteppenwolf:
You'll see once it's in there ;) :p

You'd need permission by the original authors etc, but I don't like those all in one packs anyways, I prefer changing what I personally want myself the way I need it.

Haven't decided yet about intelliplug. Will see how it goes, because it actually used to like cpuquiet on my T3 device.

yes, should be fully compatible :)
[Shield Tablet Original Android Development] evank418:
is this also compatible with the new updated MM rom for the original shield tablet?
[Shield Tablet Original Android Development] Fransis88:
Hello , and thanks for the work first .

I have to tell you, I'm currently trying to prove your kernel in a clean install of the new version " stock " of marshmallow , nvidia officer .

The entire facility is clean, but the wifi is not able to turn it on.

the kernel serial rom, no problem . your kernel does not turn on wifi I get .

however, your kernel and Blisspop rom 6 , everything works great !!!

with stock , for now I get it to work .

a greeting
[Shield Tablet Original Android Development] Lifeis4real:
Great work man I'm loving this kernel!

Was wondering would you be able to add zen into the i/o scheduler for future updates I heard it was also good for gaming.
[Shield Tablet Original Android Development] m666p:
Flash dtb file, then kernel and wipe cache worked for me, I lost WiFi too and wiping cache can take a while so just wait for it to be done
[Shield Tablet Original Android Development] laufersteppenwolf:
Sure, shouldn't be a problem ;)

Anything specific known regarding wifi? if you have problems, please make sure to grab a logcat alongside a kmsg of the issue so I can look into it.
[Shield Tablet Original Android Development] BitOBSessiOn:
Governors apart, AFAIK automatic CPU freqs are, indeed, managed by power HAL module (depending on performance policy). I haven't looked into it in deep but maybe [MENTION=1416222]Steel01[/MENTION] can correct me or give more info about.
[Shield Tablet Original Android Development] Steel01:
Wow, I totally missed this thread. I'll read the rest of it when I get time, but I can comment on powerhal/phs.

Yes, the frequencies are set by the powerhal. And all that code is open source, so easy enough to see what stock is doing. PHS on the other hand, I know very little about as there's no released source. I assume it stands for power hint service as it send hints into the powerhal. However, it seems most of the time, the hints are the extra ones that cm doesn't support, much less aosp, so they're logged and ignored. I'm considering dropping phs from CM now that I'm beginning to piece together what does what and see that it doesn't help custom ROMs.

Edit after reading rest of thread:

Suggestion: If the dtb was modified for the kernel and has to match, it would probably be best to match it with the kernel and flash it in the update zip (/dev/block/.../DTB). Though... There is an inherent danger with flashing the dtb at all. The bootloader uses the dtb in initialization (cite [MENTION=2826079]Gnurou[/MENTION], I don't have the link atm, but I believe it was referenced in the shield tv section and applies to all Shield devices), so if there's enough of a mismatch, the device may not even get to fastboot and fail directly to apx. Which might as well be a hard brick for us. It's possible that if someone flashes a M dtb with a L bootloader or vice versa, their tablet will be bricked. But I'm not volunteering to test that one...
[Shield Tablet Original Android Development] Fransis88:
Thanks , turned to flash the bootloader , and now if I correctly activate the wifi.

unaware that he had to return to fhasearlo once the kernel installed.

everything works well , we will try during these days thoroughly !

+1 To request " zen " .

Thank you
[Shield Tablet Original Android Development] Nikownzyu:
Well i hope you get inteliplug because i want to run the tablet while watching videos and browsing to save battery and stuff at 51-2449 at 2 cores ONLY. Because now the only way i can run the dual cores is using nvidias performance/power menu custom settings but the lowest cpu freq it will let me run the tablet at is 50% witch i get because SOMETIMES when the tablet is idle while the lowest it can go is 51mhz it can actually just completely reboot thats why i run it at 204-2449mhz also maybe do some reaserch on a more powerful cpu governor that makes the device alot more senstive to power draw what i mean is even while i have power save on just pulling down the freaking notification drawer scales up to 2 cores 2100mhz or 1500mhz witch it doesnt need that much ive seen some pretty good Governors like that i think bito might of had an imported one but i might be wrong

---------- Post added at 08:56 PM ---------- Previous post was at 08:10 PM ----------

I wish it was as easy as hey lets say you know i go into chrome and its loading a page or if i load a game like clash of clans the cpu overclocks and it uses all cores but if i use smalls apps like instagram twitter settings youtube etc it stays at two cores and from what ive tested to keep a stable 60fps while watching 1080p video on youtube is 1440mhz.

Sadly with the performance kernel and inteli plug i cant have both because powersave governor and EVEN USING balanced cpu quiet governor ( witch ALMOST solved my issue it turns power save into like a hybrid of performance and powersave i noticed this while just testing stuff)while using nvidias optimized power setting i still get bad results like the powersave governor will interfer with powerdraw and say hey you can only use 3 cores. So when i switched to cpu quiet balanced i got to keep my low freqs and get all 4 cores when i need them but the power draw goes through the roof with blanced cpu quiet it will go from 504 without me touching it it witch is good and watching a video its like 1600 but touching it scales so high but comparing this setup to performance Governor the cpu would never drop below 1200 so this is good sorry for the long post im just trying to find that sweet spot for every one we get as much battery as we can get but as much performance as need WHEN WE NEED IT i heard you were looking to cpu freq scaling maybe my data helps in some way or maybe not i want to contribute to this kernel as much as i can as to help others and myself sorry for the long reply aslo maybe now as finsih this posg my old droid has a feature called multi core power saving i could set it to agressive or light or disabled maybe that may be my solution a good governor and multicore power saving who knows.
[Shield Tablet Original Android Development] Nikownzyu:
One morething if you wondering how i know how many cores are online and what freq they are at while im in other apps i use something called tinycore the pro version isnt expensive but also isnt hard to get free online if your strapped for cash witch i dont recommend this app is really cool it shows everything in your status bar
[Shield Tablet Original Android Development] laufersteppenwolf:
PowerHAL is actually only one component boosting the CPU. The kernel has another one built in. But I made progress ;)

Yes, phs stands for Power Hint Service (read it somewhere in the logs) and is nvidia only, hence not needed for custom ROMs as custom ROMs are mostly using the CPU_BOOST hint anyways.

I was already thinking about flashing the DTB alongside the kernel via the updater zip, but decided not to, as TWRP does not back up the DTB partition, and hence is not that easy to revert back to the stock one. If one flashes the DTB I want them to know what's being done.

What?!? I have never heard of any bootloader checking the DTB before loading itself?!? I could see reasons for the bootloader to refuse booting a kernel if the DTB is too different from the stock one, but not refusing to boot the bootloader itself. Are you really sure about that? Do you have some more info on this? If this really was the case, nvidia really messed up...

[MENTION=7238901]Nikownzyu[/MENTION]

Mission accomplished :D

I found a workaround to disable the automatic freq settings from the powerHAL from within the kernel itself. The powerHAL keeps complaining, though, as it's a rather dirty workaround, but it works ;)

Do you guys think I should disable the core-requests as well or are they fine for daily use? (the more opinions the better)
[Shield Tablet Original Android Development] Steel01:
Gnurou's post is here. For those that don't know the name, that's Alexandre Corbout, the Nvidia engineer that has done a lot of upstream kernel and nouveau work for Tegra devices. There's a lot of similarity between all the Shield (well, Nvidia in general) fastboot bootloaders. I'm not certain what all is done under the hood by fastboot, but it seems to be a lot more than just handing off to the kernel.
[Shield Tablet Original Android Development] laufersteppenwolf:
Hmm, well, the bootloader is obviously one of the most important parts of a device, it initialises the basic hardware components, checks the signatures (if not unlocked), and most importantly provides the interface between the PC and the device (-->fastboot), alongside (if implemented) encryption.

Fastboot should not "use" the DTB to boot itself, but only boot the DTB which then boots the kernel. I personally don't know what the botoloader would need the DTB for, except you are using a unified bootloader (which would be rather stupid IMO)
[Shield Tablet Original Android Development] JazzieBoi:
What exactly is a dtb and Is it required to flash it? I have no computer availible at the moment so if required is there a way to do it without a computer?
[Shield Tablet Original Android Development] Echo_2000:
Is this kernel also working on the new shield k1?
[Shield Tablet Original Android Development] Jakeyboydaman:
Compatibility

Question here, I'm interested, but I'm new to the shield tablet, but not android in general. I'm fairly skilled, although the shield is new for me. So just to be clear, is this meant for the current tegra k1 tablet? And can this be flashed using stock android MM with twrp? I don't want to flash a rom because I like the stock nvidia features.
[Shield Tablet Original Android Development] flastnoles11:
Yep, just did the same... Running stock rooted rom with this kernel... Running good for 3 hours now haha

---------- Post added at 11:22 PM ---------- Previous post was at 11:22 PM ----------

Sure is
[Shield Tablet Original Android Development] xabierd:
Does this work on original shield tablet LTE? Flahing blobs from other device scares me a fair bit
[Shield Tablet Original Android Development] zero_101:
is it ok to add a sound control or to turn up the volume in kernel auditor?

cus theres no rom that put that option
[Shield Tablet Original Android Development] cyraxx84:
[MENTION=4716493]laufersteppenwolf[/MENTION], gruß aus Obersasbach ???
[Shield Tablet Original Android Development] lords8n:
Just to verify, if I need to revert back to stock:

Flash stock blob, flash stock boot.img?

Thanks.
[Shield Tablet Original Android Development] laufersteppenwolf:
If you're running MM, it should, yes. I do not have a device to test, though.

I'll have to see about that, haven't been looking into sound yet ;)

errr, where exactly, if I may ask? :o :D

stock DTB and boot.img should be enough, yes.
[Shield Tablet Original Android Development] Exile1975:
You might want to look into viper4android here on xda in the mean time. It's an eq (in case you didn't know) and works flawlessly on the shield.
[Shield Tablet Original Android Development] cyraxx84:
I live near the Löwen. It's a big World ha...
[Shield Tablet Original Android Development] supertory:
thanks for all your hard work , really liking this kernel so far , double tap to wake works although sweep to wake hasnt been working for me , and when updating your rom do you need to reflash the DTB file or just your custom kernel ?
[Shield Tablet Original Android Development] Nikownzyu:
Sounds great cant wait for a new update :) and as for the core request im not so sure maybe you should test it out
[Shield Tablet Original Android Development] migyd:
Can I flash just the zip if I'm already on mm .k1 tab
[Shield Tablet Original Android Development] sminki:
thanks mr. wolf, loving it!

does it (or will it) support kexec?
[Shield Tablet Original Android Development] BitOBSessiOn:
Probably as soon as we have a valid Kexec patch for latest OTA 4.x
[Shield Tablet Original Android Development] zero_101:
i have that already but i just want the sounds volume on kernel auditor

, but thx anyways

---------- Post added at 10:02 PM ---------- Previous post was at 10:00 PM ----------

@laufersteppenwolf, thx man
[Shield Tablet Original Android Development] Quaesar:
Just a thought....I don't have this device but a similar Tegra 4 device so I may be wrong on a couple different things. If dtb is flashable via staging, couldn't you create a blob that flashes the dtb modification? You could then package that blob inside of a flashable zip and along with your other mods (boot.img, etc.). I have some experience doing something similar on the Slate 21 (phobos) and the Slate 21 Pro (ranger). I can help out if needed, having an easy flash method would promote people who are shy with fastboot to flash your mod!

On another note, what commits did you make to the kernel source in order to get it MM booting? I'm trying to port CM13.0 for my phobos but I found I need to make some edits to the kernel before I can get anything booting. The latest kernel source for this device is 3.4.66. You can find the source on the Tegra4 repo if needed (www.github.com/Tegra4)

Peace,

Quaesar
[Shield Tablet Original Android Development] skooter32:
Doesn't work on temaseks cm13 any ideas dev??
[Shield Tablet Original Android Development] Quaesar:
You could rip apart both boot.img's and then replace the CM13.0 kernel with this one. Can't guarantee that everything will work as planned but it's worth giving it a shot!

Q
[Shield Tablet Original Android Development] skooter32:
Yea ha thanks but am bot going to b doung tht
[Shield Tablet Original Android Development] Flash-User:
I've a 02:00:00:00:00:00 Mac adress with the new Stock mm build from nvidia with Werwolf kernel, with Old mm Stock build everything was working fine. Stock Kernel works too.

Any ideal?
[Shield Tablet Original Android Development] laufersteppenwolf:
the automated DTB flashing wouldn't be an issue at all, but as I already explained earlier, I do not want it to be flashed automatically. Not as long as a custom recovery is able to also create backups of the DTB partition.

I did not make any commits, I just used nvidia's latest sources ;)

Without logs, no.

that's what the anykernel updater is doing, it only replaces the zImage, not the ramdisk ;)

you mean the very latest OTA? what device are you using?

in order to look into it, I'd need logs (dmesg and logcat)
[Shield Tablet Original Android Development] Flash-User:
right, the latest ota with the OLD OG Shield Tablet LTE (ROW), with bit o kernel K4 and stock kernel i've no issues only with werewolf kernel i get the 02: ... mac adress and cant either enable nor connect to wifi. LTE works fine, this happens with dirty flash as well as with clean install.

I've reflashed bitokernel temporarily, where can i find the logs (dmesg and logcat)?

Thanks
[Shield Tablet Original Android Development] el3c:
I am on the default Nvidia MM Rom OTA 1.1 ... it works, but: if i run antutu, i have a lot of rendering errors. Some textures are not rendered and shown as whit or black while the benchmark. I have not tested it with any game yet...

After Flashing Kernel, i ve installed the dtb:

Edit: ksmd (kernel samepage merging daemon) runs with 30-60% Load while using this Kernel. Went back to K4.

Edit 2: i have now deactivated KSM ans the load runs normal again... is there any reason why you use this function in this kernel?
[Shield Tablet Original Android Development] Flash-User:
istn a tablet issue, its a antutu software issue, update the 3Dbench to the newest 6.0.4 version and everything is fixed.

Please note run the newest Antutu and their companion app Antutu 3D Bench to avoid such issues.

AnTuTu Benchmark 6.0.4:

https://www.apkmirror.com/apk/antut.../antutu-benchmark-6-0-4-android-apk-download/

AnTuTu 3DBench 6.0.4 (this fixes your texture issues)

https://www.apkmirror.com/apk/antut.../antutu-3dbench-6-0-4-2-android-apk-download/
[Shield Tablet Original Android Development] skooter32:
I really like this kernel but I can't connect via hotspot for some reason when this kernel is installed with temaseks cm13 a know someone said something about the boot.IMG but am no dev so is there anyway u can make ur kernel compatible with temaseks port?
[Shield Tablet Original Android Development] MrPhilo:
Can I use this on the Beta ROM from Nvidia, Android MM 6.0.1? It's to test Vulkan?
[Shield Tablet Original Android Development] Nikownzyu:
Okay so im attaching a photo that shows the gpu freq and stuff but what is so weird this section in kernel auditor wasnt there before but all of a sudden its here so no matter what freq i set the gpu on the device it doesn't listen it just chooses its own freq i changed from max performance to optimized but no dice so whats weird is in other cpu/gpu tuning apps like device crontrol it says my gpu has no tweaks but kernel auditor says i do try installing this app to see if its just my device that wont overclock
[Shield Tablet Original Android Development] romixer:
hm... i have 6.0 Dirty Unicorns Rom and your kernel but Android sayd(then i input SD) : Exfat is not support ! Why is this happend ?:crying:
[Shield Tablet Original Android Development] Quaesar:
Lucky duck... :D
[Shield Tablet Original Android Development] emaxxim:
Can I come back to stock kernel? Do I have to flash something strange? Just the boot.img is OK?
[Shield Tablet Original Android Development] romixer:
Wipe Cahes (Cashe and ART) :highfive: then flash stock boot.img