Android OS Forum banner
1 - 20 of 148 Posts

·
Premium Member
Joined
·
212 Posts
Mod Type:: Kernel

Difficulty:: Very Easy

Mod Base:: Sense (HTC)

Mod Status:: Stable

Apply In:: CWM Recovery

Optional:: Overclocked

Requires Root:: Yes

Optional:: Custom Settings

Source::



SENSE Bricked-Kernel-3.0 Sensation (pyramid)

The first kernel with kernel mpdecision & 3-phase kernel thermal control
no need for those binaries anymore
[hr]
Highlights:

Default clocks: 1566Mhz max / 192Mhz min
OverClockable till 1944Mhz !NOT ALL DEVICES CAN HANDLE THIS!
3D GPU Overclock @ 320Mhz (if selected during install)
2D GPU Overclock @ 266.667Mhz (if selected during install)
5 Stages 3D GPU scaling, variable io_fraction
3 Stages 2D GPU scaling, io_fraction 100
Increased bus bandwidth
L2 Performance Boost
cmdline options!
maximum screen off frequency
(configurable through cmdline options)
Sweep2Wake! (if selected during install)
>badass governor<
3-phase kernel cpu thermal control
>100% kernel based mpdecision<
The first kernel with interactive install using Aroma Installer by amarullz
with more customizations than you can dream of on any other kernel!

[hr]
Features:

Code:
<br />
[U]* CM (AOSP) compatible version: See below![/U]<br />
* 3.0.36<br />
* based on HTCs-3.0.16-Sources<br />
* Tested with Sense 3.6 ICS (no known problems)<br />
* Tested with Sense 4 ICS (animations work, thx to virtuous)<br />
* Command Line Options - innovative!<br />
__ Rename the zip to change your settings!<br />
* Sweep2Wake<br />
* badass governor<br />
* 3-phase kernel cpu thermal control<br />
* 100% kernel based mpdecision<br />
* Optimized<br />
* Built with highest Optimization Level (O3)<br />
* Strongly improved UI-performance<br />
* KGSL Early Suspend GPU slumber<br />
* Increased 3D/2D-Performance (GPUOC)<br />
* CAF Bluetooth stack (newer) - faux123<br />
* CIFS<br />
* UTF8 encoding (included for CIFS)<br />
* wifi pm=fast<br />
* Tweaked ondemand governor<br />
* Undervoltage<br />
* Overclocking to 1566Mhz default<br />
* Min Clock @ 192Mhz default<br />
* Boot time optimization. CPU will have 1566Mhz clocks during boot to ensure a fast bootup<br />
* Flashlight and Camera-Flash will now be useable until battery reaches 5%<br />
* Tree-based preemptible RCU<br />
* Fast scheduler for CPU hotplug<br />
* optimized preemptive settings<br />
* basic NTFS support<br />
* Userspace driven configuration filesystem<br />
* Allow CPU-supported unaligned accesses<br />
* Global CPU Voltage table used for adjusting voltage table for SnapDragon Dual Core. Inspired by Snq- modified by faux123 for SnapDragon fixed by show-p1984<br />
* Improved Mobile Connection (fixed possible freezes introduced by HTC)<br />
* ~8% Undervolted till 1566Mhz<br />
* L2 Performance Push<br />
* 3D GPU Overclock @ 320Mhz<br />
* 2D GPU Overclock @ 266.667Mhz<br />
* 6 Stages 3D GPU scaling, variable io_fraction<br />
* 3 Stages 2D GPU scaling, io_fraction 100<br />
* Tweaked ondemand to raise frequencies with higher load only (should contribute to battery life)<br />
* Increased writing performance (lowers that annoying lag when updating 2 apps at the same time)<br />
* Git's Sha1 implementation significantly decreases boot time<br />
* CRC-optimizations<br />
* ZRAM<br />
* Fudgeswap<br />
* PPP over standard asynchronous serial ports<br />
* PPP over synchronous (HDLC) tty devices<br />
* [URL="http://dl.dropbox.com/u/44206202/CallRecorder_v.1.0.20_alpha_2.apk"]Two-Way-Call-Recording[/URL]<br />
* basic NTFS support<br />
* increased bus frequency<br />
* Improved WIFI - WLAN detection<br />
* Automatic process group scheduling<br />
* Lowered wifi-voltage<br />
* cleaned code, improved performance<br />
* Dropped debug code, was slowing things down<br />

[hr]
Changelog @ bricked.de
[hr]

What is sweep2wake?


Since this function collides with HTC's screenshot function (PWR+HOME) it will be disabled. Use the AOSP screenshot instead. (PWR+VOL.DOWN at the same time and hold it for about a sec)
This has a few advantages, one is a nice animation
the second would be that it is hardcoded by google into any ICS firmware you can find. That means: no matter which device you will pick up, as long as it has ICS this function should work out of the box.​

[hr]
How to change your frequency/governor before flashing?

That's new. Sounds strange, but it works. I am proud to present a truly innovative concept:
cmdline_khz / cmdline_gov / cmdline_maxscroff
What does this do for you?

Have you ever wished you could set the default min/max/gov/scroff frequency on your own?
Without having to rely on the dev to recompile?
Or doing it yourself?
Or even bothering to learn how to do that?
Or using OC apps that are just in the way?

(governor set able in setup from version 1.0)

Well, your prayers have been heard!

It simplifies any kernel install to the bare minimum. You download the zip, and just change the values to your liking. The kernel will obey you, it's magic!
you will download this file for example:
Bricked-3.0-v0.61-ics-maxkhz=1566000-minkhz=192000-maxscroff=432000.zip
now it is possible that you don't want to oc to 1566Mhz, or your preferred min freq is higher, or or or...
Just rename the file!
Bricked-3.0-v0.61-ics-maxkhz=1188000-minkhz=384000-maxscroff=540000.zip
The kernel will now boot from second 0 with this settings:
Max freq: 1188Mhz
Min freq: 384Mhz
maxscroff: 540Mhz
Cool, isn't it?

Now one could say, hell that's too dangerous, what if I write something wrong in there? No problem, your show-p1984 thought of everything. I have built in that much security measures that it is not even remotely imaginable that something could go wrong. I am serious. Whoever manages to break it gets a golden pile of shit from me.
Now what does it "autocorrect" exactly?
It corrects mhz instead of khz values for you, so you can actually flash this:
Code:
Bricked-3.0-v0.61-ics-maxkhz=1188-minkhz=384-maxscroff=540.zip
and it will still work.
Or it corrects wrong acpu frequencies. You can find a table @ the second post, but if you mistype sth, no fear, it will still work!
Code:
Bricked-3.0-v0.61-ics-maxkhz=1190-minkhz=390-maxscroff=545.zip
for example will let the kernel boot with 1188Mhz max and 384Mhz min (maximum screen off frequency 540Mhz). It always falls back to the next lower step. Actually you won't need to bother for the acpu table anymore, just type anything in there, it will automatically correct it for you! If you still want to enter the correct values, just look in the second post

Now what if you write a letter in there? Like this:
Code:
Bricked-3.0-v0.61-ics-maxkhz=II88000-minkhz=38A000-maxscroff=5A0O00.zip
Well, the kernel will detect that and fall back to default settings read out of my .config. Which means the kernel will boot @ 1566Mhz max and 192Mhz min and maxscroff will be set to 1566Mhz (=disabled).

What to do if you just want to change your clocks?
Rename the zip file, boot into recovery, flash, and enjoy

There is also a sysfs interface for the maxscroff frequency, for simplicity I kept the common name for it.
/sys/devices/system/cpu/cpu0/cpufreq/screen_off_max_freq

Currently there is only one limitation:
You can't have two files with the same base on your scard. that means:
Code:
Bricked-3.0-v0.61-ics-maxkhz=1566000-minkhz=192000-maxscroff=432000.zip<br />
Bricked-3.0-v0.61-ics-maxkhz=1188000-minkhz=384000-maxscroff=540000.zip
are not allowed to be on the sdcard at the same time, the kernel would boot with defaults: 1566/192 if you flash either one of those files.
The "base" of the filename is this: Bricked-3.0-v0.61-ics-
So you can have 2 files (or more) on the sdcard with names like this:
Bricked-3.0-v0.55-b4-ics-****
Bricked-3.0-v0.7-ics-****
Bricked-3.0-v0.8-ics-****
(****=etc etc etc etc)
Furthermore it must be followed by maxkhz=VALUE-minkhz=VALUE-maxscroff=VALUE.zip It is not possible to switch the positions of the options. But you can leave them out of there completely, the kernel will then boot with 1566/192/1566.

Ah btw: We now see our set max mhz under Settings->About Phone->HW->Cpu
(it actually changes when you change your maxkhz)

This is genuine innovative code from me. I didn't even occasional glance at someone elses work. So if sth like this is already out there, SCREW THE DEV
because I did not see it and wrote it from scratch! :D

And since 0.6 comes with the awesome Aroma installer you can now choose from 3 gpuoc versions!
GPU OC disabled, [email protected] & [email protected]
GPU low overclock, [email protected] & [email protected]
GPU high overclock, [email protected] & [email protected] + Bandwidth push


The source for this is split into two parts, Kernel & bash script. The script finds the zip on your sdcard, parses the filename and modifies the kernels cmdline inside the boot.img. The Kernel is parsing the cmdline, checking if everything is valid and setting your options.​

[hr]
How to install?

Just flash from recovery. Because it creates a boot.img out of the one on your phone while flashing, it should work with the majority of ROMs out there.
Interactive install, enjoy the ride!

[hr]
Where to complain about errors/bugs?

Please use the Issuetracker for bugs/errors/feature wishes!
Issuetracker @ https://code.google....ed/issues/entry

[email protected]
IRC Chat: Freenode IRC #bricked​

[hr]
Download:

No Guarantees! If it kills your grandmother or your device, I am NOT responsible! If you understand this:
(If you download, please hit Thanks below my post! Thank you!)

*v1.4* [STABLE] Click me
*betas* [Possibly unstable, for testing only.] Click me

RW Discussion/Download for AOSP (ICS): Click me

Old Downloads (gcode): Click Me

[hr]



Use System Tuner to undervolt!
Setting min/max frequencies should be done over the zips name instead.


[hr]

Donor List:


[hr]

Source:


 

·
Premium Member
Joined
·
212 Posts
Changelog moved to bricked.dehttp://bricked.de/index.php?action=changelogs&device=pyramid&type=sense

[hr]


What does PREEMPTIBLE mean?

Preemptive built kernels are favoring the userinterface over everything else! That means: An app in the background is using 50% of you CPU to spy on you. You want to move fast through the user interface/watch a video, whatever. The kernel will now favor your action over the app in the background. That's all the magic that's happening

[hr]
What is badass?

Well good question. With ICS I decided to rework my gb badass which never got released because it was always pushed aside. To break down what it is:

Badass removes all of this "fast peaking" to the max frequency. On a typical system the cpu won't go above 918Mhz and therefore stay cool and will use less power. To trigger a frequency increase, the system must run a bit @ 918Mhz with high load, then the frequency is bumped to 1188Mhz. If that is still not enough the governor gives you full throttle. (this transition should not take longer than 1-2 seconds, depending on the load your system is experiencing)
Badass will also take the gpu load into consideration. If the gpu is moderately busy it will bypass the above check and clock the cpu with 1188Mhz. If the gpu is crushed under load, badass will lift the restrictions to the cpu.

Please remember: Due to it's nature, this is not a benchmark governor. It is meant as a governor that gives you a smooth experience while saving battery, lots of it

[hr]
What is msm_thermal?

Kernel based 3-phase thermal control!
This replaces your /system/bin/thermald binary which is renamed by the installer to thermald_backup.

Check /sys/kernel/msm_thermal/conf/ for the thermal configuration :)

allowed_max_high = highest threshold (phase 3)
allowed_max_low = remove the throttling if we cooled down to this (clr_thrshold)
allowed_max_freq = max frequency if throttled (limit)

[...]mid[...] = same as above, just for phase 2
[...]low[...] = Lowest threshold (phase 1)

check_interval_ms = how often shall we check? (sampling rate)
Default: 1000ms (=1sec)
[hr]
What is msm_mpdecision?

100% kernel based multi core decision! (should cpu1 be online or not?)
This replaces your /system/bin/mpdecision binary which is renamed by the installer to mpdecision_backup.

Check /sys/kernel/msm_mpdecision/conf/ for the configuration.

startdelay = time until mpdecision starts doing it's magic (70000)
delay = time between checks (500)
pause = if something else plugs in the cpu, fall asleep for 10000
scroff_single_core = if the screen is off, don't plug in cpu1 (1)
nwns_threshold_up = runqueue threshold, if this is reached cpu1 will be hotplugged (35)
nwns_threshold_down = runqueue threshold, if this is reached cpu1 will be unplugged (5)
twts_threshold_up = time threshold, this amount of time must have passed (250)
twts_threshold_down = same as above (250)
enabled = enable(1) or disable(0) mpdecision. This does not affect scroff_single_core!
(all times are in ms)
[hr]


Frequency/Voltage Table:

192000: 800000
310500: 825000
384000: 825000
432000: 850000
486000: 850000
540000: 875000
594000: 875000
648000: 900000
702000: 900000
756000: 925000
810000: 950000
864000: 975000
918000: 975000
972000: 1000000
1026000: 1000000
1080000: 1025000
1134000: 1025000
1188000: 1050000
1242000: 1075000
1296000: 1100000
1350000: 1125000
1404000: 1150000
1458000: 1150000
1512000: 1175000
1566000: 1175000
1620000: 1200000
1674000: 1225000
1728000: 1250000
1782000: 1275000
1836000: 1300000
1890000: 1325000
1944000: 1350000
[hr]
Available CPU governors:
badass <-- !recommended!
lazy
interactive
lagfree
conservative
userspace
powersave
ondemand
performance​

[hr]

Stock Kernel for ICS. Unsecured boot.img.
 

·
Android Beginner
Joined
·
36 Posts
It is a bit quiet on here, but then again XDA has had years of service. Shame the Sensation forum is full of dickheads - it was never an issue in the Desire forum
 
  • Like
Reactions: themastergee

·
Android Beginner
Joined
·
7 Posts
But maybe it's a little bit too quiet here? I will follow anyway... Just the rootzwiki-app sucks... doesn't show Sensation 4g Development Forum for me, it goes only to Sensation 4g Forum, no further subforums. Anybody else got this problem (yes, i know that it's NOT kernel related :D)
 

·
Premium Member
Joined
·
212 Posts
Discussion Starter · #7 ·
smint86 said:
But maybe it's a little bit too quiet here? I will follow anyway... Just the rootzwiki-app sucks... doesn't show Sensation 4g Development Forum for me, it goes only to Sensation 4g Forum, no further subforums. Anybody else got this problem (yes, i know that it's NOT kernel related :D)
No problem for me ;) I see it.
 

·
Android Beginner
Joined
·
3 Posts
"smint86 said:
But maybe it's a little bit too quiet here? I will follow anyway... Just the rootzwiki-app sucks... doesn't show Sensation 4g Development Forum for me, it goes only to Sensation 4g Forum, no further subforums. Anybody else got this problem (yes, i know that it's NOT kernel related :D)
Htc / Sensation 4G / look at the very top of the app page and it says Sensation 4G Development forum.
Took me a little while to find it too.
 

·
Android Beginner
Joined
·
7 Posts
"Smiffyboots said:
Htc / Sensation 4G / look at the very top of the app page and it says Sensation 4G Development forum.
Took me a little while to find it too.
I swear that it wasn't there yesterday :-D
 

·
Premium Member
Joined
·
212 Posts
Bricked v0.9

Code:
Changes from 0.8:<br />
* CPU temperature @ /sys/class/thermal/thermal_zone1/temp<br />
* [URL=http://stackoverflow]http://stackoverflow[/URL].com/questions/4212206/about-sched-automated-per-tty-task-groups<br />
* Lowered wifi-voltage (cayniarb)<br />
* Fix scaling_cur_freq (mdeejay)<br />
* Update firmware memory size (Leedroid)<br />
* added cpufreq: address issue with second core forgetting min/max clock freq (Leedroid) & fixed<br />
* added lib: Improve the performance of memcpy and memmove of the general version (Arne Coucheron)<br />
* Lowered battery usage a bit. (Does not affect performance)<br />
* USB: read/write performance & detection enhancement (Chiranjeevi, Velempati)<br />
--<br />
* adjusted GPU scaling<br />
* overclock of Adreno220 reduced to 300Mhz (some phones still do not like 320mhz -.-)<br />
--<br />
* cleaned code, improved performance<br />
* Combines the speed and stability of 0.7 with the 3D performance and 3D-fix from 0.8<br />
* Dropped debug code, was slowing things down<br />
* Fixed performance drops<br />
* Fixed deep-sleep reboot<br />
* Fixed 2 additional GPU scaling bugs that would have prevented the system from falling into deep-sleep mode<br />
* Reenabled dynamic powercontrol (my fault -.-)<br />
* Tweaked performance on one or two edges ;)<br />
* improved stability (show, you should check pointer...)<br />
* Fixed ioctl errors<br />
* Fixed widget bugs (I couldn't reproduce them anymore)<br />
* Fixed a GPU scaling bug, phone should stay cooler now<br />
--caused the GPU to get stuck at maximum frequency
Download me
 

·
Android Apprentice
Joined
·
26 Posts
First thing. GREAT kernel (using it with ARHD) - was using faux 0.1.0 but changed for UV here with your kernel. I really liked 0.8 but 0.9 for me is slower in games.

Could I ask very nicely for a version with GPU @ 320Mhz ? My Sensation likes it well and it helps in games :)
 

·
Premium Member
Joined
·
212 Posts
Discussion Starter · #13 ·
mat9v said:
First thing. GREAT kernel (using it with ARHD) - was using faux 0.1.0 but changed for UV here with your kernel. I really liked 0.8 but 0.9 for me is slower in games.

Could I ask very nicely for a version with GPU @ 320Mhz ? My Sensation likes it well and it helps in games :)
You should not feel the difference in games. But I am very kind today:
@First post is a suprise for you ;)
 

·
Android Apprentice
Joined
·
26 Posts
Thank You Very Much :)

Will play with it tomorrow (it's after midnight here and I do have to work tomorrow :android-smile: ).

edit: You were right - no performance gain. Do you know why it is? In 3D intensive games there should be some difference (FPSe games for me)or is it so much dependent on CPU that GPU does not matter here.... ?
 

·
Premium Member
Joined
·
212 Posts
Discussion Starter · #15 ·
mat9v said:
Thank You Very Much :)

Will play with it tomorrow (it's after midnight here and I do have to work tomorrow :android-smile: ).

edit: You were right - no performance gain. Do you know why it is? In 3D intensive games there should be some difference (FPSe games for me)or is it so much dependent on CPU that GPU does not matter here.... ?
You should only see the difference in Benchmarks that use a high polygon count. Usually normal 3D games for mobile devices haven't high polygon counts, so that they may run on slower devices too. So our GPU is far away from it's limit at the moment. Btw: I haven't seen one Game lagging on our Sensation. What are you playing? World of Warcraft? :p
 

·
Android Beginner
Joined
·
37 Posts
mat9v said:
Mostly FPSe - Diablo or Final Fantasy VIII, I'm an old school gaming guy, only with new toy :)
Same here. I love those old school games, nothing new seams to compare. Eg. Xenogears, ff7-9, and several other squaresoft games.

Sent from my Sensation 4G
 

·
Android Apprentice
Joined
·
13 Posts
show-p1984 said:
You should not feel the difference in games. But I am very kind today:
@First post is a suprise for you ;)
I hope that new releases will include a version with GPU overclocking. :)
I'm heavy overclocker, and good to know that my phone is totally overclocked :D
Thanks for the great kernel!
 

·
Android Apprentice
Joined
·
26 Posts
Look closer - there is a GPU max overclock version :) In the OP.

Not all devices may run with GPU @ 320Mhz! Enthusiast version!
*v0.91* maxGPUOC [ondemand, smartassv2 optional, PREEMPTIBLE, [email protected]] Click me

If you meant that future versions should have it included then sorry for misunderstanding...:)
 
1 - 20 of 148 Posts
Top