[Kernel] [N7100][N7105] Perseus

Thảo luận trong 'Galaxy Note II' bắt đầu bởi android24h, 11/11/12.

  1. android24h

    android24h Super Moderator

    Bài viết:
    Được thích:
    Perseus alpha25 (23/10):
    • Raised and fixed USB, MISC charging rate to 900mA.
    • Enabled OTG car dock, smart dock and music dock charging. Alternatively this can be triggered if you short pins 4 and 5 of the USB connector with a 40.2kΩ, 64.9kΩ or 619kΩ resistor.
    • MTP fixed on OSX devices.
    • Fixed ROM power savings feature, this was originally broken because of the addition of overclocking, and the same interface that Samsung uses for limiting CPU speed in power savings mode also limits the max frequency to factory defaults. This is now fixed and powersavings mode will throttle to 1000MHz.
    • Fixed mis-configuration of the default audio settings to improve sound quality, sorry about that.
    • Ripped out the old GPU scaling mechanisms and scaling logic and replaced it by something new.

      The old mechanism was getting overly complicated and was a remnant of the Galaxy S2 where we merely had 2 frequency steps originally; this was fine then, but isn't anymore today. The threshold fuçkery was confusing to a lot of people and people generally misconfigured their settings with inane values.

      The new scaling logic follows a more CPU governor-like approach: Scaling up logic is basically the same as before: the GPU will scale up to the next frequency step when the load reaches a certain threshold. Up-scaling takes place step by step. The up-scaling threshold is now global and a single value applies for all frequency steps.

      Scaling down in the new logic resembles more like the ondemand method; The scaling down takes place when the load goes under a certain threshold. This threshold is dictated by the up-threshold minus a down-differential. By default they are 90 and 10. Triggering this condition we scale down into a dynamic frequency target capable of accommodating and dictated by the load level. In plain words, we can scale from max frequency immediately down to the lowest one. This will improve power consumption.
    • Ripped out the old GPU control interfaces and rewrote it with something new to accommodate the new logic. Your old scripts won't work anymore.

      We now have 10 frequency steps to the user's disposition; defaults are: 54 108 160 266 350 440 533 640 733 800.



      The new system interface targets can be found in /sys/devices/system/gpu/ .

      - freq_table outputs a list of the current frequency table. You can use this interface for configuring the frequencies themselves in two ways:

      Pair-wise target setting: echo 533 500 > /sys/devices/system/gpu/freq_table will change the 533 step frequency to 500.
      Whole-table echo: echo 54 108 160 266 350 440 500 640 733 800 > /sys/devices/system/gpu/freq_table

      In the above example you end up with the same end-result over the stock settings.
      Valid clock frequencies are as follows: 54, 108, 160, 200, 266, 275, 300, 350, 400, 440, 500, 533, 600, 640, 666, 700, 733, 750, 800.

      - volt_table outputs the voltages to the corresponding frequencies.

      Pair-wise target setting: echo 533 1025 > /sys/devices/system/gpu/volt_table will change's 533MHz's voltage to 1025mV.
      Whole-table echo in the same format as freq_table. Valid voltages are 600mV => x <= 1200mV.

      - thresholds sets the two global threshold settings. echo 90 10 > /sys/devices/system/gpu/thresholds . Remember that the first is the up-threshold and the second is the down-differential. The down differential may not be higher than (99 - up value).

      - min_freq and max_freq set the limits of the current DVFS policy. By default we're scaling from 160MHz to 440MHz (Same as stock).

      echo 533 > /sys/devices/system/gpu/max_freq will enable the top limit to 533MHz and basically overclock the device.
      echo 108 > /sys/devices/system/gpu/min_freq in the same way sets the lower limit.


      - current_freq shows the current frequency. This is if somebody likes to make a monitoring app or something.

      - time_in_state shows the time spent in µS on each frequency step. Echo 0 to it (by default disabled) to disable it, 1 to enable monitoring, and any other numerical value to reset the timekeeping back to 0.

    [​IMG] Kernel-N7100XXALJ1.tar
    [​IMG] Kernel-N7100XXALJ1-CWM.zip
    [​IMG] Kernel-N7105XXALIJ.tar
    [​IMG] Kernel-N7105XXALIJ-CWM.zip

Chia sẻ trang này