yashsingh1/xdaforums huggingface dataset:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
- Update 2.3.3 stable -​

Flashlight notification update:

- Fixing up for HTC 10 with a more precise timing.

- Should be visible in dim and normal mode as well

Download:

https://www.androidfilehost.com/?fid=817906626617938249
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
ehh...sorry guys, it seems that the flashlight notification still has some issues, when phone gets in sleep/suspend mode... the camera flash_regulator_enable call is not being executed, and so the flashlight won't blink when in deeper/suspend state...

Will have to have a bit more time with this...

It only worked out well for a bit, because while testing I had it on USB cable which kept it out of suspend mode...

...will compare to HTC u11 sources of the driver, where it is blinking properly
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] kend0g:
Hey I was just looking at posts and ran across those tweak links a few posts back.. They are for nexus5x and 6p(soc808-810) our phones are soc820, rogersf81 just updated his EAS(you should know what this is)/HMP(pnpmanger which would be like interactive gov) tweaks to version 10 here's the link

https://xdaforums.com/htc-10/development/advanced-interactive-governor-tweaks-t3543589/page48

There are downloads for the regular scripts and also balanced and battery Magisk zips., right now I'm using the Magisk battery zip and its working very well.

The HMP tweaks will work for your kernel.

Actually I switched back to your kernel from an EAS kernel and with these tweaks I get a couple extra hours SOT.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Splendid! Will give it a whirl too

Thanks
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Ha, looks like I've found the right solution for all flashlight issues I faced... Testing
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] VFL:
I have result the kernel on 2.3.3 and 2.3.2 have battery drain

2.3.1 best battery and long
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] DeeZZ_NuuZZ:
Running dirty unicorns with 2.3.3, kernel drains more than usually. Checked everything and it can't be an app or service.

Gonna check then battery life after your new upload :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
- Update 2.3.4 stable -​

Flashlight notification update:

- Fixing up for HTC 10 with a sync led driver mod and additional alarmtimer to ensure wakeup

[YOUTUBE]GmQLBvXPMlY[/YOUTUBE]

Download:

https://www.androidfilehost.com/?fid=673791459329053472
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
seems the means to do the cpu wake up is a bit too strong in 2.3.4..... I'm tuning it to let more deepsleep happen while flashlight on... (keep on mind, that using Flashlight is not a big battery drain source, but still will keep the cpu a bit more busy at notifications because there's no way to do the blink in the background unlike with the normal programmable leds...)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] mitchst2:
How do you switch of the flashlight notifications if like me the option doesn't appear in Lee's tweaks app.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Have you tried the LeeDroid tweak app from play store? Im not sure if the rom contains the latest one where there's a fix for it. [MENTION=398245]LeeDroid[/MENTION] ?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] mitchst2:
On the latest from play store

Developer ROM though

[MENTION=3088420]tbalden[/MENTION]

Any other way by editing a file for example?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
yes,

-- /sys/class/leds/button-backlight/bln_flash_blink - 0/1
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] mitchst2:
Thanks

Will that just switch off the flash and not the capacitive buttons?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Yep, only the flashlight
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] mitchst2:
Confirmed by your response thanks. Never set my phone face down so prefer capacitive notification.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Reasonable. The idea came up with the htc u11 with it's reflective glass back, more reason there. Still wanted to port to the 10 , it's metal back is really really nice as well.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] mitchst2:
Loving that you're here working on the kernel. I'm sure many put their phone face down just not me as I don't use any form of phone protector.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] mesarabi:
Yes that's nice future and i looked many apps for this future but none of them doesn't work on htc10 but now after almost 1year i have flashlight notification thanks to you and your kernel

I appreciate that
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] VFL:
I had latest kernel 2.3.4 but flashlight still not show

Do u use s-off or s-on ??
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] mesarabi:
S-off and still on 2.3.3

I want to flash 2.3.4 now

---------- Post added at 09:09 PM ---------- Previous post was at 08:48 PM ----------

I flashed 2.3.4

For first notification just one blink and then nothing

I turn on notification reminder and after that 3 blink for every massage and then nothing

I want to it blinks until i pickup and turn on the display not just one time or 3 times

On 2.3.3 the bottom flash(yellow one) blinks but now the upper one(orange one)blinks and the light is very low
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
s-on is fine, just as s-off, but not needed.

can you tell me, if you have Vibration for notifications? (Also is your screen off, so no Ambient display?)

In default settings, it will only trigger flashlight if notification is a vibrating one and while screen is off (no ambient display)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
from 10PM to 6AM it is blinking much shorter, it's in Dim mode.

You can switch that off:

----- /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 )

set /sys/class/leds/button-backlight/bln_flash_dim_mode "0", to have no dimming after 10PM.

Also the yello/orange thingy was intentional. I'm trying to make this not so powerful, so that it remains discrete.

But just now I'm still working on it, and for non-dimmed mode I plan to add back the blinking of both camera leds.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] VFL:
The ambient display is working

Just full display off it come vibration notification some hard vibration after next msg come low vibration and flashlight come, when display ambient it will low vibration full display off it come hard vibration, and flash light come delay
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
- Update 2.3.5 stable -​

Flashlight notification update:

- Battery optimizations, more deepsleep

- Adding back the blinking of both camera leds when not in Dim mode

- Default delay between flashlight blinks is increased to 3 seconds, and the auto increasing of delay time is quicker, for less battery drain

Download:

https://www.androidfilehost.com/?fid=817906626617938893
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] VFL:
No flashlight work

My vibration make different, can u test sent ever msg.

Mean many time sent can u fell the vibration it make hard some low

I have second smartphone to sent me WhatsApp Text in HTC 10 to Check flash light.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ali nz:
Update after 8hours... it's more than just developing.... it's feeling responsiblity....thank you:o
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] VFL:
Update

2.3.4 it come just one blink in delay

When display on ambient then vibration low

When display full off it hard vibration

For 2.3.5 some but no flashlight work
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Please upload video about your issue. I can't easily follow the issue, but would like to help if I can

Thanks
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Hi, let me know how 2.3.5 works out. Blinking both camera LEDs is back
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] mesarabi:
Sure

I reply 30minute later

Thanks

---------- Post added at 09:22 AM ---------- Previous post was at 09:06 AM ----------

I test 2.3.5

After every notification just 2 blink and then nothing again . If i turn on notification remainder 3 blinks and then again nothing

Both flash do blinking but seems not at the same time.and the light is too low for daylight for example in the car is hard to recognize flash or in office
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Strange, do you use any doze / sleep mod?

Also could you please check these files, what's their value set

-- /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_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 )

As for the visibility it's intentionally not that strong, I wanted it discrete.

But your wish is valid, I'll add a flash power mode setting option, so that it flashes brighter in that mode
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] mesarabi:
bln_flash_blink_number=46

bln_flash_blink_wait_sec=4

bln_flash_blink_wait=1

bln_flash_dim_mode=1

i realize that when my screen is off and i'm lesson to music or do nothing but screen is off i don't receive any notification not just flashlight. i dont use any special doze mod or any thing else just leedroid113 and your kernel
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Hmm that's even stranger. Fool question, but are you accidentally in battery saver mode where network is sync is disabled for screen off?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] mesarabi:
For mine it's exactly like yours but i check 10%
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] mesarabi:
when i use leedroid 111 i flash pnp tweak and then dirty flash to 113 and your kernel

is it possible that pnp is problem?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Hmm I wouldn't think so, but isn't any type of notification getting through?

Google mail push messages can take even minutes to process.

I generally test this with a secondary account for Google or facebook and test Messenger or hangouts. Those messages usually go though early
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] mesarabi:
I'm using telegram app

Massage received then vibrate and led notification work well but flashlight notification just blink one time or 3 time and then nothing

It's good to other users give feedback

Maybe it's not your fault or kernel problem and it's just my problem

Anybody else is ok with flashlight notification?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
[MENTION=4500197]sgtslaughter64[/MENTION] seems to have similar problem.
[MENTION=6354498]ali nz[/MENTION] could you try and give some feedback? Thanks
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Working on adding [MENTION=4911909]mesarabi[/MENTION] 's request

Flashlight notification configuration option

flashlight Bright blink on/off - powerful blink at a certain number of blinks passing (see Number param)

option: flashlight Bright blink Number 1-10 : 1 = each blink is bright, 2 = each 2nd blink bright etc.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
- Update 2.3.6 beta1 -​

Flashlight notification b1 update:

- Adding Flashlight Blink Bright mode (a powerful flash, default ON each 5th blink)

- Adding Flashlight Blink Bright Number config. Default each 5th blinking is Bright (the first, then the sixth, then 11th...)

Thanks [MENTION=4911909]mesarabi[/MENTION] for bringing up the idea.

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

-- /sys/class/leds/button-backlight/bln_flash_blink_bright_number - 1 - 10

Download beta1:

https://www.androidfilehost.com/?fid=889964283620758579
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] mesarabi:
thanks a lot for your hard work

i install2.3.6

good news:i found the problem.problem is ambient display option.if that option is active flashlight notify does not work well but after disable it every thing is fine

i can't thanks your latest post because today i push that 8 times for your posts
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Ok, i tried to clarify that, but great that you've found out in the end:good:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] matekaneve:
[MENTION=3088420]tbalden[/MENTION] Have you ever considered making an Aroma Installer where users could select the options that suits them? I don't know how difficult or time consuming it would be, just an idea that could make our lazy people's life easier ???
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
I had that back in the HTC m7 but since that I rely on [MENTION=398245]LeeDroid[/MENTION] tweaks and [MENTION=4684315]flar2[/MENTION] tweak applications exkm. :D

both are excellent at that

Also this way ramdisk remains intact, you can switch easily between this and others.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
[MENTION=4911909]mesarabi[/MENTION] OK, no worries about the thanks, just tell me what's your experience with the bright mode :good:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ali nz:
[MENTION=3088420]tbalden[/MENTION] i was slept... I'm too late right?:D
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] matekaneve:
Do you mean I can use the ex kernel manager as well to tweak cleanslate? I thought that was just for elementalX.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
You can, most functions are there except the latest.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
No, just in time :) if you have any specific ideas related to flashlight, I'm still messing with maxing its usability out
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ali nz:
I've never used it to be honest but I think it's a good idea because for the first time I saw this feature on the Galaxy Note 4 and I said oh wow!:D how cool is that
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Hey, maybe you've the same problem, make sure to switch off ambient display in settings. Check screen shot
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] VFL:
Yah now flashlight work but ambient display off can't both work ?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Right now it cannot.

I'll check later if it's possible to have that too.

I have not checked that because on sense there's no ambient display on stock.

--

beta1
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] mesarabi:
After i change the blink speed from 4 to 2 and the quantity of blinks from 46 to 50 now again just the upper flashlight working not both of them. I'm curious why should this happen?!!

Edit:i also change bright number from 5 to 10
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Is 10pm past there? Switch off dim option to 0 so it won't dim at 10pm to 6am
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] mesarabi:
It fixed

Thanks
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
I made progress with this request, I have one issue left with this, but mostly works.

Ambient display + flashlight notification + vibrating reminder

Only issue is that flashlight remains on when user touches the ambient display or switches on screen while ambient is displaying...

Going to have to think more
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] jascolli:
Great kernel! Is there any way to have the new options added to EX Kernel Manager to adjust? Thanks!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Making great progress with Ambient display support (Sense and AOSP) together with LED Notifications / flashlight / vibrating notif reminder :good::good:

Testing before a next beta
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
On Sense rom I'm testing. Aosp gonna be fully okay.

On sense one small issue, slightly touching fingerprint to wake I cannot find a point in kernel to identify. For that flashlight notification will go on after screen on even tho it shouldn't, but to let ambient display work with the already started flashlight notification all user input based screen on event must be differentiated from ambient display self wake.

Otherwise all user input based screen on event will stop flashlight notification.

That way you still can enjoy flashlight notification, vibration reminder and ambient display notification of aosp and custom sense roms.

Demo

[MENTION=398245]LeeDroid[/MENTION] check this :D it's LeeDroid at its best

I'm planning to think about Bln too how to get it when ambient display notification is over.

On sense that would be important, as these collide, and only works on aosp yet
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
- Update 2.3.6 beta2 -​

BETA 2 --- AmbientDisplay support:

- Adding Ambient Display support for AOSP and Sense based ROMs, supporting:

----- Flashlight notification / Vibrating Notification reminder while AmbientDisplay ON

----- Button Light Notification while AmbientDisplay ON when screen turns off after notif ambient display

BETA 1 --- Flashlight notification b1 update:

- Adding Flashlight Blink Bright mode (a powerful flash, default ON each 5th blink)

- Adding Flashlight Blink Bright Number config. Default each 5th blinking is Bright (the first, then the sixth, then 11th...)

Thanks [MENTION=4911909]mesarabi[/MENTION] for bringing up the idea.

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

-- /sys/class/leds/button-backlight/bln_flash_blink_bright_number - 1 - 10

Download beta2:

https://www.androidfilehost.com/?fid=745849072291681717

[YOUTUBE]x5fAmJtBnOE[/YOUTUBE]
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] jamerst:
Is it just me, or does the minimum brightness vary when using the backlight dimmer? When the content on screen is dark, the brightness is significantly lower, so much so that it's barely visible sometimes, but when on light content, the brightness increases. Is this intended? If so, is there a way to turn it off?

I'm using LineageOS14.1-20171006 and managing with EXKM.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
This is a relatively old topic, and it's supposedly just your eyes, if not a lineageos thingy, which I'm not aware yet
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] wl8086:
Good day !

Thank you for your work! I am using your kernel and it's great.

Can I something do not understand , but I cannot connect to the PC in MTP format .

It should be or not ? Thanks for the reply.

Use LineageOS 14.1
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Ah, thanks for reporting. That one I have not tried, only the Browse files/transfer mode, which worked, but have not tested MTP.

So yes, it's possible it's not working... will check it when switching to LOS, currently been kernel testing with Sense Leedroid
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] wl8086:
When you connect the USB works to charge only. Everything else is not working(file/transfer & PTP doesn't work).

Checked on LineageOS14.1, and RR5.8.4.

Thank you !

P.S. Sense Leedroid all working.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
that's strange. It worked for me. I was copying (before flashing LeeDroid) a full rom zip with File-transfer through USB on LineageOS (a two week old build), going into USB selection there switched from Charge only to File transfer.

EDIT: Can you verify that there's no issue with it on stock lineage os kernel? Thx
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] wl8086:
In stock kernel LineageOS 100% no problems. Everything works.

Once flash your kernel only works charging. Checked multiple times in Lineage OS and RR.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Ok, Im gonna give it a try when I get there. Is your PC a windows 10?

[MENTION=4911909]mesarabi[/MENTION] [MENTION=6354498]ali nz[/MENTION] do you have the same? Not working transfer mode through USB on aosp (lineageos or rr...)

I was back on a los few weeks old, and thus strikes me strange cause I was copying files easily to my Windows 10.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] wl8086:
Yes. Windows 10.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] mesarabi:
Here everything is fine no problem with file transfer

Stupid question :but at first phone asking you to grant permission for file transfer.did he do that?i know it's noob question

Edit:i check on both windows7 and 10
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Thanks, I forgot to mention, are you using aosp rom or sense?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] mesarabi:
I told you that before

I'm using sense rom:leedroid r113
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Yep, sorry tried to remember, but I couldn't. Thanks for clarifying
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] romixer:
got audio skips on 2.3.6 b1. On 2.3.4 everything was nice
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ali nz:
No issue here...
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Ok, so it seems you have something special going on.

Do you have all HTC driver latest and HTC sync on the PC?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Is it through Jack or Bluetooth?

Seems to be fine here.

also no change made that affects audio/bluetooth or CPU performance
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] romixer:
Bluetooth ?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] DeeZZ_NuuZZ:
[MENTION=3088420]tbalden[/MENTION]. I have this problem on dirty unicorns with your and helix kernel (beta) too, where I can't use mtp only adb and it's ridiculously slower than even with sense, where it is slow too xD

So yes there must be something in kernel, which doesn't properly work with AOSP

Edit:

I'm on windows 10 too, all drivers are up to date. also on windows 7 this issue exists. whenever I try to install the latest (re-install) it tells me that it can't find or install the drivers. that's very strange. it installs them fine when deleting and uninstalling them, but if they are installed and I try to re-install them, it doesn't work. on both, win7 and 10
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
hmm, i'll have to test this a bit more. On LineageOS the speed was fine tho' copying a 2GB file of ROM through File manager/Win10. :eek:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] DeeZZ_NuuZZ:
I could only use adb and even with USB 3 it was really slow, 400mb took as long as normally a 1-2gb file would take... okay it's different for all xD
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
will check my drivers when i'm at home... probably i have an older dirver, i'm not even sure... :eek:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] DeeZZ_NuuZZ:
yea okay, gonna check mine at home later too
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Yeah, worth checking this. I'll try to find what might be different.

Question: what firmware [MENTION=4645599]DeeZZ_NuuZZ[/MENTION]
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] DeeZZ_NuuZZ:
Latest us unlocked
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ali nz:
[MENTION=3088420]tbalden[/MENTION] saw the flashlight notification for the first time today... How good it is... Didn't expect that...very nice work bro:good: BLN is also so $£×¥!