[Kernel][26/04][N7100 N7105 N7108 R950] Perseus

Status
Not open for further replies.
Search This thread

thedid63

Senior Member
Dec 22, 2011
507
114
Samsung Galaxy Note 20 Ultra
Re: [Kernel][30/01][N7100 N7105 R950] Perseus

Hi&thanks. ?..
No all in stock ....just apply triangle away ...and all it's all right but just when I change the Kernel don't work...I'm on Omega Rom with all statues 0
Thanks ;)

Envoyé depuis mon GT-N8010 avec Tapatalk
 

cobraboy85

Senior Member
Aug 25, 2011
2,480
1,231
Re: [Kernel][30/01][N7100 N7105 R950] Perseus

yahyoh, i have tryed your settings: Sampling rate : 25000uS , up threshold : 90 % , frequency responsive : 500Mhz

I gotta say even on battery saving mode the phone itself was pretty fast. Thanks for the idea.

I really don't understand how this made any difference. The default settings for up_threshold is 82... this made it slower to respond technically.

Set your frequency for responsiveness to 900
 

yahyoh

Senior Member
Nov 7, 2011
4,867
1,929
Amman
I really don't understand how this made any difference. The default settings for up_threshold is 82... this made it slower to respond technically.

Set your frequency for responsiveness to 900

not really , 25000uS will make it respond a bit faster and the 90 up_threshold will save some battery ( i think :rolleyes: ), 900 MHz for responsiveness is too much i did some tests and 500Mhz is more than enough IMO

with my setting everything seems smooth without any stuttering :)
 
  • Like
Reactions: xonone and Bholwell

xonone

Senior Member
Dec 14, 2011
173
38
Oklahoma City, OK
Re: [Kernel][30/01][N7100 N7105 R950] Perseus

not really , 25000uS will make it respond a bit faster and the 90 up_threshold will save some battery ( i think :rolleyes: ), 900 MHz for responsiveness is too much i did some tests and 500Mhz is more than enough IMO

with my setting everything seems smooth without any stuttering :)

ya I tested it wtih 800mhz and had a few problems but at 500 I had 0. everything Is indeed smoother and without problems.

Sent from my SCH-R950 Note II
 
  • Like
Reactions: Bholwell

OldBoy.Gr

Senior Member
Jan 16, 2013
338
342
Re: [Kernel][30/01][N7100 N7105 R950] Perseus

not really , 25000uS will make it respond a bit faster and the 90 up_threshold will save some battery ( i think :rolleyes: ), 900 MHz for responsiveness is too much i did some tests and 500Mhz is more than enough IMO

with my setting everything seems smooth without any stuttering :)

Correct me if I am wrong but 90% being the up threshold for changing cpu clock upwards means it will wait till the cpu reaches 90% of its processing capacity before the kernel 'allow' it to go to the next higher speed. So it will save some more battery indeed yet it will be staying a little longer in the lower cpu clock speed before it goes up to the next cpu clock speed level (theoreticaly at least) as opposed to 82% (default). So indeed Yahyoh is right I think. Its the responsiveness threshold that makes the difference combined with the smaller polling time (25000ms instead of 30000ms) which will help cpu decide quicker if it needs to up the clock and thus shorten response time hence having a quicker response in this case. Just my 2 cents tho so if I am wrong do feel free to correct me as it will be beneficial for everyone reading this thread.
_________________________________________
Life is what happens while we make ... plans!
 
Last edited:

yahyoh

Senior Member
Nov 7, 2011
4,867
1,929
Amman
Correct me if I am wrong but 90% being the up threshold for changing cpu clock upwards means it will wait till the cpu reaches 90% of its processing capacity before the kernel 'allow' it to go to the next higher speed. So it will save some more battery indeed yet it will be staying a little longer in the lower cpu clock speed before it goes up to the next cpu clock speed level (theoreticaly at least) as opposed to 82% (default). So indeed Yahyoh is right I think. Its the responsiveness threshold that makes the difference combined with the smaller polling time (25000ms instead of 30000ms) which will help cpu decide quicker if it needs to up the clock and thus the shorten respond time hence having a quicker response in this case. Just my 2 cents tho so if I am wrong do feel free to correct me as it will be beneficial for everyone reading this thread.
_________________________________________
Life is what happens while we make ... plans!

:good:
 
  • Like
Reactions: xonone and Bholwell

gubacsek

Senior Member
Jun 18, 2010
262
310
kernel compile error

Hi AndreiLux!

I'm trying to build your kernel in a chroot on a note2, the phone itself, with gentoo arm (tried with armv7a-softfp-linux-gnueabi-4.4.3 and armv7a-softfp-linux-gnueabi-4.6.3) and the compile fails. Im using the config from /proc/config.gz (of course without the crosscompile string) I know this whole thing is funny, but i really would like to make if work...
The error is:
{standard input}: Assembler messages:
{standard input}:69: Error: selected processor does not support ARM mode `smc 0'
{standard input}:284: Error: selected processor does not support ARM mode `smc 0'
{standard input}:306: Error: selected processor does not support ARM mode `smc 0'
make[2]: *** [drivers/misc/tzic.o] Error 1
make[1]: *** [drivers/misc] Error 2

I'm curious, maybe you also had this problem at some time, or do you have any ideas what i can do to get rid of it?
I had the same error for the "Floating point emulation" but at least i could turn that off in the config. But this tzic? I can't find any option for this one.
I have googled this for a long time, other people had similar errors, and there are patches out there, but not even remotely for "tzic"... I'm stuck with this...


Thanks in advance for your help!
 
S

sawdoctor

Guest
Re: [Kernel][30/01][N7100 N7105 R950] Perseus

one question if I just flash the Kernel and set nothing, will the CPU settings be the same as in stock?
I just want to use another Kernel that's compatible with Simplistic Framework and NOTHING ELSE, no overclock, undervolt or whatever...

Im running this kernel with the default values and the only difference ive noticed over stock is increased battery life if that helps. The only thing ive altered are the audio tweaks which I recommend

Sent from my GT-N7105 using xda premium
 

Cris7ianO

Senior Member
Feb 15, 2012
1,079
312
AW: [Kernel][30/01][N7100 N7105 R950] Perseus

Hey for me battery isn't that important it's all about performance ^^ i really like to squeeze everything out of my note :) so maybe someone could provide some extreme settings for performance. Only point is it has to be stable. Really would appreciate some help cause technic wise i am a bit noobish^^



Sent from my flying GNote N7100 with Omega V11 + Perseus 32.1 OC 1, 8
 

cobraboy85

Senior Member
Aug 25, 2011
2,480
1,231
Re: [Kernel][30/01][N7100 N7105 R950] Perseus

Hey for me battery isn't that important it's all about performance ^^ i really like to squeeze everything out of my note :) so maybe someone could provide some extreme settings for performance. Only point is it has to be stable. Really would appreciate some help cause technic wise i am a bit noobish^^



Sent from my flying GNote N7100 with Omega V11 + Perseus 32.1 OC 1, 8

Up threshold 70, up threshold at fast down 70, sampling rate 15000, turn off flexrate, adjust GPU range to 260-640 and up threshold for GPU 65

That's about as aggressive as you can get.
 
  • Like
Reactions: Cris7ianO

yann06

Senior Member
Nov 26, 2005
122
20
Hi all

I am facing a problem with this kernel.. not the previous one with the same ROM(omega v11)
When starting a native videoplayer running any movie , generate a dark display with some color
I ve try to reset the stweak setting -> idem (video is running dark) with other videoplayer works fine (perseus 32.1)
I ve try the previous kernel -> everything works fine (perseus 31.2)

So maybe its my fault ... on some tweaks apply ... but if anyone can test to play a video with native application and tell me
thanks
 

Cris7ianO

Senior Member
Feb 15, 2012
1,079
312
AW: [Kernel][30/01][N7100 N7105 R950] Perseus

Up threshold 70, up threshold at fast down 70, sampling rate 15000, turn off flexrate, adjust GPU range to 260-640 and up threshold for GPU 65

That's about as aggressive as you can get.

Thx will give it a try :) which governor scheduler combination for best performance? Actually using pegasus and deadline. Thx

Sent from my flying GNote N7100 with Omega V11 + Perseus 32.1 OC 1, 8
 

yahyoh

Senior Member
Nov 7, 2011
4,867
1,929
Amman
Hi all

I am facing a problem with this kernel.. not the previous one with the same ROM(omega v11)
When starting a native videoplayer running any movie , generate a dark display with some color
I ve try to reset the stweak setting -> idem (video is running dark) with other videoplayer works fine (perseus 32.1)
I ve try the previous kernel -> everything works fine (perseus 31.2)

So maybe its my fault ... on some tweaks apply ... but if anyone can test to play a video with native application and tell me
thanks

go to stweaks then to screen tab change sharpness delta to -4
 

AndreiLux

Senior Member
Jul 9, 2011
3,209
14,598
Hi AndreiLux!

I'm trying to build your kernel in a chroot on a note2, the phone itself, with gentoo arm (tried with armv7a-softfp-linux-gnueabi-4.4.3 and armv7a-softfp-linux-gnueabi-4.6.3) and the compile fails. Im using the config from /proc/config.gz (of course without the crosscompile string) I know this whole thing is funny, but i really would like to make if work...
The error is:
{standard input}: Assembler messages:
{standard input}:69: Error: selected processor does not support ARM mode `smc 0'
{standard input}:284: Error: selected processor does not support ARM mode `smc 0'
{standard input}:306: Error: selected processor does not support ARM mode `smc 0'
make[2]: *** [drivers/misc/tzic.o] Error 1
make[1]: *** [drivers/misc] Error 2

I'm curious, maybe you also had this problem at some time, or do you have any ideas what i can do to get rid of it?
I had the same error for the "Floating point emulation" but at least i could turn that off in the config. But this tzic? I can't find any option for this one.
I have googled this for a long time, other people had similar errors, and there are patches out there, but not even remotely for "tzic"... I'm stuck with this...


Thanks in advance for your help!
It's caused by the toolchain; this should fix it: https://github.com/AndreiLux/Perseus-S3/commit/fc47bea3c904c5426a7e0ffda625dcbda7c56a4e
 
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 813
    Welcome to the Perseus kernel! I thought it would be a nice catchname considering the Galaxy/Universe/Pegasus themes.

    This is a direct port of my kernel on the Galaxy S3. I am using the same source base for both devices for the kernel, just with a different configuration file. The kernel images are not interoperable! I will continue development in parallel for both devices, with the Note 2 having maybe some delay due to third party testing.

    I'm trying to be more cutting-edge in terms of development in this kernel. In contrast to other kernels and philosophies of other developers, I don't believe giving the users more choice is a very smart thing to do. As such you won't find a dozen different governors or twenty different settings for this kernel. There is a optimal, or at least, most optimal setting on which the devices operate both in terms of performance and power management. For the average user this kernel will brings lots of benefits to battery life, screen improvement, fluidity and sound enhancements without having to set up any of the configurations.

    The kernel comes with a configuration application called STweaks, and is installed automatically with the kernel. You will find all advanced options in there.

    Don't be scared by the alpha denomination of the kernel, I'm just taking the traditional naming scheme where alpha designates feature development, beta is feature-completeness, and final will actually be when I'll actively stop developing the kernel. The kernel is very stable, and any bugs are fixed in hotfix versions (alpha x.y)

    The kernel is also being maintained and released cross-device for the I9305 (S3 LTE), i9300 (S3) and N7105 (Note 2 LTE) and shares the same base-source. I solely own a I9300 Galaxy S3, but since all the phones derive from the same Midas platform, I merely adapt the differences without having the other devices.


    Features / changelist:

    Perseus alpha36.3 (26/04):
    • Fixed slice lookup issue on ABB: It's recommended you put your slices back to default before flashing if you changed them to borderline stability values. Please upgrade.
    Perseus alpha36 (22/04):
    • Adaptive Body Bias control (ABB). (Experimental feature)

      Body biasing is taking advantage of transistor body effect for binning the chip depending on its quality. In fact, this is used on the latest Samsung SoCs both for reducing power consumption and validating bad chips by adjusting their electrical characteristics.

      The body bias is dictated by the voltage applied to the transistor gate (The usual voltages you're all used to) minus the voltage applied to the transistor body. The resulting bias can change the transistor's electrical characteristics in two possible ways:

      Before reading on: A transistor's voltage and operating frequency is defined/limited mostly on its threshold voltage. Wikipedia has a neat visual representation of this; voltage must raise to a certain point for the transistor to be able to switch and operate. This threshold voltage can be highly dependant on temperature, influenced by the body effect, and defined by the manufacturing process. What we're doing nowdays with undervolting is to get as near as possible to the upper bound of this threshold voltage.

      With that in mind:
      • Forward Body Bias

        A FBB is defined when the bias of the gate voltage minus body voltage is positive, meaning the gate voltage is higher than the body voltage. This has the effect of reducing the threshold voltage. By reducing it, you can achieve lower voltages, or be able to clock the transistor higher. However the side-effect of lowering the threshold voltage is that you are sacrificing power leakage, meaning that the lower the threshold voltage becomes, the higher leakage current in the transistor becomes. This leakage power rises exponentially with a linear lowering of the threshold voltage. This is what is called static transistor leakage.
      • Reverse Body Bias

        A RBB is defined when the bias of gate voltage minus body voltage is negative, meaning the gate voltage is lower than the body voltage. it has the direct opposite effect of FBB, it raises the threshold voltage thus you would need a higher gate voltage for switching, but however you also dramatically decrease static leakage.
      What happens is that you want to use RBB when idling, and a reduced RBB, or even FBB at very high clocks.

      Samsung currently uses this on top of voltage scaling to bin their chips. Here's an excerpt of the stock body biasing on the 4412 Prime chip (I'm using that one as an example as it has better adjusted ABB values over the Rev 1.1 chips).
      ZDOUXP9.png


      To find out your ASV group: You can read out your ASV group in /sys/devices/system/abb/abb_info now.

      I have rewritten the ABB scaling logic/driver for CPU, GPU, MIF and INT voltages.

      In the current implementation, since it would be insane to have paired-up gate-body voltages divides the frequency range in several slices; even Samsung uses only three voltage ranges on the DVFS scale. I divided the frequency ranges as follows:
      • CPU: Divided into four slices, with frequency ranges of 200], 800], 1600] and ]1600 Mhz.
      • GPU: Three slices: 160], 533] and ]533 Mhz.
      • MIF and INT: Both only two slices with the bottom frequencies for each as middle-threshold.

      As mentioned above, controls can be found in /sys/devices/system/abb/ and the entries are self-explanatory. You can also change the frequency slice limits per sysfs, however in STweaks I only included the voltages for each slice only for now.

      Disclaimer
      {
      And that's about it in that regard. I have tried testing things over last couple of weeks, but I haven't come to a solid conclusion yet beyond what's presented by the stock characteristics: It's up to you people to do some advanced testing on the matter. My limited empirical testing in terms of voltages tells me it works as intended, but if a user with advanced measuring equipment would do similar testing to what I did back on the 4210 it would be perfect. }
    • zRAM: Switched over from LZO to Snappy compression algorithm, this provides much faster compression and decompression than the LZO implementation which was in the current kernel. I updated the Snappy libraries to the latest original CSNAPPY implementation, so this is extremely new.
    • Some kernel internal updates to speed up hotplugging and improve I/O latencies.
    • A correctly (Unlike basically every other kernel out there till now) applied load averaging patch regarding fixing a Moiré pattern in the scheduler load calculations which was floating around.
    • Fixed mono and equalizer switches in the sound engine. (Thanks to sorgelig for beating me to it)
    • Fixed led controls to behave correctly with user-space apps.
    • mDNIe digital brightness reduction:

      You can now lower the brightness to basically nothing via this: it uses the mDNIe engine to digitally remove luminance from the RGB channel values, as opposed to reducing brightness via a proper backlight/display driver. The side effect of this is that you lose colour resolution somewhat, but is a practical and working method to reduce the too bright minimum values of our displays.

      You have three configurables:
      • A reduction rate which you want to apply, this is the intensity of the darkening you want to achieve.
      • The take-over point; the backlight driver gets fed brightness values from 0-255 (In reality values below 20 have no effect). The take-over point is the point where the digital brightness reduction starts, on a reverse scale. The reduction is applied linearly from 0, (Full reduction taking place), to the take-over point (Zero reduction). The stock slider doesn't go below 20 in the interface, so practically the full reduction rate is never applied unless you use a third-party brightness controller app, just to keep that in mind, but in practice it doesn't matter.
      • Auto-brightness input-delta: This is needed because the stock framework is retarded in the values it forwards to the kernel, you can adjust this to avoid having brightness reduction when you don't want it on auto-brightness.

        Somebody needs to edit config_autoBrightnessLevels, config_autoBrightnessLcdBacklightValues in framework-res.apk\res\values\arrays.xml to fix this.

        Optionally, if you use a third-party app like Custom Auto Brightness which allows backlight values of down to 0, you can avoid this problem.
      The register hook needs to be enabled to be able to use this function.
    • EA8061 Note 2 owners only: increased the maximum brightness by 50 candela: the manual controls were limited to 250cd as maximum as opposed to 300cd which was only usable during auto-brightness, and unusable for any third-party apps. This doesn't apply to users with S6EVER02 controllers.
    • Unaligned memory access throughout the kernel when applicable.
    • Switched over to GCC 4.7.3 Linaro toolchain for compiling.

    Perseus alpha35 (06/04):
    • Further rewrote the in-kernel audio controls:
      • Threw out the old detection methods for something more robust.
      • This particularly enables non-cellular applications such as Skype, Viber, and so on to be detected correctly. A "calling" state now includes any and all use-cases where the audio is outputted via the phone's earpiece. This fixes microphone levels for such apps to correctly use the calling sensitivity value.
      • Added microphone level for camera use, this state is enabled whenever a camera stream is active. It should give more options into adjusting things to your likings.
      • By now the sound engine has only little similarities to Boeffla, any bugs and feedback now go directly to me.
    • Developers only: MHS: Added a new small tool for tracking media use and reporting it to other in-kernel drivers. Capable of detecting video recording, decoding and camera streams for now. See commit for more info.
    • mDNIe control changes:
      • Removed several controls in STweaks simply because people misunderstood them or misused them, or they simply had no rational use.
      • Video detection, now with the help of MHS, is no longer limited to the stock video player. Any video players using hardware decoding will now be able to make use of edge enhancement, HDR and DNR, this includes any web-based players and the YouTube app.
    • Custom LED controls implemented; Exposed most variable controls for the notification LED via sysfs and STweaks (LED tab). :
      • Control LED brightness. Currently the OS dictates, depending on brightness detected by the light-sensor, wether to run the LED in a low-power mode or in a high-power mode, you can now set brightness for both.
      • Blinking control, this is basically the shape of the wave-pattern that the LED blinks in, you have several controls, best described the data-sheet description:
        aGP3lNe.png


        The fade-in time period is TT1 in the graph, while the fade-out period is TT2.
        Slope (1/2/3/4) detention time represents DT1,2,3,4 in the graph, it controls how "steep" the four different curves are.
      • The LED fading checkbox simply switches between having the detention times controlled by the sliders to having them to 0 (Stock blinking behaviour).
    • The ZRam control is found in the I/O Tab in STweaks. Set it to 0 to turn it off completely, any other value to turn swap on. Changing value takes about ~10-20 seconds depending how loaded the disk is with swap pages so don't piss your pants if it doesn't react immediately.


    Sources:

    https://github.com/AndreiLux/Perseus-S3

    Credit and thanks:

    gokhanmoral, netarchy, and anybody credited in the commits.

    Thanks to sswagonman for the initial testing.

    TL;DR: before flashing aside from known issues in the second post.
    • This isn't an AOSP kernel.
    • Please choose the right version between N7100 (International 3G) and N7105 (International LTE).
      The kernels are labelled for their respective target device. You have no excuse in messing this up.
    140
    Other variants

    Note 2 L900 (Sprint) Download
    Note 2 i605 (Verizon) Download
    Note 2 T889 (T-Mobile) Download
    Note 2 i317 (AT&T) Download


    U.S. Cellular R950 & China Mobile N7108 (这个版本是专为中国移动用户提供的Samsung Galaxy Note II 变体,中国移动版-N7108)

    Kernels for these variations of the devices below.
    71
    Reserved. (Variant downloads moved to post 2)
    47
    Known issues [Updated 10/01]

    • None.

    Older changelogs

    Perseus alpha34 (22/03):
    • Updated sound engine. Based on Boeffla (Andip71)sound but custom fork with rewritten system interface and some other code re-factorings.
      • Should fix all FM Radio issues.
      • Brings us saturation prevention for the equalizer.
      • Privacy mode.
      • Microphone level control
      • You now have control over the speaker equalizer via sysfs, please visit /sys/class/misc/wolfson-control/ the controls are self-explanatory.
      • I removed the equalizer pre-sets from STweaks, if you want, set them manually:

        Bass-extreme: 12 8 3 -1 1
        Bass and Treble: 10 7 0 2 5
        Treble: -5 1 0 4 3
        Classic: 0 0 0 -3 -5
        Pleasant for ears: 4 3 2 3 1
        Eargasm: 12 8 4 2 3
      • I recommend HeadphoneAmpControl (thread - Play Store) for controlling the volume directly on a hardware level; it will overwrite the digital volume of the OS and use the hardware amplifiers only.
    • Enabled ZRam by default with disk size of 200mB and swappiness of 90%.
    • Applied a requested patch which allows PCs to be booted off from the phone storage.

    Perseus alpha33 (26/02):
    • Revamped and hopefully final version of mDNIe controls:
      • The controls work now on two levels: First we have a master sequence that overrides any and all of Samsung's settings; The master sequence is calibrated to sRGB norms on a precision level equalling and even surpassing the iPad3/4 with help of professional equipment (Spectrophotometer) and professional hands. All credit goes to Slimer777 for his incredible job in doing this.

        Calibration data:

        5bg76Ur.png


        Simple report: Download
        Detailed calibration report: Download
        Advanced colour management report: Download

        (Please note that the "before" values represent the raw screen output without use of mDNIe, these values don't represent any of the live profiles)

        The master sequence works as as the calibrated base; for people not wanting to bother further with any more controls, you simply enable this and you're done. Please keep in mind that every screen is slightly different and variations in manufacturing affect image output; this works as a base calibrated as close as possible to sRGB / Rec. 709 specifications.

        Second part is the register hook, it catches effect values and modifies them by applying delta values available as controls in STweaks and in /sys/class/misc/mdnie/hook_control/.

        Leaving both these options will give you Samsung's default values, plus the black crush fix.

        The register hook, while used on Samsung's profiles, is not capable to alter effects which are not integrated in that screen profile's value sequence, the "Movie" profile for example lacks some effects present in the "Dynamic" profile. The same is valid when having different scenarios, the "Camera" scenario will use different effects in its base than the "UI" scenario. To fully explore all possible effects, use the Master profile as it integrates all effect values known.
      • Each control has a master kill-switch which enables or disables the effect. This varies by profile and scenario, so you have control to only "toggle" the switch, whatever its state may be in.
      • Digital noise reduction - Reduces and flattens out grain. Advanced controls are found in the hook_control folder with the dnr_ prefix.
      • High dynamic range - A HDR effect which brings out details in dark and extremely bright scenes.
      • Digital edge enhancement - An edge enhancement effect. What we previously called "sharpening". Divided in controls for radius, amount and threshold. Read the Wikipedia page for more information. More advanced controls found in the sysfs under the de_ prefix.
      • For the above three effects, scenario consideration is taken into account. You can enable/disable them depending when you want it to be applied. Please be aware only the stock applications trigger the scenarios. I will try to enable at least the video scenario depending on when the hardware decoder is active in the future so that they are enabled also in third-party video players.
      • Chroma saturation control - Same as in previous version but with fixed labels.
      • Colour temperature control - By default this is disabled on all profiles, however, if your screen has a tint to it, this is the first control you should try to fix as it alters temperature on all channels.
      • The SCR controls are colour channel filters working on the Red, Green, Blue, Yellow, Cyan, Magenta, White, and Black channels.
        Imagine the controls as manipulating the corners of the RGB cube:
        G1W6fON.png

        (Credit to Wikipedia for the graphic)

        By controlling the RGB coordinates of each corner/channel we can mould the cube into a different shape. At the same time the cube is projected onto a hexagon; the perimeter / angle of the hexagon represents the colour hue, the radius of the hexagon from the middle represents chroma. We can use the chroma saturation controls to "push in" each corner of the cube, while moulding the corner's directions with the RGB controls. The RGB coordinates can be transformed into the HSL space space if needed, however I didn't include this function yet as I don't feel the need for it.

        STweaks has controls for the RGBYCMW channels, the K (Black) channel I left out because it makes no sense in altering it, but can be found in the sysfs folder.
      • Several controls have a "factory setting" switch, this are the burned in-hardware values for some controls, they overwrite the controls themselves.
      • Additionally to the controls exposed to STweaks, there are several other effects and modifiers exposed in the sysfs interfaces. This also includes the gamma curve controls for levels 0-255 in steps of 16.

        There are also some additional unidentified configurables which I wasn't able to properly give a name to or had no effects: Dithering, ABC (Seems to give a gamma brightness boost), SCC, UC, and MCM (Colour temperature) configurables whose exact effect isn't documented.


    Perseus alpha32 (29/01):
    • Charging control implemented. This is my own version.

      Charging currents:
      • Charging currents are dictated by input and charging current limits. The input current is the current flowing into the device through the USB port at 5V. The charging current is the current delivered to the battery at usually 4.35V. The device can have a higher charging current than input current because of the voltage differential, usually a 15% discrepancy. You can also have much higher input currents than charging currents, this can be useful when you are using the device in situations like gaming and charging your battery at the same time, provided your charger actually can provide the power.
      • There are 3 USB charger type categories: DCP / Dedicated Charging Ports which also includes AC chargers, but also special USB plugs; SDP / Standard Downstream Ports which usually includes almost all data enabled USB ports, and CDP / Charging Downstream Ports which includes also data enabled USB ports but which are designed to provide more power, usually on newer laptops where the USB port has a lightning logo next to it. More info here. - Technical explanation here.

      Charging logic:
      • Stable margin removal option. The charger chip is capable of detecting unstable charging sources; it dynamically reduces the input current in 100mA steps until it detects a stable voltage input [We don't have the charger chip datasheet, so the technical explanation is a bit blurry here on how it decides that it's unstable]. It further reduces it by 100mA as a safety margin, you can disable this now.
      • Complete disabling of unstable power detection. This simply ignores unstable power sources and leaves the input current limit at its set up value. This will fix charging problems people have been reporting. However, please use it at your own risk, the S3 chargers which have had these symptoms clearly have some issue in their hardware so you might actually kill them with this option enabled as there is no protection from the phone's side anymore.

        The actual input current limit can be read out in /sys/devices/platform/samsung-battery/power_supply/battery/current_max, so you can see the real limit there, it's the closest thing we have to the actual charging current on stock values since there is no hardware to read out the live currents.

      Voltage control:
      • Hard voltage control: 4.20, 4.35V, and 4.40V charging voltages are available. This is included for anybody running on third-party batteries, whom most of them have a 3.7V battery chemistry as opposed to the 3.8V on the stock battery. These batteries should be charged at 4.2V instead of 4.35V.
      • Soft voltage control: As opposed to the hard voltage control which is the voltage which the charger chip provides to the battery while charging, the soft-voltage is the battery voltage itself. 3.7V batteries have a top-off voltage of 4.2V and 3.8V again 4.35V. The default limit on the stock battery is 4.30V before the charger logic stops and considers the battery as full. This is also merely provided for 3rd party batteries which should be charged at lower voltages. If you overcharge your battery beyond these what are safe considered voltages, such as raising the default 4.30 top-off voltage to the design 4.35V or even higher, you are running into the risk of damaging the battery or even causing it to melt-down. Use at your own discretion.
    • mDNIe sharpness and RGB/YCM chroma saturation control in STweaks:

      I started implementing sharpness control in STweaks and went a bit over-board instead of a simple checkbox; You now have controls over the mDNIe registers as a delta offset value compared to the stock register values. I'm applying the offset to all mDNIe profiles and scenarios which have the specific post-processing effect active in that specific scenario. Meaning, that you start with the default profile; Dynamic / Standard / Natural / Movie and have the delta offset applied on top of that.
      • Sharpness delta. This is what brought most of the quality difference in hardcore's original tweaks. You can now fine-tune it to your own taste, and also take into regard that it produces a different effect for each screen profile while having the same delta - the base values between the profiles are different.
      • DE control - I don't know what this actually does and I couldn't discern much difference between the values, but it used to be disabled in hardcore's tweaks.
      • Chroma saturation control: This is composed of 2 values for each RGB/YCM channel. See the Munsell color system for a visual representation of the values controlled here. The chroma curve control describes the curve weight based on chroma intensity, the chroma gain is the chromatic gain that is being applied on the respective channel. Chromatic saturation weight is again another multiplier for all channels combined. I have not managed to properly identify the chroma grey threshold and its effects.

      Basically this is like an RGB control on steroids, and enables you to tune your screen to your own liking and calibrate it as you wish. Please note that not all scenarios in the profiles have chroma saturation effects, the Movie profile for example has no effect applied to the UI so chromatic control has no effect on it.

      I also want to state that the above are my deductions and theories on the descriptions of these controls, I'm not familiar enough on colour theory to be able to confidently say that these descriptions are correct, and the controls are a work-in-progress for now. Experts are welcome to contribute here.
    • Front buffer early suspend delay option for those who have issues with the CRT animation.
    • Did some refactoring on the Mali drivers and fixed a bug which may have caused less capable undervolting than the stock implementation.

    Perseus alpha31 (09/01):
    • Removed my own security fixes and replaced them with the official Samsung one. I guess it can now be disclosed: exynos-mem was only one of multiple entry-points for the memory exploit. We discovered the s5p-smem exploit ourselves back in December but kept it quiet, I fixed that one back in version 29.2 without mentioning. Nobody was secure from a smart exploiter up until then, SuperCurios or Chainfire's software fixes are also just patching a single hole in what is a Swiss cheese. Kernels >v31 and beyond stock LLA are now the only truly protected ones.
    • Samsung's fix for the sudden death syndrome (SDS) included. It is caused by eMMC failure on phones with VTU00M 16GB internal memory chips with revision 0xF1. You can check your phone with the "eMMC Brickbug Check" in the Play Store (Ignore the message if it says you're not affected, the type and revision is what matters). The patch is a firmware soft-patch that is applied on every boot and MMC resume, it is not a permanent fix. You will need to stay forever on kernels which include the patch, this also includes updated recoveries and their embedded kernels.
    • Some other minor MMC changes extracted from Update 7 sources.

    Perseus alpha30 (06/01):
    • Internal and memory voltage control. This is the first and only working implementation out there. Memory interface voltage is exactly what it the name implies, the voltage on the chip-to-chip interface from the SoC to the memory chip. Internal voltage is the whole SoC voltage excluding CPU, GPU, and the MIF. This includes all auxiliary function blocks such as the ISP/Image signal processor, camera interfaces, I/O interfaces, display controller and the MFC/Multi function codec hardware video de-/en-coder.

      - Internal voltage respectively memory voltage table is found in /sys/devices/cpu/busfreq/ as int_volt_table or mif_volt_table
      - The frequencies are defined as OPP's (Operating performance points), internal frequency and memory frequency (And voltages) together as a pair form an OPP. If you want to change the voltages through the sysfs files, keep in mind how you change them. MIF voltages are stored independently with each OPP step. INT voltages are stored in respect of their frequency key.

      - Default OPP steps are: 440220, 293220, 293176, 176176, 147147, 110110. The first three numbers represent the memory frequency, the other three the internal base frequency. For example 293220 means the memory interface is at 293MHz (586MHz DDR) and the internal frequency is 220MHz.

      - The voltages in STweaks are sorted out through some magic and are frequency unique, I recommend using that for controlling them.
    • Busfreq logic control added into STweaks, this includes all the already available configurables in the stock kernel with added explanations and I supplemented it with a sampling rate parameter.
    • Sensorhub driver and firmware updated.
    • Touchscreen driver and firmware updated.
    • Replaced pegasusq's runqueue detection logic with a new more superiror and precise in-scheduler collection logic, I found that the real runqueues are much less than what was previously reported. This should help a lot with hotplugging.
    • Enabled AFTR by default since we are now running very often in single-core mode. Keep in mind this mode is WFI Idle + LPA + AFTR.
    • Fixed a kernel bug which was eating up randomness entropy. This is related to that whole seeder business - please don't use any of those fixes. I also disabled virtual addresss randomization and at the same time disabled entropy generation from the block layer, which should avoid I/O overheads.
    • I raised the LPA CPU idle target residency, and fixed a bug in the ABB control for voltages for 900 and 1000MHz. I suspect these two to be causes of the sudden reboots for Note 2 users, and may fix them.

    Perseus alpha29 (18/12):
    • I'm doing a quick release because of the security fix, not very feature rich.
    • Fixes the exynos-mem security hole. This is my own fix and will not break camera. Read about it here. You don't need to use Chainfire's or Supercurio's fixes, in fact, you shouldn't use them because of the camera.
      [*]Updated Wifi drivers.
    • Increased max brightness by 50 candela. (Thanks nebkat)
    • Added GPU utilization control to sysfs and STweaks.
    • Changed default GPU thresholds to more relaxed values (75/17)
    • Added block device read-ahead control to STweaks. Additionally set the default read-ahead for internal memory to 256kB and 1mB for SD cards.

      29.1: - Reverted the Wifi drivers back.

    Perseus alpha28 (13/12):
    • 28.1: I reverted the striked out changes due to exFat. I changed my mind due to demand. I apologize for the chaos.
    • On your SD card showing up as damaged: it is not.
      I made a decision in terms of exFat compatibility; either I advance the kernel with newer upstream Linux versions or stay back and keep compatibility with the exFat modules. While I have nothing against proprietary modules or such, not being able to adapt them to the kernel is not optimal. You can format your cards to FAT32 or ext4 without much issue. Please back up your data and format your card accordingly before flashing v28.
      [*]Updated the block system to Linux kernel 3.3.
    • Introduced FIOPSv2, ROWv4, ZEN, BFQv5 as new I/O schedulers;

      FIOPS is the new default scheduler, it's a CFQ like fairness scheduler optimized for solid state storage. ROW should be the actual better performer here as it has superior logic, but I didn't set it as default because of some lags when installing applications. ZEN is just a mix of SIO and Deadline and nothing special. BFQ seems to underperform. I recommend the first two over everything else, and added the latter two just for comparison's sake.
    • Added dynamic Fsync control (Faux123). It disables Fsync only when the screen is on. Enabled by default (Fsync off).
    • Changed some logic on when the adaptive scaling voltages are applied in the kernel init sequence. This fixes GPU voltages not being applied at boot and also fixes the wrong default voltages being displayed in STweaks.
    • STweaks tab for I/O with scheduler selection for each device block and also dynamic Fsync.
    • New script side feature in the uci.sh framework: When inserting an override.profile file into the profile folder (/data/.perseus), the entries in the override profile will supersede the ones in your default profile. You can use to make CWM zips to turn off set at boot flags or to share targeted settings with others. The override is applied once at boot after which the profile deletes itself.

    Perseus alpha27 (02/12):
    • Sources updated with various updates from N8000u1 base. Included are following important changes;
    • Wacom drivers, Sensorhub firmwares, touchscreen updated.
    • Updated wireless drivers.
    • Adds a delay to SD Card host controller power-down, which I assume is to prevent some corruption. There is a specific change to Toshiba 19nm manufactured SD Cards, these are mostly the latest SanDisk 64GB cards. Together this may fix issues users have had.
    • Updates the camera interface, Video4Linux and Jpeg2x drivers and this fixes compatibility with 4.1.2 ROMs. Backwards compatibility is retained.
    • Other updates which are more transparent to the end-user.
    • Removed the sharpness modifications due to demand.
    • LTE devices only: Disabled CPU frequency clock while connected to a cable.
    • New PegasusQ logic:

      - We now have additional conditionals on the hotplug logic which checks the total load across all cores and is able to bias towards a specified core count if the load is low. This is useful because previously we could have had frequency spikes and lots of low-load threads triggering a hotplug-up while in reality it wasn't needed. The core count is more biased on keeping 2 cores online in most cases now unless really needed.

      - The way freq_step is handled has changed. We now take the remainder of load space above the up threshold and dissect it into three slices each having different frequency increase step sizes. The first two slices are each of up threshold differential size, lop-sided towards the lower end of the load scale. We specify the slice size and freq_step delta in regard to the original freq_step.

      - A new fast-down scaling logic; if frequency is beyond a certain threshold, we take a heightened up_threshold value solely on the down scaling logic to scale down more aggressively from the higher frequencies.
    • Audio enhancements (Gokhan Moral's port of Voodoo sound) re-enabled. Call-detection is currently broken (Effects are applied during call while they shouldn't be), but this fixes the effects not being applied otherwise. (Thanks to sjkoon for finally debugging that)
    • STweaks. This is my custom implementation of the kernel side, based on Gokhan Moral's initial implementation.

      - CPU overclocking and voltages interface.
      - Configurables for all CPU governor settings.
      - GPU overclocking and voltage interface.
      - Interface for audio enhancements.

      Just an explanation in regard how uci.sh (Script framework on which STweaks is built) works: The settings displayed in STweaks are the defaults with which the kernel boots the first time and are saved as a profile. The saved profile settings are applied before anything else on boot, including init.d. The values displayed in STweaks do not correspond to live kernel values, but the values saved in the profile. As such if there is another app or script setting something after STweaks, it will not represent those changes. Please be aware of that. I included labels with the default values for almost all values, they are dynamically generated.

      *Note: Currently the labeled default GPU voltages do not correspond the real default ones as the ASV voltages get applied after I'm reading them out for the interface on early boot. I'll fix this later on.

    Perseus alpha26 (14/11):
    • Updated MTP drivers back to the newest version. Fixes some inconsistencies which some people had.
    • Further increased MMC command timeout from Linux default 300ms to 3s in trying to finally squash errors and "unexpectedly removed SD card" after resume.
    • Ported Gokhan Moral's mDNIe interface and also added colour tone modes on top of the scenarios. System interfaces are found in /sys/class/misc/mdnie . Input syntax is the same as the output syntax, or, single register-value pairs as a single line in the output format, except 0xFF which is a terminator value.
    • Increased default sampling rate down to 30ms from 50ms for a bit more fluidity.
    • Updated Sensorhub drivers from latest sources.
    • Updated Wacom and E-pen drivers from latest sources.
    • LTE devices only: Updated some power management functions on the MDM modem from latest sources; this will drastically decrease the amount of wakelocks on mobile data and improve battery life.

      26.1
    • Disabled net_os_rxfilter_add_remove userspace/ROM filter management in the Wifi driver to prevent the operating system of enabling unwanted pass-through multicast and broadcast filters while in standby.
    40
    I'll do that. And I'll be sure you get a pm when I do. Also, you won't have to worry about your device rebooting anymore.

    Have a nice day folks. Sorry for disagreeing with the almighty god
    Get your head out of your ass, it's not about disagreeing or not, it's about the facts/content you disagree on. You're don't have immunity to criticism and neither do I so don't get upset when you are being called out on something.

    Let's do a breakdown:
    Some of these frequencies are set almost -100mv. Processors nowadays are becoming very efficient on power and are absolutely DWARFED by the amount of power your display, radios, and other hw uses. My own personal opinion is to look at other power consumers such as the aforementioned before playing with hw that in the grand scheme of things is not your biggest power consumer culprit, yet is vital to system stability.
    The point of undervolting is that it is a disadvantage free method of gaining power efficiency, and it can bring down the dynamic power usage on the SoC down, from, let's pull it out of my ass, 20% by the best estimates from what I have measured over the last year. If you have instabilities then it is your fault in your methodology because you are undervolting too much. We are merely eliminating a manufacturers safety margin by undervolting.

    I did these measurements last year on the 4210 on the S2 and they represent a almost linear scaling:

    nyKHt.png


    Off = CPU on with top off (Screen turned off and wakelocked system)
    SetCPU = Idling while screen on.
    ST off single = Stress test with single core enabled with top off
    ST off dual = Stress test with both cores enabled with top off

    They are not the same chip and they are not made on the same manufacturing process, but they are the same chip architecture with the same power savings methodologies, power scaling is dictated by physics and transistor dynamic leakage has been dictated by the same Power = Voltage ² x Frequency for the last 30 years.

    You can see in that graph how merely changing the minimum frequency from 200MHz to 500MHz increases the power consumption by 88mW on that chip. Undervolting and dynamic power usage scales and goes down EXACTLY quadratic to the voltage.

    That CPU usage is dwarfed by anything else is absolute MYTH. Let's take the S3 as we have measured data on that: http://displaymate.com/Smartphone_ShootOut_2.htm

    The screen uses 1.3W output maximum on full brightness and white image, the standard usage depending on the coulours is maybe half of that, and a fraction of it if you put a dark interfaced ROM onto your phone or turn down the brightness further.

    The 4412 under medium load from doing nothing to gaming as something from 250mW to 2-3W in the most demanding games, basically double or more of what the screen uses. The device doesn't get hot for nothing.

    SAMPLING RATE: 28000 - just to be clear, the sampling rate is the interval of spacing between CPU being polled for load. Use this as you see fit, the small the interval, the more it checks for pending tasks to be executed. I have found great success and performance (and accuracy and decreased latency) with 20000-15000. Battery will not suffer anything noticeable to the end user.
    No the sampling rate is not when the CPU is polled for load, it's the periods between which the governor does DVFS decisions, load is merely a statistic of the reverse of how much time the CPU is in idle.

    Yes, you are right, making quicker decisions through a scaled down sampling rate does indeed increase responsiveness, that is why I implemented the flexrate stuff (Other kernels lock the CPU to 800MHz and it is a battery drainer), so that whenever you are touching the screen things will accelerate down to 12500µS and up until the flexrate max frequency after which it goes back to the default sampling rate.

    Setting the default sampling rate too low is BAD, it causes too much jitter on very short loads and it scales down the CPU needlessly too high, and on top of that, there is a power and latency penalty to switching frequencies. Having the CPU do that without interactive use is a needless and useless thing.
    honestly, I really don't see the need to mess with this either. More potential instability for a minimal gain in battery when analyzed against your main thieves of your voltage - display, radios.
    Same thing, again, absolute nonsense as with the CPU voltages above. Internal voltage especially can bring power gains, albeit it is much less than the CPU, but it is a free gain.
    dealine and noop will give you the best performance on these devices in real time, data speeds are also increased significantly with these two IO schedulers.
    Deadline is alright, but noop just means that you are turning scheduling off. It doesn't bring you any performance gains at all, you are better off using an IOPS and latency designed scheduler like ROW or FIOPS (I'll bring that back when I have time), again, Deadline is ok, and SIO is a compromise of everything.

    ywGjx.png


    Those are the benchmarks I did with Bonnie++ back when I did the I/O overhaul in version 28. They are very flawed as in they are merely single runs but at least they give you a first impression. I didn't do more because that table already took me half a day to create, and that's only on a 512MB block size and single runs. Deadline and Noop are okey because they do little and no schedeuling at all, the benchmarks just show simple singlethreaded I/O requests, there you will never see any scheduler much in front of the other aside from latencies, but schedulers are meant to schedule concurrent requests and that is why Noop should never truly be used. From all the real schedulers only FIOPS and ROW are able to compete with them. That's why I set up ROW as default until I can bring FIOPS back.

    Also, if i may add this... I would recommend bumping the min frequency to something like 500MHz for the CPU. Reason being is simple - smaller tasks (maintenance, logging, etc) can be handled with ease without causing unnecessary CPU ramping.
    Maintenance, logging???!!! These are tasks that do not even remotely task the CPU even at 200MHz with any significant load, any single process out there running in the background can be done at 200MHz, it is more power efficient and you are not even aware of it.

    Aside from the power aspect which I explained above, there is also other stuff related to the governor scaling logic itself that it bad: If you are running the CPU that high as a minimum threshold, you are : 1) Also breaking the CPUPower driver's setting of migrating tasks on a single CPU at low frequencies so that the other cores can achieve undisturbed and long idle state residencies. 2) Breaking the hotplug logic frequency thresholds as they are not meant to plug in that early and can be uselessly triggered by a single CPU frequency jump up from 500. 3) You are breaking the lower level dedicated logics as freq_for_responsiveness and threshold_at_min_freq which do extremely relaxed scaling logics to deal with minor tasks fast and no do over-scale too much.

    THIS is performance without battery life taking a hit - making your system AGGRESSIVE YET EFFICIENT, not hindering and crippling it to not do what it is programmed to do. Efficiency. "Less is more" as you see thrown around in the Linux world can also be thought of as more is less if you think in terms of more thought, tuning, and logic is less power consumed by your device.
    So you see how that whole last paragraph of yours is just nonsense and that last phrase is really something one might take out of a PR article. Your settings you suggested were not given more thought.

    So with all of that in mind:
    I'll do that. And I'll be sure you get a pm when I do. Also, you won't have to worry about your device rebooting anymore.
    Yes please do deliver your kernel, because I want to see more nonsense delivered with an attitude. We already have a large amount of clueless developers on this site. The problem isn't that they're unskilled or do not know the technical details, everybody was like that including me; It's that they think they are doing some sort of meaningful change without giving the effort of thinking or dwelling into the topic more than 2 minutes. People are suffering from a severe case of the Dunning-Kruger effect (I was so happy when I found out there's a name to that attitude).

    And if you feel the need to be sarcastic and attack me on the reboots because that's just pathetic, it was caused because I did a merge-mistake regarding the lowpower residency times that the Note 2 apparently doesn't like, and I wasn't able to find it until v30 because not a single soul except a few people were able to give me a proper kernel log. Some people forget I don't even own this device.

    There's another developer on this very device who has played with a configuration value a few times over the last few weeks but couldn't do a simple Ctrl-F of that value in the very same file to see what it does and then realize it isn't even used. Or another dev changing voltages and "testing" them out for stability over a period of time, adjusting them, without realizing it those values are never even used and immediately overwritten on boot. New features! Adjusted XX for more performance! New kernel will make your erections bigger!

    What do you want me to say to such people in a nice and civilized manner? People blame me for being arrogant, but then put yourselves in one's shoes for once and think about it.

    Bugger-off is what I say.


    ____


    I will update the kernel here to v31 here too but I'll do that tomorrow or so since I had a lot to do on the S3 regarding the SDS bug and still want to figure some things out regarding the new security fix. Anyway it's not as urgent for Note 2 users. Just be patient.