[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
sysfs path for tweak apps

BLN

-- /sys/class/leds/button-backlight/bln -- 0 off 1 on

-- /sys/class/leds/button-backlight/bln_speed -- Values from 0 to 9 possible, 0 slowest; 9 quickest

-- /sys/class/leds/button-backlight/bln_number Values: 0 = not limited, blinks till screen switched on, 1-50 -> exactly that number of button light blinks

Fingerprint doubletap sleep / configurable Home button functionality

-- /sys/fpf/fpf -- Value 1 -> work simple HOME input button (configurable), Value 2 (default) - work as doubletap sleep without 3rd party apps, Value 0 - off, stock behavior

-- /sys/fpf/vib_strength -- set it to 0 to have no vibration, set about 20 for normal

-- /sys/fpf/fpf_dt_wait_period -- Values: min 0 max 9 , (default value without tweak app setting is 2 -> 90msec, 0 = 72msec... 9 = 146msec wait before press is interpreted as single press)

[MENTION=4684315]flar2[/MENTION] Backlight Dimmer functionality

-- sysfs path: /sys/module/mdss_fb/parameters/backlight_dimmer - valuess: Y or N (on or off)

-- sysfs path: /sys/backlight_dimmer/backlight_min -- minium brightness value, by default 10

LED mods:

/sys/class/leds/button-backlight/bln_rgb_batt_colored --- 0/1 on off for Charge led coloring

/sys/class/leds/button-backlight/bln_rgb_blink_light_level --- 0-20 divider for brightness level, lower = brighter. 20 - fully off!

/sys/class/leds/button-backlight/bln_rgb_pulse --- pulse green led on off 1/0

Fastcharge

/sys/kernel/fast_charge/force_fast_charge --- 1 on/0 off

Adrenoboost v2

/sys/class/kgsl/kgsl-3d0/devfreq/adrenoboost --- 0 off, 1 smooth/battery friendly, 2 stronger, 3 aggressive

Soundcontrol Headphone gain

sysfs path: /sys/kernel/sound_control/headphone_gain

setting: # echo "20 20" > /sys/kernel/sound_control/headphone_gain

Values ranging from -10 to 20

notification booster:

--- /sys/fpf/notification_booster : 0 off, 1-100 value by which voltage will be multiplied (default 2) (maximum voltage ~3300mV)

-- /sys/class/leds/button-backlight/bln_flash_blink - 0/1

-- /sys/class/leds/button-backlight/bln_flash_blink_number - 0 (infinite) 1-50

-- /sys/class/leds/button-backlight/bln_flash_blink_wait_sec - 1-10 delay in seconds between blinks

---- /sys/class/leds/button-backlight/bln_flash_wait_inc - 1/0 increase/not increase delay with time

------ /sys/class/leds/button-backlight/bln_flash_wait_inc_max - maximum plus in seconds of the delay, increased with time 1-8

----- /sys/class/leds/button-backlight/bln_flash_haptic_mode 1/0 - 1 = flash only when DND is off (vibration notifications will trigger the blinking) ( default value: 1 )

----- /sys/class/leds/button-backlight/bln_flash_dim_mode 2/1/0 - 2 = in dim mode do NOT flash at all, 1 = in dim mode flash half the brightness of the full flashing, 0 = no dimming ( default value: 1 )

----- /sys/class/leds/button-backlight/bln_flash_dim_use_period 1/0 - 1 = switch to dim flash mode in a given period, 0 = no restriction for dimming, if you set it, it will be flashing dim regardless of current time ( default value: 1 )

--------- /sys/class/leds/button-backlight/bln_flash_dim_period_start_hour 0-23 - start hour for dimmed flashing (default 22 (10PM))

--------- /sys/class/leds/button-backlight/bln_flash_dim_period_end_hour 0-23 - end hour for dimmed flashing (default 6 (6AM))

vib. notification reminder:

/sys/class/leds/button-backlight/bln_vib_notification 1/0 (default 0 OFF)

/sys/class/leds/button-backlight/bln_vib_notification_slowness 5-30 (default 15, periodicity bound with flashlight notif)

/sys/class/leds/button-backlight/bln_vib_notification_length 1-500 (how many milliseconds to vibrate on each reminder, default 250)

CHANGES

3.7.14 - 15 July 2018

- Cross update from fresh official U Ultra sources: kernel security fixes

- Updating WireGuard to July snapshot

2.7.1 - 2 Jan 2017

smaller changes, single vib notif detection

2.7.0 - 23 Dec 2017

k.adaway adblocker added

2.6.0 - Nov 2017

no-root configuration UCI interface added from U11

wireguard vpn added

2.4.1 - 28 Oct 2017

Notification booster fixes (aosp alarm, and max boosting power set)

2.4.0 - 20 Oct 2017

ROM side Ambient display support

2.3.4 - 14 Oct 2017

Fix up Flashlight deepsleep problem - now it should work with the correct period even while phone is in suspend mode

2.3.3 - 12 Oct 2017

Fix up Flashlight notification visibility (dim and normal)

2.3.2 - 11 Oct 2017

AOSP fix Wifi tethering

2.3.1 - 10 Oct 2017

AOSP fixes for LED/BLN

2.3.0 - 8 Oct 2017

- Sense/AOSP hybrid support

- notification reminder setting

- Full light-vib/Low light-vib switch (VolUp/Dn combos)

- flashlight notification

2.2.2 - 3 Oct 2017

- updating with sources for base 2.51 official

- adding new notification booster feature ported from u11 cleanslate

- adding Fingerprint unlocking vibration connection to Home button vib strength tweak setting

- blueborne kernel side patch

2.2.1 - 2 Aug 2017

-Fixing fastcharge accidental removal issue

2.2.0 - Jul 30 2017

- F2FS support for Nougat version

2.0.1 - Jan 14 2017

- F2FS support for Nougat version

2.0.0 - Dec 8 2016

- Nougat version

1.7.3 - sep 13 2016

- Fixing QCOM security issues:

--- CVE-2016-5342 Buffer overflow vulnerability in wcnss_wlan_write

--- CVE-2016-5343 Multiple memory corruption issues in write operation in QDSP6v2 Voice Service driver

- Removing Analogue Headphone Gain feature - working like stock again, removing so that low impedance headphone static noise issue is resolved

1.7.2 - aug 28 2016

- Fixing QCOM security issues:

-- CVE-2016-3866 Buffer Overflow Vulnerability in msm_compr_ioctl_shared

-- CVE-2016-5344 Integer Overflow in MDSS Driver

-- CVE-2016-3859 Arbitrary write vulnerability in msm_isp_send_hw_cmd() when processing VIDIOC_MSM_VFE_REG_CFG ioctl command

- BLN fix:

--- accidental switch off button backlight with Always on option in normal Sense button backlight Settings

1.7.0 - aug 26 2016

- Update to official HTCDev 1.91.617.1 kernel sources retaining security patches and features. Main changes by HTC:

---binder - android locking optimizations

---camera optimizations, actuator patches, sensor driver patches

---general security patches here and there, overflow fixing patches

---htc charger: optimizations, screen off handling

---ext4 patches

---kernel core: timer patches

- Default Button Light Notification brightness level pumped up - as noticed by a few users, the blink light was much less intense than possible maximum. Now it's brighter, and also with sysfs settings possibility - sysfs: /sys/class/leds/button-backlight/bln_light_level 0-20

- WLAN wakelock timeout reduction - credits to [MENTION=2967322]buckmarble[/MENTION] - set to a default reduction of division by 6, you don't need to tweak it, but possible through sysfs - sysfs: /sys/module/bcmdhd/parameters/wlrx_divide and /sys/module/bcmdhd/parameters/wlctrl_divide

- Sound Control: Headphone Analog Gain - credits to [MENTION=4684315]flar2[/MENTION] - set to off, setting possible through sysfs - sysfs: /sys/kernel/sound_control/headphone_pa_gain

1.6.0 - aug 22 2016

- DriveDroid support, a.k.a ReadWrite/RO-CDROM/USB mounting of ISO images

-- DriveDroid. A few possibilities: You can create your own empty ISO images on your phone with DD just to mount them ReadWrite as USB Mass Storage units on your PC (beware: you cannot mount these images onto your phone from this app tho', only to your PC! As usual you still need to use MTP file transfer to access the internal storage if you want to copy files accessible by the phone too). Also You can download a big heap of Operating system ISO images to boot them from the phone on your PC. Read more here: https://play.google.com/store/apps/details?id=com.softwarebakery.drivedroid&hl=en Thanks to [MENTION=3354524]GRIDSpawn[/MENTION] for bringing this topic up to my attention

1.5.6 - aug 19 2016

- Button Light Notification fix: fixing use case where On-Screen Navbar buttons are used in Custom roms like ICE 10 or LeeDroid, BLN was accidentally left on blinking when screen was switched on. This version fixes this issue

- Other minor fixes related to how Fingerprint Home button remapping mode works in some rare use cases should work better, work as in stock kernel

1.5.5 - aug 17 2016

- LED mods fix: fixing Intensity set to 20 with stock notification and charge LED mode will result in LED off - Thanks [MENTION=7601624]ibrokemypie[/MENTION] for reporting it

1.5.4 - aug 16 2016

- Sound Control for Headphone jack: all credits and thanks to [MENTION=4684315]flar2[/MENTION]

- LED mods fix: fixing LED intensity when Gradient charging LED color is off, and stock charging LED intensity is set appropriately. Before the fix, the LED intensity setting was not applied on stock charging LED mode.

1.5.3 - aug 13 2016

- Security fix: CVE-2016-2059

1.5.2 - aug 10 2016

- Adrenoboost version 2.2 - smooth gaming, battery friendly, - further enhancements:

-- Corrected leveling mechanism to achieve a bit more agile freq switching on higher levels, fixing first boot level value calculation, and alto the idle (out of governor control) freq drop problem

-- finally settling with 133MHz init/idle freq, does not affect real-life performance, slightly better battery life[/B]

- Security fixes: CVE-2016-2504, CVE-2016-2503

- LED mod: LED fully off - -- if intensity set to 20 on the 0 to 20 scale will turn of RGB LED fully. Use Tweak apps to achieve that, set to 20, LED will stop lighting

1.5.1 - aug 6 2016

- Adrenoboost version 2.1 - smooth gaming, battery friendly, - further enhancements:

-- Low demand situation like 2D will stay on battery friendly frequencies on each Adrenoboost level: battery friendly video playback and browsing even meanwhile you leave the adrenoboost high levels on 2 or 3. (Level 1 remains the same battery friendly as before, so don't need to worry about this feature on default level: good gaming, and nice battery life)

-- More aggressive ramp up on Level 3 GPU boost level at high demand

1.5.0 - aug 4 2016

- Adrenoboost version 2 - smooth gaming, battery friendly, fixing GPU handling of stock HTC kernel -- battery friendly conservative governor. Three levels (1 is the most battery friendly), and off state. ICE configurator / LeeDroid settings should handle it soon (thanks [MENTION=4684315]flar2[/MENTION] for the original idea)

- Fastcharge for USB 2.0 -- PC's, Laptop's will now be able to charge your phone (bumping 0.5A draw to 1A from USB2.0 port, retaining the data connection all working)

- SoC chip parameter updates (DTSI) for optimal working of msm8996 chip of HTC 10 - picking the ones that keeps stock stability intact

1.4.0 - jul 28 2016

- Chromatic battery charging led (amber to green based on battery level percentage, then at full charge it starts to smoothly change from full bright green to golden and the back to full green cycling, signalling 100% battery for easy spotting)

--- upper grill led while charging show level of battery charge (the more it's amber the less it's charged, the greener it gets the more juice, growing between the battery percentage 0-100%), can be switched to stock amber and 100% green in ICE configurator (it's on by default)

- Fading notification led (blinking is now of fading/pulsating type by default, can be switched to stock short blinks in ICE configurator)

- Upper grill RGB LED light brightness level you can lower the brightness level of the upper grill RGB led now (use ICE configurator's latest version!)

--- some people asked for this, so upper RGB LED won't be that bright as it is on stock. You now have this option.

1.3.1 - Jul 20 2016

- BLN: fix bln switch on/off - now if you switch it OFF, it will remain really OFF (introduced bug recently: notif vibration detection based Blinking was not working with the bln switch param...now it works) - thanks for those who reported this

- Added Sony HID fix by [MENTION=4684315]flar2[/MENTION] and enabled Sony HID driver in kernel

1.3.0 - Jul 17 2016

- Adding full KCal Color Control interface - ported to HTC 10 mdss/mdp driver by tbalden (original patches by [MENTION=4316709]savoca[/MENTION] / [MENTION=3332811]faux123[/MENTION] , ported from [MENTION=4684315]flar2[/MENTION] 's m9 sources)

--- description of sysfs endpoints and the Color Control app download URL: http://xdaforums.com/andr...ntrol-t3032080

1.2.5 - Jul 13 2016

Button Light Notification bugfixes

- re-trigger BLN blinking for each time a notification starts, even when BLN number is set to unlimited (0), because now BLN has two different light patterns

- fixing notification turning-off accidentally for calendar events when multiple events/notifications trigger BLN

1.2.4 - Jul 12 2016

Button Light Notification:

-- "Endless blinking while Charging" functionality added (if phone's on charge notification vibration triggered blinking won't stop)

----- effectively helping out with the functionality of the green/amber notification led, while those are not blinking in charging mode. You won't miss notifications while charging: it won't stop after a while like it was stopping in previous version if it's in charging.

-- "Vibrating notification length based Button light notification patterns" functionality added:

----- short notifications (e.g. facebook, calendar, where one vibration is below or equal to 0.2 sec) will blink the buttons with a quicker, double blink pattern

----- normal/long notifications will remain with the button blinking pattern as it was in the previous versions

1.2.3 (v2) for Sprint - Jul 7 2016

- fix merge error: added fully lost BLN feature back to the sprint version.

other versions don't need update

1.2.3 - Jul 6 2016

- Button Light Notification:

--- adding vibration based triggering of BLN. If you have vibration set for notifications on your phone, BLN can work even if your phone is on Charger (constant orange light). Also BLN based on notification vibration pattern detection now can retrigger the blinking even while Green/Amber led is not retriggered to blink by HTC stock ROM.

- Added Verzion version for 1.19 stock ROM

- Added Spring version for 1.80 stock/custom ROMs

1.2.2 - Jul 4 2016

Button Light Notification:

-- Doubled the time between blinks. Still with highest bln_speed you can achieve fast blinking, but default behavior is longer time between blinks now.

-- slightly slower fade-in/out speed, and shorter hi brightness pause time for a more pleasing fade effect.

1.2.1 - Jul 2 2016

- added Button Light Notification default maximum number of blinks 15, after 15 it will stop blinking for energy efficiency, and added possible configuration for tweak apps:

-- sysfs path: /sys/class/leds/button-backlight/bln_number Values: 0 = not limited, blinks till screen switched on, 1-50 -> exactly that number of button light blinks

-- sysfs path /sys/class/leds/button-backlight/bln_number_max value: maximum possible bln_number value (currently 50)

Thanks to flar2 for advice on alarmtimer

- added [MENTION=4684315]flar2[/MENTION] Backlight Dimmer functionality (you can use EX utility to set this up as you want, or your own su.d scripts based on sysfs path below)

-- sysfs path: /sys/module/mdss_fb/parameters/backlight_dimmer - valuess: Y or N (on or off)

-- sysfs path: /sys/backlight_dimmer/backlight_min -- minium brightness value, by default 10

1.2.0 - June 22 - 2016

- Added Sprint compatibility files (please report back! Thanks go to [MENTION=3989587]~clumsy~[/MENTION]

- Updated to super stable official kernel source base 1.80.401.1 -- with CleanSlate features

-- Camera ISP / focus fixes

-- WiFI driver updates

-- charger updates

-- SPI driver optimizations

-- usb port fixes

-- core kernel scheduler optimizations

-- USB alsa minor fix

17-june-2016

- Adding flashable downgrade patch to let older kernel base work with 1.80 ROM bases (to be usable with the base version used by most of the current custom roms and official WWE HTC rom base version )

1.1.0 - 6-june-2016

- Updated 1.53 to 1.55 htcdev kernel sources, a few changes:

-- minor fair scheduler update

-- htc charger additions

-- htc's own zygote (android's root) process protection implementation

1.0.2 - 5-june-2016

- Fingerprint Doubletap Sleep : shorter minimum wait time settable for doubletaps, 0 value now means even less so single Home button pressing can be handled faster, less lag

(use ROM's tweak app to select lower values, lowest minimum is now sysfs speed set to 0 == 72msec latency, this is barely noticeable on single home button press, the default value is 2 == 90 msec, not much more but a bit more comfortable)

- building non-proprietary modules into kernel so it can be used even on bases where they cannot load from system partition.

1.0.1 - 5-june-2016

- Fingerprint Doubletap Sleep : shorter default wait time for doubletaps, so single Home button pressing can be handled faster, less lag

- Fingerprint Doubletap Sleep : addition of sysfs configration points for tweak apps

-- /sys/fpf/fpf_dt_wait_period Values: min 0 max 5 , (default value without tweak app setting is 1 -> 90msec)

----- 0 meaning smallest time to wait for doubletap: 81msec,

----- 1 meaning 90msec, .....

----- 5 meaning 126msec

Each +1 means 9 more milisecs of waiting period for doubletap event. If that time passed, it will be interpreted as Single press on Home button.

1.0 - 4-june-2016

- Update to 1.53 kernel sources from HTCDev

- Button Light Notification new sysfs provided for Tweak apps: /sys/class/leds/button-backlight/bln_speed -- Values from 0 to 9 possible,

--- 0 slowest speed blinking, 9 quickest (ranging from 5 sec to ~1 sec speed)

--- The slower it is, the more dark period it has.

- Button Light Notification bug fixes

- added vidc patch (for video playback power consumption optimization), thanks go to [MENTION=4684315]flar2[/MENTION]

- Support for rom base below 1.30 not possible (if you need it, use cleanslate v0.6)

0.6 - 2-june-2016

- fix forced pin screen when wrong fingerprint read too many times

--- (still present the issue, that when you do this with a quick tap on screen, screen is on, and going with fingerprint, and PIN should appear, it won't appear. It's present on the other kernel as well as my tests show, because of the shared codes and approach)

- fix "no screen unlock sound" issue

- added configuration filesystem sysfs endpoints for tweaking apps later use:

-- /sys/fpf/fpf Value 1 -> work simple HOME input button, Value 2 (default) - work with doubletap sleep

-- /sys/fpf/vib_strength -> set it to 0 to have no vibration, set about 20 for normal

-- /sys/class/leds/button-backlight/bln Value 1 -> on, Value 0 -> off

0.5.1 - 30-may-2016

- fixing a null pointer reference in a newly introduced logging, doh' (resolving a very rare kernel reboot issue, please update if you're on 0.5!)

0.5 - 30-may-2016

- Fingerprint Double Tap Sleep finalized, working without issues, fully reliable

0.4alpha2 - 30-may-2016

- FingerPrint DoublTap Sleep original feature and impl by tbalden , incented by my own kernel for m9+ ;)

- adding haptic feedback on first press of the Fingerprint scanner so firmer feedback for intuitivity

- added the 'hack' that allows loading of Texfat (sdcard) and encryption modules which are on different ROM bases (so SDCard issues should be unified gone)

0.3 - 24-may-2016

- fine tuned Button Light Notification flash pace, more unlighted period, and smoother lights fade transition

- two types of installers (one without modules for 1.21/1.30, one with modules for 1.19 verizon stock rom)

0.2 - 23-may-2016

- added all proprietary and non-proprietary modules to installer to make sure it works on 1.19 VZW base as well (NOW MODIFIES SYSTEM image as well to push modules, mounting it as RW once!)

- NTFS/RW support

- TCP Congestion - advanced settings enabled

0.1 - Initial release 22-may-2016

- 1.21 VZW base

- button light notification